2022 Developer Survey is open! Take survey.

# Questions tagged [graphs]

Graphs are (1) graphs of functions or (2) sets of nodes and edges.

1,013 questions
Filter by
Sorted by
Tagged with
68 views

### Help for drawing graphs in LaTeX

How do I graph something like that in LaTeX? This is the code I've got so far. \documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows.meta} \begin{document} \begin{...
92 views

### How can I replicate this question in Latex?

Does anyone know how I could replicate this exam question in Latex? It doesn't have to be exact, just something close to this format. Any help is greatly appreciated!
71 views

### Smooth curve with tikz

This graph shows the effect of catalysts on activation energy \documentclass[12pt]{article} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage[full]{textcomp} \usepackage[greek,italian]{babel} \...
• 113
42 views

### Tikz: Standard subgraph with n=5 without all edges

I know there is a way of using "graphs.standard" and "subgraph k_n" to obtain a five node graph looking like a full star, like in the attached image. But is there a possibility to ...
• 350
30 views

### TikZ-pgf and using graph drawing algorithm by referencing existing nodes

I want to use the graphs library in TikZ together with the graphdrawing algorithms to create a graph with many nodes, and connections that I will make and label later. I have a more complicated ...
• 101
42 views

### How to draw a linear graph in LaTeX using tikzpicture for the equation (22-x)/2?

This is what I have so far: \begin{tikzpicture} \begin{axis}[xmin = 0, ymin=0, xlabel={$\omega_{m}$},ylabel={T}] \addplot[red, ultra thick](x, (22-x)/2); \end{axis} \end{...
• 21
16 views

### Optimize size of graphs & Reduce horizontal space between graphs

I want to put two graphs in pdf format next to each other in one row and the graphs next to each other in the row below. I have managed to reduce the vertical space between the two rows but I do not ...
58 views

### Tikz Graph with disappearing edges

I have a graph on a frame in beamer, drawn with tikz and I would like to dismantle it after time. The original graph looks like this: \begin{frame}{Eksempel} \begin{tikzpicture}[node distance=1.45cm, ...
• 350
26 views

### Draw adjacent hexagons [duplicate]

I need help to draw the following figure How can I draw numbers in the hexagons? Thanks in advance!
• 387
51 views

### How to create a node in the center of a edge with bend

I wish to draw a graph such that the red vertices are exactly in the center of each blue edge. The code is as follows: \begin{tikzpicture} \tikzset{pointblue/.style={fill=blue, circle, minimum width=...
• 160
52 views

### How to change vertex style

I wanted final states to be the same size as non-final states. The only difference between finals and non-finals should be the existence of the double circle in the final states. Does anyone know how ...
• 33
28 views

### Change the style of graph vertex

I want to change the style of the vertex. I want all the black filled vertex to be named vertices. And all the vertices with double circles are now named as well. That way: This is the output I had: ...
• 33
1 vote
54 views

### How to position the edges of the automaton\graph

I got this: But I would like to get that: This is the code: \begin{center} \begin{tikzpicture}[ node distance=1.5cm, every node/.style={draw, fill, circle, inner sep=1.102pt}, ...
• 33
35 views

### how to change the angle between the edges of the automaton/graph

I would like to get this: but this is what i got: this is the code: \begin{center} \begin{tikzpicture}[ node distance=1.5cm, every node/.style={draw, fill, circle, inner sep=1....
• 33
42 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}$}...
• 33
34 views

### How to draw Automata/graph

I'm new to LaTeX. How can I make this automaton?
• 33
41 views

### Help with Graphs in LaTeX

do you know how to create these graphics? I am new to LaTeX, so I need some help.
68 views

### Tikz-graph vertices with two labels(one in, one out)

I would like to create the following kind of vertex in my graph: Circular node One label inside (similar to vstyle = Normal) One label out and under (similar to Welsh) It seems that it isn't a ...
• 213
334 views

### How to make edges "tuck behind" each other in TiKz?

In this directed graph, I would like to make the downward 'b' edges "tuck behind" the upward 'b' edges. Something similar to, make a vertex where the 'b' edges intersect, and fill it white, ...
1 vote
69 views

### Drawing points with sqrt values in a graph on tikz

I am struggling with drawing the following set of coordinates: \begin{tikzpicture} \coordinate (a1) at (0,(1+{sqrt(\5)})^{2}/2); \coordinate (a2) at (0,2); \coordinate (a3) at (0,1); \...
• 249
60 views

### Plot directed graph from transition matrix in tikz

I would like to plot a directed graph in tikz starting from a transition matrix as the one below. A "1" in position ij indicates state i leads to state j. [0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 ...
29 views

### graph scaling (enlarged)

I don't understand how scaling works. Need to plot the function below on (0, 1] such that behavior near 0 is clear (I want to be able to see what x is when y=120). \documentclass[preprint,12pt]{...
• 181
34 views

### Adding a vertex weight on top of a labeled vertex

I'm using tikz to draw my graph (a complete graph). I labeled the edges and the vertices and want to add the weight of each vertices on top of it. Here's what I've done: \documentclass{article} \...
• 1
132 views

### Graphviz Package Don't Work Under Windows?

I use MikTeX under windows. pdflatex needs tow execution to draw the graph. LateX code: \documentclass{standalone} \usepackage[pdf]{graphviz} \ShellEscape{where dot > test.log} \begin{document} ...
• 151
36 views

### Scaling nodes, grow sep, and coordinates while preserving text size

I have a drawing based on 1cm unit. \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{graphs,positioning} \begin{document} \begin{tikzpicture}[ every node/.style = { circle, very ...
• 1,361
1 vote
43 views

### Distributing TikZ nodes on a grid using the graph command

I would like the following 10mm nodes to be fitting a 10mm grid using the graph command. Instead, the thickness is adding up (I would like TikZ to ignore it). \documentclass{standalone} \usepackage{...
• 1,361
50 views

### personality using bar graphs

I want to add in my resume. How do I do that? I want similar to this. Thx for ur help!
155 views

### Weird number overlay at the bottom left of Tikzplot

I am trying to create a graph using very small numbers and I think I have it working. The problem is that at the bottom left there's an overlay of text that I cannot figure out how to remove. Help ...
• 73
55 views

### System graph plotting [closed]

I want to generate the graphs with system: \begin{tikzpicture} \begin{axis}[axis equal, axis lines=middle, axis line style={->}, tick style={color=black}, xtick=\empty, ytick=\empty ] \addplot[...
23 views

### How can I plot the graph for a conditional equation?

I have the following equation: g(x) = \begin{cases} x + 2 & \text{if } x \ne 3 \\ \text{undefined} & \text{if } x = 3 \end{cases} how can I plot a graph that shows it's ...
1 vote
64 views

### How to add transparent gray rectangle borders to a plot?

I saw a plotting style that I really like and I am trying to recreate it. I am having troubles getting that crisp style and am having problems with the semi-transparent gray borders. I tried to ...
68 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] ...
• 101
74 views

### Help me generate graph with system [duplicate]

Please help me with system I want to generate the graphs with system \begin{tikzpicture} \begin{axis}[axis equal, axis lines=middle, axis line style={->}, tick style={color=black}, xtick=\empty, ...
30 views

### Please help me with 2d system graph in latex [duplicate]

Please help me with 2 system i want to generate the two graphs with systems First { 𝑥 = 𝑎 ∙ 𝑠𝑖𝑛(𝑏 ∙ 𝑡) + 𝑥0 { 𝑦 = 𝑎 ∙ 𝑠𝑖𝑛(𝑑 ∙ 𝑡) + 𝑦0 Second { 𝑥 = 𝑠𝑖𝑛(𝑡) ∙ 𝑎sin (𝑡) + 𝑥0 { 𝑦 = ...
29 views

### pgfplots - Proportional axis ticks and terminating grid lines at axis

I want to have grid lines in my graph that end at the x and y axis and do not carry over to the sides. If I turn gridlines on it seems like it fills in past the edges. I'd also like to have the graph ...
• 189
1 vote
58 views

### Flowchart graph/map to visualize the interplay of different results

Im trying to make overview graphs of my subjects. In the idea of flowcharts/mindmaps etc. where i want to visualize how different results interact with each other. I did a version with itkz-cd wich ...
• 13
73 views

### Drawing a dataflow using tikz

I'm trying to draw the following dataflow diagram in tikz: Here is what I got so far: \documentclass[10pt,a4paper]{article} \usepackage[english]{babel} \usepackage[utf8]{inputenc} \usepackage{tikz} \...
1 vote
85 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 ...
• 121
208 views

### How to code a 3d graph of a cylinder. I tried a code previously suggested but it did not work as intended [closed]

I'm trying to code a cylinder of the form x^2+y^2=r^2 where h is the unknown height of the cylinder (I want it labeled as r on the axis) because in the problem the radius of the cylinder isn't given ...
72 views

### Simple question about drawing the real line using tikz

I have never drawn anything of LateX before, and I would like to represent intervals of the form [x,x'], with both x,x' real numbers, as I show below. I have 0 experience with tikz and altough I've ...
• 265
1 vote