Questions tagged [graphviz]

Graphviz, developed by AT&T Research Labs, is the leading application for layout and drawing of graphs (objects comprised of vertices connected by edges). It includes the dot language, a complete syntax for graph description and a set of layout engines. Graphviz is free and open source.

Graphviz, developed by AT&T Research Labs, is the leading application for the layout and drawing of graphs (objects comprised of vertices connected by edges). It includes the dot language -- a complete syntax for graph description -- and a set of layout engines. Graphviz is free and open source.

Useful Graphviz Resources

Related Tags

2917 questions
28
votes
1 answer

Graphviz Dot Algorithm

Is there any documentation (full pseudo code?) on the algorithm from dot within the Graphviz Library? I only found some partial pseudo code documentation.
RaphaelH
  • 2,144
  • 2
  • 30
  • 43
28
votes
3 answers

dot: dash in name

Is it possible to have a dash in the node name? I tried escaping with backslash (searching the web didn't helped either). Example: digraph test { some-name -> other-name; }
Dag
  • 10,079
  • 8
  • 51
  • 74
28
votes
5 answers

how to draw multigraph in networkx using matplotlib or graphviz

when I pass multigraph numpy adjacency matrix to networkx (using from_numpy_matrix function) and then try to draw the graph using matplotlib, it ignores the multiple edges. how can I make it draw multiple edges as well ?
Binary Baba
  • 1,953
  • 2
  • 16
  • 23
27
votes
2 answers

Interpreting callgrind data

I need a dynamic call graph for my app. I run it with callgrind tool (valgrind suite) and got callgrind.out.xxxxx file. Now, I want to make a graphical representation of this data. KCacheGrind doesn't help me much because it draws a limited part of…
maverik
  • 5,508
  • 3
  • 35
  • 55
27
votes
2 answers

How to manage distance between nodes in graphviz?

I am trying to plot a graph with 3 levels of nodes, with equal distances between the levels. However, graphviz somehow decides that the distance between the middle level and the bottom one should be much larger than the distance between the top and…
Cantfindname
  • 2,008
  • 1
  • 17
  • 30
27
votes
2 answers

Interactive Graphviz viewer with basic node/edge filtering

I looked thru Graphviz resources page , and questions 1 and 2 and still couldn't find specific answer. My usecase is browsing dependencies among software components (e.g. installable packages), and one particular trait with it is that some common…
pfalcon
  • 6,724
  • 4
  • 35
  • 43
26
votes
1 answer

Creating Straight Edges in Graphviz

I want to create a flowchart (similar to Visio) using Graphviz. Here is a sample digraph. digraph start_up { node [style = rounded]; node [shape = rect] start end; node [style = ""]; node [shape = diamond] "USB\nCommand\nArrived"; start ->…
oliverks
  • 261
  • 1
  • 3
  • 4
26
votes
3 answers

How can I optimize GraphViz output width?

I make graphs that have huge width ratio: they are 51706 x 503 pixels in size. How can I tell GraphViz to optimize width ? Note 1: the graph is in fact a tree with each node having a lot of children. Here is a sample. Note 2: I think I use dot…
MickaelFM
  • 897
  • 1
  • 8
  • 19
26
votes
3 answers

Graphviz (DOT) Captions

I need to print a large number of graphs using Graphviz DOT. To distinguish which input each graph corresponds to, I want to also have a caption for each graph. Is there anyway to embed this into the DOT representation of the graphs.
myahya
  • 3,079
  • 7
  • 38
  • 51
26
votes
2 answers

Forcing "main line" nodes into a straight line in Graphviz (or alternatives)

I'm trying to use Graphviz dot (but am willing to use something else) to generate a graph with a long "main line" of nodes, and many small branches. I'd like the main line to be straight from left to right, with the small branches above or below it.…
Chad Birch
  • 73,098
  • 23
  • 151
  • 149
26
votes
3 answers

How to assign the same style to a group of edges?

I've got a graph that I want graphviz to layout and visualize for me. The graph has 122 edges and 123 nodes. The edges are of 4 different kinds and I want them to be visually distinguishable. However I've not yet decided what would be the best way…
Vilx-
  • 104,512
  • 87
  • 279
  • 422
25
votes
2 answers

Does anyone know a non-TeX equivalent for TikZ?

Until now i have used Graphviz to programmatically create diagrams and graphs. Recently, I found out about TikZ and I started loving it. However, it would be overkill in some of my intended uses to have a dependency on TeX, LaTeX, etc. Thus, I want…
Mihai Maruseac
  • 20,967
  • 7
  • 57
  • 109
25
votes
0 answers

avoid overlapping arrows in plantuml class diagrams

I am using plantuml for creating the class diagrams along with arrows and messages on the arrows. It works perfect untill the diagram is huge. In large diagrams where there are multiple arrows and multiple classes, the arrows gets overlapped with…
Nikhil
  • 849
  • 8
  • 10
25
votes
1 answer

Graphviz: Place edge label on the other side (II)

related questions are: Graphviz: Place edge label on the other side How to place edge labels ON edge in graphviz Consider following dot file: digraph { 0 -> 1 [ len=2, label="(1, 0)"]; 0 -> 1 [ len=0.5, dir=none, weight=10]; 1 -> 0 [ len=2,…
Hotschke
  • 9,402
  • 6
  • 46
  • 53
25
votes
1 answer

Graphviz dot: How to change the colour of one record in multi-record shape

I have the following dot sample. I would like to give the first section in each record (the table name) a different background and foreground colour. I can't find any examples of how to do this for a record. Basically I want the table name in the…
Superdooperhero
  • 7,584
  • 19
  • 83
  • 138