Questions tagged [tikz-graphs]

The `graphs` and `graphdrawing` libraries included in PGF/TikZ 3.0 provide powerful tools for drawing graphs (with edges and nodes, not graphs of functions).

Filter by
Sorted by
Tagged with
0 votes
1 answer
56 views

TikZ - tikzpicture nested in \graph node

I am trying to nest tikz graph environments into the nodes of a tikz graph environment: \begin{tikzpicture} \graph [layered layout]{ ABABAB -> { AB -> {A, B}, ...
stimulate's user avatar
  • 107
3 votes
2 answers
114 views

How to shift the whole graph made with TikZ library graphs?

I would like to shift my graph a couple of cm to the left, as it overflows a bit on the right. I tried enclosing the \graph in scope, like so: \begin{scope}[shift={(-10,0)}] \graph[...]{...}; \end{...
user443854's user avatar
4 votes
1 answer
101 views

Custom edge in TikZ graph

Goal I'm trying to connect the nodes of my graph using a horizontal-vertical-horizontal line. MWE Consider the following example: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{graphs, ...
Jux's user avatar
  • 43
4 votes
2 answers
160 views

How to draw the following image using `TikZ` and `tikz-graphs`

There is the need to draw graphs like the following for a specific subject, the intent is to create a template where others can be created easily. There are some requisites No need to mind about the ...
Felipe9's user avatar
  • 167
2 votes
2 answers
175 views

how to draw double-circle diagram in tiKz?

How can I draw the following diagram in LaTeX? But instead of the black dots in vertices, I want to put the numbers.
Liu Li's user avatar
  • 31
1 vote
1 answer
42 views

How to selectively avoid drawing edges?

When using tikz \graph macro, is it possible to selectively not draw one of the edges? For example, in the image below, is it possible to skip drawing the edge between b and a? I tried with edge from ...
Felipe Balbi's user avatar
6 votes
2 answers
198 views

TikZ graphs: is it possible to build a mindmap with automatic node positioning?

I like the mindmap library to make mindmaps in tikz. The issue is that the node positioning is manual (and I am extremely lazy), hence the general question: 'is it possible to build a mindmap with ...
Lorenzo Chiaverini's user avatar
2 votes
1 answer
112 views

Good way to place node text next to node (TikZ-library `graphs`)

I want to create graphs with \usetikzlibrary{graphs}. By default, I would like filled black dots as nodes and the node name next to it. So far, my best solution is \documentclass{article} \usepackage{...
Gargantuar's user avatar
1 vote
3 answers
168 views

TikZ - Place label of a vertex of a graph inside a node

Using this code, \usepackage{tkz-base} \usepackage{tkz-graph} \usetikzlibrary{arrows.meta} \begin{document} \begin{tikzpicture} \tikzset{->-/.style={decoration={markings, mark=at position 0.5 ...
Harry's user avatar
  • 13
0 votes
0 answers
56 views

Tikz renders deleted parts of graph

I defined a graph in tikz via the following. \documentclass{article} \usepackage{tikz} \begin{document} \begin{figure} \begin{tikzpicture} \node (n1) at (2,0) [circle,fill=blue!20] {1}; \...
IMOPUTFIE's user avatar
  • 101
1 vote
1 answer
35 views

How do you specify the vertical distance between node chains when using the graphs library with the [grow right sep] option?

I'd like to use the graphs library to draw a block diagram, which is working fine so far. However, I'd like add another input to the block diagram below by adding another node chain. As you can see in ...
ksh's user avatar
  • 13
2 votes
1 answer
203 views

Deleting a node from a subgraph while mantaining the position of the other nodes

Suppose I have a tikz graph like this one: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{graphs,graphs.standard} \tikzset{v-label/.style={ every node/.style={circle,draw,minimum ...
The Fourth Man's user avatar
0 votes
1 answer
123 views

Something is wrong with tikz graphdrawing

I wanted to see some isomorphisms of the Petersen graph; I took the code from here, and run with several layouts from here, but the result with tree layout is not isomorphic to the Petersen graph: \...
ocap's user avatar
  • 3
2 votes
1 answer
113 views

How to draw a loop passing through by a edge?

I wish draw the following graph: Follows the my attempt: \usetikzlibrary{positioning} \begin{tikzpicture} \tikzset{pointblack/.style={fill=black, circle, minimum width=3pt, scale=0.6}} %% \node at (...
Frank's user avatar
  • 192
0 votes
1 answer
118 views

How can I draw dots in a rooted tree structure graph?

I wrote this code but I would like to add dots between the points to indicate that there are more points between the points I draw. \documentclass[border=3.141592]{standalone} \usepackage{forest} \...
Rafael de Souza's user avatar
0 votes
1 answer
84 views

How can I draw a rooted tree structure graph? [duplicate]

I just started doing things with TikZ today and I don't know how to draw a graph which should look like this: Can someone please help me?
Rafael de Souza's user avatar
0 votes
1 answer
261 views

TikZ graph with nodes crossed out

I'm trying to learn how to draw graphs in TikZ, but the simple examples I find on tutorials online do not help with the graph I'm trying to create. Basically, I want to have four types of nodes: empty ...
Noel Arteche's user avatar
3 votes
1 answer
282 views

How to draw graphs with half-edges?

I tried to generate the graphs shown in the picture using tikz-network and tikz packages but I am unable to get the T shaped half edges like the picture. Any kind of help appreciated. \begin{...
Cantor_Set's user avatar
2 votes
1 answer
602 views

Multiple pgfplots with common y-axis

As a part of manuscript, I have to plot multiple graphs whose x and y axes ranges are the same. I am using subflot along with tikzpicture. My question is, since the range of values of the both axes ...
Parag's user avatar
  • 131
0 votes
1 answer
83 views

How can I draw this Automata with Tikz?

I want something like the figure: But what I got is: this is my code: \begin{center} \begin{tikzpicture}[node distance=1.5cm] % position the nodes a..d \node (a) [] {$\textrm{I}$}...
B612's user avatar
  • 153
8 votes
1 answer
588 views

Find midpoint of path

I have two coordinates (v1) and (v2) which are connected by a bended path. Now I would like to connect a third variable (v3) to the middle point of this path, but I cannot figure out how. \coordinate (...
samabu's user avatar
  • 257
5 votes
2 answers
310 views

Positioning two graphs relative to each other inside a tikzpicture

I have two graphs within the same tikzpicture, I would like the second to be placed to the right of the first, but currently they just perfectly overlay each other. I tried placing them both on the ...
user8294559's user avatar
0 votes
1 answer
246 views

Increase thickness of edges in graph

Consider the following LaTeX code that create Petersen graph in latex \begin{tikzpicture}[rotate=90] \GraphInit[vstyle=Hasse] \SetVertexNormal[LineWidth=.7pt] \grPetersen[RA=2.4,RB=1.3] ...
MR_'s user avatar
  • 149
1 vote
1 answer
244 views

How to draw a force graph with fixed clustered nodes?

How to draw a graph like the following with TikZ? In particular: It is an undirected graph. There are groups of 3 nodes that always stay close to each other and are linked by the bold edges. Some of ...
ale64bit's user avatar
  • 121
0 votes
1 answer
121 views

How to draw the following picture on tikz?

Is there any way to do this without drawing every single circles?
Tyler's user avatar
  • 63
1 vote
1 answer
137 views

Create a graph with very large number of edges

I am trying to create in Latex a graph with a very large number of edges. Something similar to the attached image (taken from a paper by Bissyandé et al). I've tried to simply draw a graph using ...
TCS's user avatar
  • 195
1 vote
1 answer
60 views

How can I reference the location of nodes that are placed with the \graph command in TikZ?

I've declared a graph like this: \documentclass[border=5pt]{standalone} \usepackage{tikz} \usetikzlibrary{graphs} \begin{document} \begin{tikzpicture} \graph {1 -> 2}; \end{tikzpicture} \...
jrpear's user avatar
  • 141
1 vote
1 answer
797 views

Change tikz plot style parameters (numbers on axes, size of points) to match previous ones

I want to modify a graph to be in agreement with the previous ones in my paper. Throughout my document I have plotted with the following style: the codes are as follows: \begin{figure}[H] %Parabola \...
NoetherNerd's user avatar
2 votes
1 answer
81 views

Arrows do not appear in graphdrawing

I try to draw a diagram showing how different areas communicate with each other. In the end it should have the areas labelled A1,...,A5 in a circle and there will be many labelled arrows between them. ...
catwarwick's user avatar
3 votes
1 answer
75 views

How to draw two loops in same vertice in graph

I wish to draw a graph with two loops undirected on the same vertice, follows the figure: I draw the two loops, but got ugly, follows the code: \begin{tikzpicture} \draw[fill=black] (2,-1) circle (...
Frank's user avatar
  • 192
1 vote
2 answers
174 views

How to label two edges differently in compact tree graph syntax

I am trying to draw a tree in TikZ as pictured below. Everything is as I want it to be except that I cannot figure out how to ask LaTeX to draw two different labels on the edges in the tree/graph ...
catwarwick's user avatar
2 votes
2 answers
447 views

tikz - repeating a tikz figure several time in another tikz figure

I have a graph drawn in tikz, in sperate tex file, that I call upon with an input, and a call to \TikzExampleLargeKtn{6}{1}{1} (for instance). I'm not using tkz-graph but I'm open to it. \usepackage{...
Thomas Lesgourgues's user avatar
0 votes
1 answer
71 views

Why is the root node not centered?

I'm trying to code a star graph, using the tikz graphs library. This is what I have so far: \documentclass[border=10pt]{standalone} \usepackage{tikz} \usetikzlibrary{graphs} \begin{document} \...
Schiphol's user avatar
  • 195
1 vote
3 answers
251 views

Apply operations to iterator \x in \foreach loop in Tikz

I am trying to draw a graph comprised of 13 triangles joined at the centre (i.e. a wheel graph with some edges missing from the outer cycle). I managed to connect the outer vertices to the central one ...
Adrian Leverkuhn's user avatar
1 vote
1 answer
122 views

How do I make a graph with branching rectangular edges, labeled before branching?

This graph duplicates the label, and the edges are not vertical or horizontal. I would like a vertical edge to leave A, labeled 'x' then split into two right and left horizontal branches which would ...
mk9y's user avatar
  • 299
0 votes
3 answers
133 views

Cannot draw specific graphs in Latex for my math homework

Can anyone tell me how to draw this graph (and these types of graphs) in latex? Thanks
Vaibhav Agrawal's user avatar
1 vote
1 answer
330 views

TIkz Generated Graph Node Coloring

I have the following graph and I was wondering how I could color each node with different colors. \documentclass[border=2cm]{standalone} \usepackage{tikz} \begin{document} \begin{...
Minho Cho's user avatar
3 votes
3 answers
298 views

Centering TikZ Graph

Is there a simple way to align the following two sets of the bipartite graph horizontally, i.e. move the three nodes on the left 1.5 times the vertical node distance downwards? \begin{tikzpicture} \...
Xiphias's user avatar
  • 1,213
1 vote
1 answer
75 views

Binary tree layout removes duplicate branches

What I want to do is draw a tree that doubles in size on each layer, so I thought a binary tree would be the right solution, as of right now I have the following code: \documentclass[a4paper, 12pt]{...
highQualityBean's user avatar
-1 votes
1 answer
235 views

Division in process

This is the process of Euclidean Algorithm to find $\gcd(a,b)$. Could anyone help me hơ to draw the process of division? Thank all
Minh's user avatar
  • 173
4 votes
1 answer
275 views

Tikz graph library with no node text

I'm trying to use the TikZ graph library to draw graphs, but I'm having trouble figuring out how to draw graphs without text on the nodes. Here's a MWE. \documentclass{article} \usepackage{amsthm, ...
scmartin's user avatar
0 votes
1 answer
214 views

Tikz graphdrawing node distance

I would like to create certain graphs in Tikz with a given node distance. I tried: \documentclass{amsart} \usepackage{tikz} \usetikzlibrary{graphs,graphdrawing,positioning,graphdrawing.layered} \...
Julian's user avatar
  • 751
2 votes
2 answers
116 views

Fill area under curve in the right order

Good evening. I am building a plot for a data which was recorded over a year. For this frequency analysis I want to add thresholds to show at which time these have been passed. The area under these ...
TimSqua's user avatar
  • 33
-1 votes
1 answer
66 views

How to draw a labelled color diagram

I am new to the latex diagram and I can't find any model to draw the labeled color diagram below. I wonder if it's possible to draw it? Thanks!
Joseph's user avatar
  • 111
2 votes
0 answers
236 views

Left-align TikZ pics and issue with TikZ graph

I'm trying to put together a more complex drawing from several TikZ pics. I have constructed a minimal example from which the challenges become visible (see below). After the styles, first the two ...
SommerEngineering's user avatar
2 votes
2 answers
478 views

importing an external image on top of a node using tikz

How can I generate this nodes and edge structure using tikz in latex? I created the following figure using tikz, now I'd like to put some figures on the top of each node (e.g. a heart with heart-...
Dalek's user avatar
  • 509
2 votes
2 answers
519 views

using Tikz to create a maze

I created this figure with microsoft powerpoint but I'd like to make a similar one using latex because I am writing my document in latex. I already asked how I can make similar maze structure but in ...
Dalek's user avatar
  • 509
10 votes
4 answers
5k views

How to draw a diagram for "Rope Around the Earth" problem?

I would like to produce an image to help students to better understand the celebrated ``Rope Around the Earth'' problem, which asks---how much slack must be added to a tightly fitting rope around the ...
DDS's user avatar
  • 8,491
1 vote
3 answers
164 views

Connect two nested graphs

Is there an easy way I can connect the vertices of these graphs using the code I have? In other words, I want to connect the first node of the smaller decagon with the first node of the larger decagon,...
stackexchange's user avatar
2 votes
1 answer
38 views

Visual issue when printing edge weights in tikz

I am trying to place edge weight in a network that I draw in tikz, however, it does not show up as I wanted. I am providing a MWE below. \documentclass{standalone} \usepackage{tikz} \begin{document}...
whitepanda's user avatar

1
2 3 4 5