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

learn more… | top users | synonyms

2
votes
1answer
22 views

edges on graph do not align with center of nodes in foreach

As far as I can understand this should draw the same set of five edges in exactly the same way. The first set of edges are positioned correctly. But the second set of edges is horribly aligned. On ...
4
votes
1answer
91 views

Financial graph LaTex style

I am used to work with LaTex, but I am totally stuck trying to plot the following graph and include it in my paper using a LaTex layout. Here below I am also reporting the dataset (markdown does ...
7
votes
3answers
155 views

How can I draw this graph with TikZ or forest?

I want to replicate the structure of the picture below. I don't want to replicate the appearance. This LaTeX code \documentclass[tikz,convert={size=640},multi]{standalone} ...
0
votes
0answers
52 views

Operad theory, trees and an identity

I am trying to achieve the operad insertion shown on Wikipedia here. I can't figure out how to put a \circ sign between first two and an equal to sign between the others as shown on Wikipedia. Also ...
2
votes
1answer
32 views

tikz: nodes overlapping with edges on graph

I'm trying to reproduce a graph from a paper using Tikz, the graph that I'm trying to reproduce is the following: But without the horizontal curved line and brackets on the left subtree. So far, ...
1
vote
2answers
81 views

Labelling Tikz Directed Edges

I am struggling to label my edges in my Tikz directed graph. I have tried using the tikz library quotes in my preamble by no success. I currently have the code \begin{tikzpicture} ...
0
votes
1answer
48 views

How to add one more leave to my tree graph?

\documentclass{article} \usepackage{qtree} \begin{document} \Tree [.X leaf_1 [.Y leaf_2 [.Z leaf_3 last !{\qbalance} ] ] ] \end{document} I would like to add one more leave and node under leaf_1.How ...
0
votes
1answer
64 views

How can I plot a graph in beamer step by step

I want to plot this graph in beamer and I don't know how! I want plot step by step this graph.. Step 1: Step 2: Step 3: Step 4: I write this follow \documentclass{beamer} ...
2
votes
3answers
289 views

Plotted line in tikz stops in middle of grid

The plotted line stops and doesn't go on till the border of the grid: This is my code: \documentclass{article} \usepackage{tikz} \usepackage{amsmath} \begin{document} ...
1
vote
2answers
5k views

Importing a .png file into .tex file

I've been trying to input a graph into my .tex file, but it won't work. I've put the .png file in the same folder as the .tex file and a part of my code looks like: \documentclass[16pt, ...
0
votes
1answer
42 views

TikZ: using ‘node contents’ key for graph nodes

TikZ allows node contents to be set using an option: \tikz{\node[node contents=whatever];} Note the syntax, the following is not allowed: \tikz{\node[node contents=whatever] {};} and gives an ...
3
votes
0answers
39 views

TikZ: wrong edge between split rectangles in graphs

Consider the following minimal example: \documentclass{minimal} \usepackage{tikz} \usetikzlibrary{graphs,graphdrawing,shapes.multipart} \usegdlibrary{trees} \begin{document} \tikz[every ...
1
vote
2answers
69 views

Write same vertex labels with TikZ

I am writing an article on graph coloring and trying to make this type of labeled tree in TikZ. (See the attached Figure) The problem is that I have to use same color label (English letter) for many ...
3
votes
2answers
71 views

How to create 2 arrows rather than double headed arrow with Tikz

I want to display two separate arrows in this graph between nodes 1&4 and nodes 1&3. I read somewhere about bending the arrows, but I'd really like them to remain straight. Also saw there was ...
1
vote
1answer
34 views

to design three vertical Axes in beamer presentation

Would you mind helping me in drawing three vertical axes to explain that for each time t_{1}, t_{2}, ..., t_{i} there is a corresponding price p_{1}, p_{2}, ..., p_{i} and a corresponding volume ...
2
votes
0answers
26 views

How to insert a Tableau sheet into a TeX document? [closed]

I have an interactive chart in Tableau. Is it possible to import this into a LaTeX document?
5
votes
1answer
250 views

Draw string with linking numbers or no linking number?

How can I use LaTex (p.s. I use Mac OS 10.5.8 with TexShop 2.47) to draw strings with linking numbers or no linking numbers? If any experts know any examples below, please feel free to comment. The ...
1
vote
0answers
58 views

How to return a list of connected nodes? Tikz

I am building a graph with nodes and edges in Tikz. Is there any commend which returns array of connected nodes to a particular node? for example, I have 3 nodes A,B,C and only A and C are connected ...
14
votes
3answers
13k views

tikzpicture: How can I draw a loop right-below?

\begin{tikzpicture}[->,>=stealth',shorten >=1pt,auto,node distance=4cm, thick,main node/.style={circle,draw,font=\Large\bfseries}] \node[main node] (1) {1}; \node[main ...
0
votes
0answers
20 views

Tables with cross-row connections

Is it possible to create a table with two sets of rows (right and left) connected by lines as it is shown below:
4
votes
2answers
293 views

Please, how can I get the following drawing?

I was wondering what would be better ways to get the following diagram with tikz? Thanks The code : \documentclass[a4paper,10pt]{article} \usepackage[utf8]{} \usepackage{tikz} ...
4
votes
1answer
75 views

Animate dynamically generated graphs in PDF using LateX

I am new to the board and I am hoping the good folks here can help me as I have been looking all over the internet but not been able to find a solution to my particular problem. However I'm relatively ...
1
vote
1answer
42 views

Ferrer's Graph Implementation

https://en.wikipedia.org/wiki/Pentagonal_number_theorem Hello. I would like to implement the Ferrer's graphs in the Wikipedia article above into LaTex. I have tried using arrays with \bullet but I ...
1
vote
1answer
43 views

necklace layout string(node) text insertion

How to insert node(arrow) text in the graph of simple necklace layout? my code: \documentclass{article} \usepackage{tikz} \usetikzlibrary{quotes} \usetikzlibrary{shapes} ...
1
vote
0answers
49 views

In search of automatic drawing finite state machine graphs

I am looking for some layouts or methods with which I could draw Finite State Machine graph. I have tried a lot of Tikz library layouts like: spring, necklace, electrical and so on. Main thing what I ...
3
votes
1answer
44 views

Reproducing a directed graph with labeled edges

I am trying to implement the following graph : . I came up with a MWE, but I am unable to draw the curved edges. The code is shown below: \documentclass[11pt]{scrartcl} ...
1
vote
0answers
46 views

Please help me plot this graph [closed]

How do I plot the following? Plot phi_(1)(t) vs t with the initial conditions phi(0)=0=[phi(0)]' for the equation [phi(t)]"+ 4.7124 [phi(t)]'+88.8268sin[phi(t)]-115.4749 cos(6.2832 t)=0 Plot ...
2
votes
1answer
44 views

Why my Lualatex can't find spring layout

I am trying to draw my spring layout graph, but I am getting and error, which says that spring layout is unknown. P.s. I works with all other layout for example necklace. What could be wrong my code: ...
0
votes
0answers
15 views

Loading MPS to PDF error

I am getting an error with this code: \documentclass{article} \usepackage{geometry} \geometry{ a4paper, total={210mm,297mm}, left=5mm, right=5mm, top=20mm, bottom=20mm, } \usepackage{tikz} ...
0
votes
0answers
41 views

How to get normal electrical layout graph

I want to draw an electrical layout graph with 10 elements, what I am trying to do is: \documentclass{article} \usepackage{tikz} \usetikzlibrary{quotes} \usetikzlibrary{shapes} ...
1
vote
1answer
45 views

Drawing graphs in latex with text-only vertices

I want to extend the implementations of the examples here to represent graphs with vertices simply represented as text as shown in the figure . I wasn't able to find similar templates/examples in ...
2
votes
1answer
27 views

How to align the nodes of a graph?

I am using the following codes to get my graph, \documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows} \begin{document} \begin{tikzpicture}[->,auto, node distance=3cm, ...
2
votes
1answer
53 views

How to add label at center of three nodes and have it pointed to nodes respectively?

In tikz I have three nodes as following: \documentclass{article} \usepackage{pgf, tikz} \usetikzlibrary{arrows, automata} \usetikzlibrary{calc} \begin{document} \begin{tikzpicture}[>= ...
3
votes
1answer
44 views

Rectangle split in tikz graphs using simple necklace layout

I am trying to split my rectangle nodes by half with rectangle split command, but I am getting compiling error for unknown command. What I am trying to do: \documentclass{article} ...
1
vote
1answer
42 views

Luatex vs Xelatex automatic graphs drawing

I have question about automatic graphs drawing with latex. So I want to use \usegdlibrary To generate my graphs layout automatically without my interruption where to put states and nodes. Is it ...
0
votes
1answer
69 views

How can I draw this population pyramid graph with pgfplots?

I'm using this code and it works fine: How can I draw a pretty population pyramid graph with pgfplots? But I want to draw the population pyramid like this in figure. Please guide me how to di it.
5
votes
2answers
145 views

Tikzpicture: draw edge from node to bent edge

I have an argumentation framework that has attacks on attacks. So basically what I would like to draw is nodes with edges and edges attacking these edges. What I got so far: ...
2
votes
1answer
116 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 ...
4
votes
3answers
154 views

Positioning of nodes relative to edges in tikz

Earlier I asked a question about labelling the edges of graphs with arrows. Zarko presented a solution that, stripped down to its minimum, looks like this: \documentclass{article} \usepackage{tikz} ...
3
votes
2answers
43 views

pgfplot bar graph legend and y labeling

I would like to ask how to get my results. My code: \begin{tikzpicture} \begin{axis}[ybar stacked, legend style={cells={anchor=west},at={(1.75,0.89)}}, area legend, %legend ...
0
votes
1answer
41 views

PGFPLOT bar graph possition legend and different notation

I would like to ask you about the bar graph and possition legend. \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis} [ xbar, ...
1
vote
2answers
54 views

Bipartite graph in xypic

Could you help me somebody please. I don't understand, how I can draw bipartite graphs using xypic, for example K3,3 or something like that.
1
vote
1answer
43 views

Tikz Picture not Graphing Exponentials

I am trying to graph two functions on the same graph: y=1 and g(x) = (e^(1/x))^3 - 1. But when I graph my function g with a sample size greater than 10, my graph completely screws up. I've confirmed ...
5
votes
2answers
146 views

Is there a clean way to create offset branches in gitdags?

Julien Cretel created the elegant gitdags package for easily generating educational git graphs, which I'm currently using to create educational and reference materials for my team. When discussing ...
6
votes
1answer
91 views

tikzpicture negative gamma function

I'm trying to plot the following graph in tikzpicture: However, I have a hard time defining the function properly, as my MWE currently is this: \documentclass[12pt]{article} \usepackage{pgfplots} ...
8
votes
3answers
388 views

Any shorter code for drawing this in tikz?

Are there any possible shorter codes of drawing this diagram, maybe using graphs but it is not a regular polygon, or shortening the repetitive \draw in my code: %% filename henry3.pgf ...
1
vote
0answers
48 views

Tikz package to draw series-parallel graphs with many vars in series/parallel?

Goal versus the result: notice that the variables 2 and 3 on the right are inferior to 1 while the purpose was to have the variables 1, 2 and 3 equal like on the left. The code from here and its ...
1
vote
0answers
34 views

Exporting graphs from Mathematica to LaTex document?

Matlab has Matlab2Tikz while open for Mathematica2Tikz, more here. How can I export graphs such as Harary graphs from Mathematica to LaTex? Example graph generated in Mathematica without finding ...
8
votes
7answers
1k views

By which pkg to visualize a hypercube graph?

I am trying to visualise hypercube like the below. I have asked help here but getting nodes on top of each other with the packages there. The N-th hypercube has 2^n nodes and each vertex with the ...
3
votes
1answer
67 views

Picture with four intersecting lines

I have the following picture: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture}[scale=1.5] \draw [<->,thick] (0,3) node (yaxis) ...