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

learn more… | top users | synonyms

0
votes
1answer
76 views

How can we draw these graphs like in this book?

Can you show me which tools we can use to draw the graphs look like in this book? (see below figure). Sorry, I don't know exactly where I can post this question.
-1
votes
0answers
54 views

Latex code to plot linear programming on a graph [closed]

I am in a big problem. And I would like to have a Latex code for the equations below that would produce three (3) graphs on the same sheet. S'=0.085-0.0182si-0.098s I'=0.182si-0.178i ...
1
vote
0answers
29 views

Including graph using tikz causes not including bibliography file

I am experiencing problems using package tikz. I have produced a graph in R and want to include it in my tex file using package tikz. After I include the the tex file with graph in myfile.tex with ...
3
votes
2answers
91 views

drawing curve line between predefined edges

Im trying to draw the following figure in LaTeX format: My question is how can I draw the curved line passing through the nodes shown in the figure? And how to change the color of the nodes left ...
2
votes
0answers
115 views

TikZ new graphing library - how to use?

Ubuntu 14.04 tex version : TeX 3.1415926 (TeX Live 2013/Debian) After seeing this post I really wanted to play with the example and library, however I can't seem to get it working on my system. ...
0
votes
0answers
32 views

Graph not drawing correctly when within a node

I am having a problem getting a graph to come out correctly. \documentclass[journal]{IEEEtran} \usepackage{graphicx} \begin{axis}[ title={}, xlabel={$q$}, ylabel={Time /seconds}, xmin=6, ...
4
votes
1answer
28 views

without using explicite coordinates - graph with nodes aligned above

I want to draw a structure as shown in the picture so that the knots 3 and 2 are on the top left and top right of 1. And 4 should be in the middle of 3 and 2 in the level on top of them and so on. ...
2
votes
1answer
73 views

Can anyone help in drawing this kind of graph?

Can anyone help in drawing the graph of the kind shown in figure with edge intersections? I struggled with pstricks and started to learn tikz but not able to do it. Kindly help as am not getting how ...
4
votes
2answers
42 views

changing y axis values

How do you change the y axis points to letters? Specifically I'm interested in using musical notes in the y axis. This is what I've tried and I received an error. \begin{tikzpicture}[>=latex] ...
1
vote
0answers
66 views

how to draw multiple graphs next to each other with labels

How to draw multiple graphs next to each other in a document? Also, how to name each graph with a label? One more thing is I need to show an dashed edge to intersect the graph edge, in that case how ...
5
votes
0answers
122 views

Visualisation of planes within hypercubes in LaTex? [closed]

The 3rd hypercube is the cube below where planes cover the space in different ways. The 4th hypercube can be considered as many connected 3rd hypercubes. You are interested in planes, the example is ...
0
votes
0answers
31 views

Use of block diagrams or graphs in Journals or Conference templates

I have a question regarding the research journals and conference templates given by majority of templates from IEEE, Springer. I need to add few block diagrams, tree diagram such as spanning tree, ...
5
votes
1answer
64 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
83 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
85 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
86 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
67 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
75 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
87 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
99 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
80 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
107 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
176 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
129 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 ...
2
votes
1answer
123 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
349 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
72 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
69 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
43 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
159 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
124 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
81 views

pgfplots very small Y values

I need to plot the following function: ...
4
votes
1answer
113 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
79 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
82 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
160 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
165 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
458 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
137 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
142 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
252 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
202 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
790 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
174 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
604 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
856 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
199 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
120 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
237 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 ...
5
votes
0answers
98 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 ...