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

learn more… | top users | synonyms

5
votes
1answer
55 views

Xy curves not obeying round frames

I am trying to draw the Frucht graph in with Xy-pic, using the polygon extension. The natural way to make curved inside edges ("origin" ; "destination" **\crv{"center"}) doesn't quite reach the ...
1
vote
1answer
64 views

An example about diagrams and graphs with Tikz on manual V2.10 Page 70 fails [closed]

My question is that I cannot compile the codes provided on page 70 in the TikZ Manual V2.10. I just add some packages but it cannot compile. Can anybody help? My codes are shown as below: ...
0
votes
1answer
57 views

How to draw adjacency array with TikZ?

I will draw a graph representation as adjacency array, also something like that: How to make it? I didn't found any examples like the picture above.
2
votes
1answer
67 views

Automating a graph drawing procedure

Here it is: I want to draw a big graph, say 50 vertices and ~200 edges. I'm getting the edges from the output of GAP, a programme for computational algebra. As it is, I have no idea what the graph ...
2
votes
1answer
55 views

Area between graphs of two functions

This is a follow-up question to Area between curves. After one day, i found out how to do it in LaTeX (Miktex): \documentclass[10pt]{article} \usepackage{pstricks-add} \begin{document} ...
2
votes
1answer
63 views

Text in a graph in TikZ

I have the following code. \begin{tikzpicture} [auto, vertex/.style={circle,draw=black!100,fill=black!100,thick,inner sep=0pt,minimum size=1mm}] \node (v1) at ( 1,1) [vertex,label=left:$v_1$] {}; ...
2
votes
2answers
73 views

Prevent edge from cutting through node

I got the following TikZ Graph: \begin{tikzpicture}[auto,node distance=2cm,thick, node/.style={shape = rectangle,draw}] \node[node] (en) {ENTRY}; \node[node, label=180:$B_1$:] (1) [below of=en]{ ...
1
vote
1answer
69 views

Draw graphs (DAGs) in Latex

I am searching for a latex package which allows to draw something like the DAGs in this page. Does anyone know how to draw them? Thanks for the support!
6
votes
1answer
75 views

How to vary distance between siblings in TikZ graph?

The example below renders a simple graph. I would like to branch with 1 cm to the left as default, but to branch a bit further in some cases. Say, I want f to branch 2 cm to the left. How would I do ...
2
votes
1answer
89 views

pgfplots significant figures

I'm trying to work out how to change the number of sig figs in the axis labels. I.e., I want the graph to display 0.0, 1.0, etc. Any ideas? \documentclass{memoir} \usepackage{pgfplots} ...
0
votes
1answer
165 views

how can I draw a functional graph in tikz?

Let X is a finite set and $f:X \rightarrow X$ is a function. how can i draw the graph with vertex V=X and edges (x,f(x)) with x in V?
2
votes
1answer
79 views

Edge weights and node labels

I am trying to draw a graph with node and edge weights. Here is what I've managed to do so far. I've placed node names. but I want to place node weights under the circles. And I want to put edge ...
1
vote
1answer
96 views

Help drawing vectors in a PGFplots axis environment using calculated coordinates and \draw

Why does using \draw and calculated coordinates not follow what a graph of projectile motion ought to look like? Any suggestions for code that would work using formulas in coordinates? ...
5
votes
2answers
284 views

TikZ: Parametric Gnuplot plot fails to appear

I am trying to create a parametric curve using the source code below. It will not show up on my graph at all. The curve is supposed to look like this: \documentclass{article} \usepackage{tikz} ...
4
votes
1answer
67 views

How to create circular graphs with labels in Latex?

I am trying to draw these graphs with labels in Latex. I already drew a graph in this style with this code: \documentclass[tikz, border=5]{standalone} \usetikzlibrary{calc,arrows} \tikzset{ every ...
1
vote
1answer
54 views

TikZ: How to distinguish multiple vertices with the same id?

(Almost minimal) working example: \documentclass{beamer} \usepackage{tikz} \usepackage{verbatim} \usetikzlibrary{arrows,shapes} \begin{document} \pgfdeclarelayer{background} ...
0
votes
1answer
38 views

Replace vertex in TikZ

I'm completely new to TikZ and took a look at an example graph: http://www.texample.net/tikz/examples/prims-algorithm/ For a presentation I need to replace a vertex by another vertex at a certain ...
2
votes
3answers
136 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} ...
4
votes
1answer
109 views

how do I create a complete graph in tikz?

I have the following code that I created: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture}[->] \node[label=west:$s$,circle,fill,inner sep=1.5pt] (n0) at (-1,1) ...
2
votes
1answer
69 views

pgfplots very small Y values

I need to plot the following function: ...
4
votes
1answer
97 views

drawing directed graph

How can I draw an edge from (ab) to ($a^3$$b$)? I tried using \Edge(ab)($a^3$$b$) like I did for drawing an edge from (b) to (e) but the same method didn't work. I think it has something to do with ...
3
votes
0answers
67 views

Node size in graph with pgf 3.0

I want to draw some graphs with pgf 3.0, but the size of the nodes are not being taken into account when laying out the graph using spring layouts. Here is an example document: ...
2
votes
1answer
71 views

Styling TikZ graph

I have created a TikZ graph, like this: \documentclass[a4paper,11pt]{scrartcl} \usepackage{tikz} \usetikzlibrary{positioning} \begin{document} \begin{tikzpicture}[->,node distance=2cm] \node ...
4
votes
3answers
137 views

How do I arrange 9 figures, evenly spaced out, on a page?

\begin{figure}[!ht] \centering \begin{tikzpicture} \begin{axis}[ width = 12cm, height = 12cm, axis y line = middle, axis x line = middle, grid style = {dashed, gray!50}, grid = both, % Switch on ...
1
vote
2answers
143 views

How do I plot a graph with the x axis across the middle?

I have a huge project for my grade 11 physics class. I've just started using latex and i want to know how to plot a graph but as in the picture shows, the x axis is in the middle of the graph ...
5
votes
2answers
317 views

Petersen graph with new tikz graph library

I'm considering moving from tkz-berge to the new tikz graph library for drawing my graphs (in the sense of graph theory). I have produced the Petersen graph, but is there is a more elegant way of ...
0
votes
0answers
98 views

\graphicspath not working

I have saved a .eps file on a folder. I am using ShareLatex, but the code does not work. I couldn't find anything wrong with it looking at previous answers. Any hints? The complete code looks like ...
3
votes
1answer
124 views

How to make a vertex with math inside using tkz-graph?

Okay, my goal is to make a diagram like this in LaTeX: With the difference, that I want where you see dots or dots2, I want to have $\ldots$ displayed. I'm trying to get that working using the ...
5
votes
1answer
191 views

How to color vertices in a TikZ graph?

Consider the following code to draw a graph using TikZ: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{graphs,graphs.standard} \begin{document} \begin{tikzpicture} \graph ...
3
votes
2answers
194 views

Drawing specific curves in LaTeX

I have the following table to draw as a graph in LaTeX. Notice that we don't have coordinates to be drawn. For each method, there is one accuracy value. For example the Method 1 has an accuracy ...
4
votes
1answer
697 views

How to automatically draw a graph?

Is there a simple package for which I can input an abstract graph and it returns a drawing? A similar question was asked in 2010, it did not receive any answers relevant to my question. I want no ...
1
vote
1answer
150 views

Connecting points on graph via dotted lines

How could I connect these points with dotted, vertical lines? \documentclass{article} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis}[axis lines=center] \addplot [only ...
3
votes
2answers
521 views

How to Create Directed Graphs in LaTeX

How can one create a tree structure in LaTeX that begins with a single number and extends with an arbitrary number of arrows that connect numbers below with numbers above such that the head faces ...
13
votes
4answers
655 views

How to plot a graph from its adjacency matrix and coordinates of vertices?

A similar question is here. If we give all the data of the vertices's coordinates and the graph's adjacency matrix, how to plot it with tikz, pstrick or other tool in tex? here are the data of ...
5
votes
1answer
169 views

Symmetry in Tree Layout Graph

I am learning more about Tikz for drawing graphs. I am using the PGF3 stuff. This layered graph is not laying out well. I want the graph to be symmetrical about the vertical axis, that passes though ...
5
votes
1answer
105 views

decorating with tkz-berge

In my continuing quest to draw circles and lines willy-nilly, I've made the following use of tkz-berge: \documentclass[11pt]{standalone} \usepackage{tkz-berge} \usetikzlibrary{shapes,snakes,mindmap} ...
2
votes
2answers
221 views

How to draw this figure (if possible in 3D)

I want to draw a figure whose rough and symbolic figure is attached. Here $K_m$ denote a complete graph on $m$ vertices. Each vertex of $K_m$ is attached with each vertex of $K_n$ as well $K_1$. For ...
4
votes
0answers
88 views

Is there a TeX-native way to generate a readable graph from an adjacency matrix?

related questions This question goes the opposite way from the conversion I would like: Matrix from graph description This question is almost what I want, but the vertex coordinates are manually ...
1
vote
0answers
95 views

Unequal bin widths in pgfplots density histogram

In the pgfplots manual, it talks about density histograms with equal bin widths/ranges. Is it possible to make a density histogram with specified unequal bin widths/ranges? For example, if I set ...
7
votes
2answers
288 views

Vertically align nodes in tikz graph

I have taken to drawing automata in TikZ, as it will position the nodes for me, and generally requires very little post-processing in terms of options. I know I can force nodes to be in the same ...
3
votes
1answer
70 views

How can a style applied to a given node be inherited by all descendants of that node?

I'm using the graphs TikZ library to draw directed acyclic graphs. When I apply a particular style to a given node, I would like that style to be inherited by all descendants of the node in question. ...
3
votes
0answers
134 views

How can I programmatically draw a nonlinear writing system with automatic graph relaxation? [closed]

Alex Fink & I have a non-linear written language, UNLWS. Maintaining its grammar document in Google Docs is growing excessively cumbersome, however, because of how much time it takes to load each ...
2
votes
1answer
64 views

Why no line drawn when use dot with psmatrix?

I am trying to draw a signal flow graph with \psmatrix where each node is just a dot. However \ncline does not seem to work when mnode is set to dot $ \psmatrix[colsep=1cm,rowsep=1cm,mnode=dot] ...
1
vote
1answer
91 views

How can I specify a minimum length for my graph's edges?

I've just started to use the (new?) graphdrawing library (see section 27 of the TikZ & PGF 3.0.0). It's awesome! However, I can't seem to effect a minimum length for my graph's edges. That's ...
6
votes
1answer
236 views

Classroom Seating Chart in TikZ?

I would like to make a random classroom seating chart starting from a numbered list of students. I would also like to specify the number of seats per row (as it varies in my classroom) and the number ...
1
vote
0answers
112 views

Fitting TikZ graphs into a small space

I am trying to produce a graph of the kind at the end of Kanamori's textbook - "The Higher Infinite": It would be nice to have a method that extends to any graph of implications, so rather than put ...
3
votes
1answer
58 views

Axes in the foreground with PSTricks

With the code shown below, the grid is on the foreground (one can see red lines on the labels...): \documentclass[11pt]{article} \usepackage[letterpaper, textwidth=7in, textheight=9.5in]{geometry} ...
1
vote
0answers
292 views

Organizational Chart / Family Tree using tikz drawing library [closed]

Previous questions showed how this can be done with plain tikz. I wonder if it is possible to use tikz drawing library for this purpose. Here are two previous questions that do this without the use ...
5
votes
3answers
259 views

Parametric plot using pgfplots package

I want to make a parametric plot using pgfplot in LaTex. My equations are \rho= K (sinh t-t) P= 1/3 K (sinh t - 8 sinh (1/2) t +3t) with K=1\pi I have written the LaTex code for equations , now ...
0
votes
0answers
59 views

Inserting graph from a software in Latex

I made a graph with Desmos.com. Which I want to insert in my LaTeX code, on the right side of these equations: \documentclass[12pt,a4paper]{article} \usepackage[a4paper, total={6in, 8in}]{geometry} ...