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
49
votes
6 answers

Family tree layout with Dot/GraphViz

I am trying to draw a family tree with Dot and GraphViz. This is what I currently have: # just graph set-up digraph simpsons { ratio = "auto" mincross = 2.0 # draw some nodes "Abraham" [shape=box, regular=1, color="blue"] ; "Mona" …
BioGeek
  • 21,897
  • 23
  • 83
  • 145
48
votes
1 answer

Rank attribute is confusing to me

Rank attribute on edge has five values "same", "min", "source", "max", "sink". Except "same", I have no idea when to use other values. min \begin{dotpic} rankdir=LR; size="7,5"; node[shape=circle]; C->A; {rank=min;A;B} B->D …
nirvana9235
  • 655
  • 1
  • 5
  • 7
48
votes
1 answer

Graphviz, dot, ortho plots do not respect ports

I am using graphviz and would like to render my graphs with splines = ortho. The problem is that the edges don't respect ports, so it is not possible to analyse the graph. digraph G{ splines= ortho; A [shape = box, label =<
Daniel
  • 561
  • 4
  • 6
48
votes
1 answer

How to set the output size in GraphViz for the dot format?

I want to make sure, that all nodes are within some range (say [0,0,W,H]) after layout. I figured bounding box would be the solution by using the bb attribute, but both dot and neato simply overwrite it. For example my graph: strict digraph { …
shinjin
  • 2,858
  • 5
  • 29
  • 44
47
votes
10 answers

graph.write_pdf("iris.pdf") AttributeError: 'list' object has no attribute 'write_pdf'

My code is follow the class of machine learning of google.The two code are same.I don't know why it show error.May be the type of variable is error.But google's code is same to me.Who has ever had this problem? This is error [0 1 2] [0 1…
乔守卿
  • 583
  • 1
  • 4
  • 8
46
votes
2 answers

GraphViz Node Placement and Rankdir

I'm having very good luck with graphviz and have been able to make nearly every graph that I need. I'm trying to duplicate this: http://en.wikipedia.org/wiki/File:ICS_Structure.PNG as faithfully as I can. The bottom part of that graph all flows…
simusid
  • 1,854
  • 3
  • 18
  • 26
45
votes
6 answers

Can you build reusable styles in GraphViz?

I'm using graphviz to create flow charts. I change the styles every time by setting node and edge attributes: node[shape="box", style="filled, rounded", fillcolor=lightyellow, fontname="Verdana", fontsize=9, …
Steve Kallestad
  • 3,484
  • 2
  • 23
  • 31
45
votes
8 answers

Xlib.h not found when building graphviz on Mac OS X 10.8 (Mountain Lion)

When using homebrew to install graphviz, the script gets to the point of "Making install in tkstubs" and then throws the following fatal error: In file included from tkStubLib.c:15: /usr/include/tk.h:78:11: fatal error: 'X11/Xlib.h' file not…
AntBrown
  • 737
  • 2
  • 7
  • 11
44
votes
2 answers

Prevent overlapping records using graphviz and neato

I am building a dot file to represent computer hardware and the physical connections to a network switch and displays. I have it looking ok when processed by the dot program but I think I really want it processed by neato to create a more "free…
Chris Williams
  • 493
  • 1
  • 4
  • 6
43
votes
2 answers

Right to left edges in dot (Graphviz)

I'm trying to display edges going from right to left (i.e. backwards) using dot: C <- A -> B The best I could do was: digraph { a -> b; c -> a [dir="back"]; {rank=same;c a b} } ..which is fine, except I don't like using c -> a when the edge…
Nickolay
  • 31,095
  • 13
  • 107
  • 185
43
votes
2 answers

Graphviz Dot, mix directed and undirected

For my application I need to represent simultaneously (on the same graph) two relations: one is simmetric, the other is not. Targets: Ideally the two relation should result in edges having different colors; For the symmetric relation I would like…
Dacav
  • 13,590
  • 11
  • 60
  • 87
41
votes
2 answers

how to generate a graph/diagram like Google Analytics's Visitor Flow?

I am trying to generate a diagram similar to that presented by the recent Google Analytics "Visitor Flow". These are also known as Alluvial diagrams. I can use a web or non-web based solution, as long as I can run it myself. The data I want to…
pocketfullofcheese
  • 8,427
  • 9
  • 41
  • 57
41
votes
2 answers

Graphviz: how to set 'default' arrow style?

Consider this dot language code: digraph graphname { subgraph clusterA { node [shape=plaintext,style=filled]; 1 -> 2 [arrowhead=normal,arrowtail=dot]; 2 -> 3 -> X2 -> 5; 6; 7; label = "A"; …
sdaau
  • 36,975
  • 46
  • 198
  • 278
41
votes
2 answers

Hidden edges in Graphviz

I'm trying to create a graph using Graphviz (complied with neato), and I would like to place nodes in specific locations. For this, I'm specifying exact edge lengths for all edges. However, I don't want all edges to be visible in the final image.…
Dana
  • 2,619
  • 5
  • 31
  • 45
40
votes
7 answers

Is there any good IDE or WYSIWYG editor for graphviz?

Actually I had downloaded an GUI for graphviz (dont remember the site), which said that they had won an Apple Design Award. But that tool really only displays an *.dot file I created. That's it. It's just called "Graphviz"... I guess that there are…
Thanks
  • 40,109
  • 71
  • 208
  • 322