Questions tagged [tkz-graph]

Package to easily create graph diagrams.

Filter by
Sorted by
Tagged with
1 vote
1 answer
68 views

change font size of label of vertex in tkz-graph?

I am currently writing a tex-file in which I also need to create a graph and label the vertices. I am using the package tkz-graph. \documentclass{article} \usepackage{tikz} \usepackage{tkz-graph} \...
user avatar
1 vote
1 answer
147 views

How to draw this DAG dependency graph in Latex

I am wondering how to draw something like this in Latex. Notice the edges are not straight lines as I see in many Tkz examples. This is an example of attribute grammar where edges indicate the flow of ...
user avatar
  • 499
0 votes
1 answer
82 views

Latex drawing of the following screen shot

Can anyone help with the drawing of this pic in latex? I have included what I have done: \documentclass[12pt]{article} \setlength{\topmargin}{-1cm} \setlength{\oddsidemargin}{0in} \setlength{\...
user avatar
0 votes
3 answers
50 views

How can I get two graphs side by side instead of one on top of the other?

How could I get these two graphs side by side? \begin{tikzpicture} [->,scale=0.6,auto=center,every node/.style={circle,fill=blue!20}] \node [label=left:t] (a1) at (1,7) {$\infty$}; \...
user avatar
5 votes
2 answers
136 views

How do I make this figure?

The target figure: Left me to fill the regions. Can somebody help me? My LaTeX code: \documentclass[border=5mm]{standalone} \usepackage[svgnames,x11names,dvispnames]{xcolor} \usepackage{tkz-base,...
user avatar
0 votes
1 answer
68 views

Drawing a table with arrows crossing each other in LaTeX

Can one help me to create the following table in LaTeX. Thank you!
user avatar
  • 103
0 votes
1 answer
177 views

How do I make Hanoi graphs using TikZ?

I have a feeling that it is possible to do using tkz-graph, but I don't know how it works. I tried searching for high-resolution images in Google, and no such image showed up. I need to make the graph ...
user avatar
2 votes
1 answer
104 views

How to make curved arrows

I am a math teacher and I still have a hard time getting started with Latex, but I would like to know if someone could help me on how to generate the following example. Researching on the internet I ...
user avatar
  • 35
2 votes
1 answer
91 views

Nicer curved lines

Is there a way to make a nicer curved line in the image below, linking two nodes of different graphs? Here is the code I am using : \documentclass{scrartcl} \usepackage{amsmath,amsthm,amssymb,...
user avatar
  • 443
0 votes
1 answer
68 views

How to adjust my code so it replicates this image?

\documentclass{standalone} \usepackage{tkz-graph} \usetikzlibrary{arrows.meta} \tikzset{>={Latex[width=3mm,length=3mm]}} \begin{document} \begin{tikzpicture} \GraphInit[vstyle=Dijkstra] ...
user avatar
  • 197
1 vote
1 answer
167 views

Adding an arbitrary edge to a graph in tkz-berge

I would like to be able to add an arbitrary edge to one of the graphs in tkz-berge. For example, in the graph below I want to add an edge between v0 and v4. \documentclass[a4paper]{article} \...
user avatar
  • 365
0 votes
1 answer
117 views

How to put the arrows of an edge at the center in tkz-graph?

How can I put the arrows at the middle of the in this graph? \documentclass{standalone} \usepackage{tikz,tkz-graph,tkz-berge} \usetikzlibrary{positioning,fit,patterns} \tikzset{->-/.style={...
user avatar
  • 4,590
2 votes
0 answers
118 views

Adjust tkzKiviatDiagram Diagram axis label size

I am trying to display several Kivat diagrams on a single A4 page. For that reason, I have embedded them in subfigures under one figure. This is why I have rescaled the Kivat diagram to fit in one ...
user avatar
2 votes
1 answer
66 views

Why the arrows of two edges are not appearing in tkz-graph

I am creating a figure using tkz-graph. But there are two arrows of the edges are missing. \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{amsmath, amssymb, amsthm} \usepackage{tkz-...
user avatar
0 votes
1 answer
144 views

How to make certain nodes have no circle around it using tkz-graph?

I'm trying to draw a simple hierarchical structure using tkz-graph: \begin{tikzpicture} \Vertex[Math, L=\pi, x=0, y=4.5]{pi} \Vertex[Math, L=\pi^{\frac{1}{32}}, x=-4.5, y=0]{pi_32_1} \Vertex[Math, L=\...
user avatar
4 votes
3 answers
505 views

How to create a vertex at the intersection of two edges with tkz-graph?

I want to draw But I don't know how to create v_6 which is the intersection of \Edge(v_3)(v_5) & \Edge(v_1)(v_4) and v_7 is the intersection of \Edge(v_3)(v_5) & \Edge(v_2)(v_4). Here the ...
user avatar
  • 4,590
1 vote
1 answer
270 views

Adding two nodes in tikz besides each other?

I am new to tkiz, I need to generate a figure like in the attached a picture. Here is the Wml code for generating the left side of figure. How to add the right part with the arrow shown.?? \...
user avatar
4 votes
2 answers
608 views

Tkz-graph and foreach

I want to draw the following graph by using the usepackage tkz-graph and the command foreach or by any other method: \documentclass{article} \usepackage{amssymb,amsmath} \usepackage{xcolor} \...
user avatar
7 votes
3 answers
636 views

Recreating Peterson graph with tkz graph?

I was trying to recreate Here is my MWE \documentclass{standalone} \usepackage{tkz-graph} \usepackage{tkz-berge} \definecolor{iceberg}{rgb}{0.44, 0.65, 0.82} \tikzstyle{VertexStyle} = [shape = ...
user avatar
  • 4,590
4 votes
1 answer
166 views

Drawing a polygon

How to use the tikz package to achieve the following. I looked at but still couldn't get it done. Any help is much appreciated.
user avatar
  • 821
2 votes
1 answer
597 views

Multiple labels for a vertex using tkz-graph

I am trying to create figures that illustrate how binary trees may be represented using array indices. Therefore I would like each node in my tree to have two labels: One inside the note, representing ...
user avatar
5 votes
1 answer
415 views

Drawing a TikZ Graph

I'd like to try and include this graph in a Beamer presented, and would like to draw it using TikZ instead of including a PDF (for a number of reasons). I honestly have no idea how to get started and ...
user avatar
0 votes
2 answers
295 views

RDF graph draw using TikZ

When I use the following code to draw an RDF graph: \begin{tikzpicture}[node distance=2.75cm,>=stealth'] \node[vertex style=Turquoise] (Rk) {Righteous Kill}; \node[vertex style=BurntOrange, above ...
user avatar
3 votes
1 answer
127 views

How to draw the Errera's graph

someone could you give me an example to draw this graph? My difficulty is set lengths in each vertex, I use tkz-graph Uncompleted example \documentclass[tikz]{standalone} \usepackage{tkz-graph} \...
user avatar
  • 359
2 votes
1 answer
329 views

How to reduce the size of the vertices in `tkz-graph`?

How to reduce the size of the Vertex in the following tkz-graph?? MWE: \documentclass[]{standalone} \usepackage{tkz-graph} \begin{document} \begin{tikzpicture} \GraphInit[vstyle=Classic] % \Vertex[...
user avatar
  • 1,872
2 votes
1 answer
1k views

Position of edge labels in \Edge[label=e] in tikz

Here is a simple code I have, which enough of an example of what I'm looking for. I am using the \Edge command with label, as this labels directly on the edge, which is what I am looking for. What I ...
user avatar
  • 111
2 votes
1 answer
393 views

How do I move label on loop to above the loop in a Tikz picture

I have the following standalone class file to create a figure for a journal paper: \documentclass[12pt,A4paper]{standalone} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{...
user avatar
4 votes
1 answer
207 views

Incompatibility between \usetikzlibrary{babel} and the tkz-graph \Edge macro

Continuing on from my question posted yesterday, I struck a similar problem with the \Edge macro of tkz-graph when attempting to define text labels - with \usetikzlibrary{babel} loaded compile ERROR !...
user avatar
5 votes
0 answers
129 views

Moving loops in tkz-graph

I'm trying to modify the graphiso.sty package to show morphisms between directed graphs. This meant it should allow to show edges with arrows, I could do that. The thing is I now want to include ...
user avatar
2 votes
1 answer
111 views

Self-loops in graphs change their shapes when the picture is rotated

I am using tkz-graph for drawing graphs. Self-loops change their shapes when the picture is rotated. Is this normal? Since I could probably redesign the rotated graph from the beginning, I am more ...
user avatar
  • 4,575
5 votes
1 answer
328 views

Drawing particular curves

I need to recreate the curves in the first graph in Latex. What's the best way? \begin{document} \usepackage{tikz} \usetikzlibrary{shapes.geometric,arrows,positioning,fit,calc,} \begin{center} \...
user avatar
0 votes
2 answers
300 views

Problem in labeled vertices with tkz-graph and beamer

Please the below code work perfectly in article latex class, but when i try to put it in IAStheme of beamer the labels are strange. The code \documentclass[11pt]{beamer} \usepackage[english,...
user avatar
  • 77
4 votes
1 answer
634 views

Something wrong to use ifthenelse and mod function in tikz

I get errors for this latex code, please someone can help me \documentclass{article} \usepackage{tikz} \usepackage{tkz-graph} \usetikzlibrary{graphs,graphs.standard,arrows.meta} \begin{document} \...
user avatar
  • 77
3 votes
1 answer
3k views

How can I change the colors of the edges in a graph created by tkz-graph in LaTeX

I'm trying to change the colors of two of the edges in the basic graph created by the tkz-graph LaTeX code below to red and the other two to blue and I can't seem to find a way to do it... Any help ...
user avatar
  • 81
2 votes
1 answer
704 views

tkz-graph: \Edges works but not \Edge

Using the tkz-graph package, I am able to use the \Edges command but not the \Edge command. When I try to use the \Edge command commented out below, I get the following error: Paragraph ended before \...
user avatar
3 votes
1 answer
105 views

tkz-graph doesn't respect color option to edge when Welsh or Normal style specified

When I specify \GraphInit, the \Edge command doesn't respect any options. In my case, I'd need to specify the color and line width. In this example, I wanted to set one of the edges red and the ...
user avatar
3 votes
1 answer
752 views

tkz-graph vs tkz-berge

What is the difference between the two packages ? Did they have a different use? I know they have been made from the same author. The description of tkz-berge says that it pro­vides a col­lec­tion of ...
user avatar
  • 135
1 vote
1 answer
60 views

Bending arrows in tkz in certain direction

I have the following code which gives the attached picture. \documentclass[border=4mm]{standalone} \usepackage{tkz-berge} \begin{document} \begin{tikzpicture} [->, >=stealth', auto, ...
user avatar
  • 139
6 votes
1 answer
903 views

How to shift edge labels along edges in tkz-graph?

Using tkz-graph package I often feel the need to move a little bit the labels on the edges, that are always positioned midway the edge. In this example I would move the label 0.5 from node a to node d ...
user avatar
  • 393
3 votes
1 answer
297 views

Tkz-Graph only two of six vertices should be labeled

This is the code to a graph I'm drawing, but I only want the vertices "a" and "e" to be labeled; the rest should just show as vertices without a label. How can I do that? \documentclass{article} \...
user avatar
  • 79
3 votes
2 answers
2k views

TikZ Graph with a circle alround some of it's vertices

I want to draw the following Graph with the tikz package and/or tkz-graph package, but I'm still very new to this. Could someone please help me? :)
user avatar
  • 79
2 votes
1 answer
307 views

How can I make a thick line in a graph?

I have this code which generate me a graph. How can I make line 1-3 to be thick? \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[top=2in, bottom=1in, left=1in, right=1in]{geometry} \...
user avatar
2 votes
1 answer
795 views

Drawing arrows next to edges on graphs

I need to draw several graphs (the graph theory kind) with arrows drawn next to the edges. Here is a rough sketch of the kind of thing I mean: I'm aware of tkz-graph and would like to use it if ...
user avatar
  • 2,990
3 votes
1 answer
134 views

Achieve a centered node with equal edge lengths using tkz-graph

Ok, so I've used tkz-graph to produce the following graph: The code I've used to produce the graph is as follows: \documentclass{standalone} \usepackage{tkz-graph} \begin{document} \begin{...
user avatar
  • 3,735
1 vote
1 answer
270 views

Small vertices with tkz-graph

I would like to draw small (although visible) vertices with package tkz-graph. I tried with MinSize, but this is a lower bound on the size, and I am looking for an upper bound. In the following ...
user avatar
  • 4,575
3 votes
2 answers
1k views

Invisible vertices with tkz-graph

Is it possible to hide the vertices while using package tkz-graph? Firstly I want to show just the edges, and then show the whole graph. However, I need the vertices from the beginning in order to ...
user avatar
  • 4,575
2 votes
1 answer
777 views

Individual node coloring of predefined graphs from TikZ-berge

So far your forum has given me all the information I needed for TeX. Thanks for that. Now, it is the first time, I have a question, I couldn't find an answer to: I want to draw graphs of the Platonic ...
user avatar
2 votes
1 answer
410 views

Adding nodes to line segments

\documentclass{standalone} \usepackage{tikz} \usepackage{pgfplots} \usepackage[active,float]{preview} \usetikzlibrary{calc} \usetikzlibrary{graphs,plotmarks,arrows,automata,positioning,fit,shapes....
user avatar
  • 738
1 vote
0 answers
573 views

Drawing graph with multiple parallel edges with label

I have a java program which produces a graph with the following information: 1) Nodes (with name and coordinates) 2) Edges (with labels and end nodes) 3) Routes (as sequence of edges). These routes ...
user avatar
2 votes
0 answers
111 views

Problems with tkz-graph under tikz 2.10

I'm having problems with tkz-graph with tikz/pfg 2.10. The following mwe (a modification of one taken from the tkz-graph doc.) doesn't seem to respect distances or decorate an edge. Is this a known ...
user avatar
  • 243