Skip to main content

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
1 vote
1 answer
22 views

How to vertically align tikz graphs in subfigures

I want to place 4 tikz graphs in 4 seperate subfigures. I'm using subcaption and the \subcaptionbox environment. However, in the resulting figure the second-row graphs overlap the top-row captions. ...
Uri Barenholz's user avatar
1 vote
1 answer
65 views

Drawing graphs to visualize Hopcroft-Karp

I am trying to draw graphs similar to the second picture. Using tikz-graphs I was able to draw simple bipartite graphs, but I couldn't get the following things to work: I draw bipartite graphs using ...
Noah's user avatar
  • 13
1 vote
0 answers
24 views

tikz multipartite graph node arrangement

I am very new to tikz (and posting on stackexchange). I am trying to draw a graph with 27 vertices, consisting of 9 independent sets of 3 vertices each. All other edges are included. With the code ...
m42's user avatar
  • 11
0 votes
1 answer
78 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}, ...
simulate's user avatar
  • 107
3 votes
2 answers
127 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
170 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
185 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
  • 339
2 votes
2 answers
197 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
44 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
266 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
155 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,241
1 vote
3 answers
229 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
36 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
295 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
156 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
128 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
150 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
100 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
310 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
345 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
736 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
  • 141
0 votes
1 answer
106 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
773 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
428 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
291 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] ...
tstt's user avatar
  • 187
1 vote
1 answer
283 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
132 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
  • 83
1 vote
1 answer
150 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
68 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
914 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
91 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
79 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
226 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
629 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
74 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
305 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
146 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
141 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
424 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
331 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,253
1 vote
1 answer
78 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
269 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
351 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
252 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
118 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
67 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
248 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
533 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
  • 553
2 votes
2 answers
596 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
  • 553

1
2 3 4 5