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
565
votes
12 answers

Graphviz: How to go from .dot to a graph?

I can't seem to figure this out. I have a .dot file, which is valid according to the syntax. How do I use graphviz to convert this into an image? (note that I'm on Windows, not linux)
Nick Heiner
  • 119,074
  • 188
  • 476
  • 699
275
votes
38 answers

"RuntimeError: Make sure the Graphviz executables are on your system's path" after installing Graphviz 2.38

I downloaded Graphviz 2.38 MSI version and installed under folder C:\Python34, then I run pip install Graphviz, everything went well. In system's path I added C:\Python34\bin. When I tried to run a test script, in line…
liga810
  • 2,824
  • 2
  • 12
  • 11
226
votes
4 answers

GraphViz - How to connect subgraphs?

In the DOT language for GraphViz, I'm trying to represent a dependency diagram. I need to be able to have nodes inside a container and to be able to make nodes and/or containers dependent on other nodes and/or containers. I'm using subgraph to…
Winston Smith
  • 21,585
  • 10
  • 60
  • 75
220
votes
4 answers

How to add edge labels in Graphviz?

I am trying to draw a graph using Graphviz, but I need to add labels on the edges. There does not seem to be any way to that in Graphviz. Are there a way out?
user855
  • 19,048
  • 38
  • 98
  • 162
145
votes
6 answers

Pure JavaScript Graphviz equivalent

Is anyone aware of a pure, Javascript based implementation of the directional flow diagrams that GraphViz is capable of generating? I am NOT interested in pretty visuals output, but the computations to figure out the maximum depth of each node,…
Armentage
  • 12,065
  • 8
  • 33
  • 33
128
votes
6 answers

How to use doxygen to create UML class diagrams from C++ source

I have been searching for some material that describes how to generate simple class diagrams with doxygen, but couldn't find one. Can anybody help? I need to create diagrams as shown below from a set of C++ files. If there are better tools to…
softwarematter
  • 28,015
  • 64
  • 169
  • 263
127
votes
15 answers

anaconda - graphviz - can't import after installation

Just installed a package through anaconda (conda install graphviz), but ipython wouldn't find it. I can see a graphviz folder in C:\Users\username\Anaconda\pkgs But there's nothing in: C:\Users\username\Anaconda\Lib\site-packages
nivniv
  • 3,421
  • 5
  • 33
  • 40
110
votes
5 answers

How to open dot on Mac

First of all, I am new to MacOS, and what I want is to be able to see the output of llc -view-dag-combine1-dags sum.ll. On Mac, llc will generate dot in /tmp directory, and try open App to show the dot file. I have tried Graphviz, but it doesn't…
chenwj
  • 1,989
  • 2
  • 16
  • 30
109
votes
2 answers

Graphviz, changing the size of edge

How to change the size of edge in dot (graphviz)? I would like to make some edges "bolded".
name
  • 5,095
  • 5
  • 27
  • 36
106
votes
14 answers

pydot and graphviz error: Couldn't import dot_parser, loading of dot files will not be possible

When I run a very simple code with pydot import pydot graph = pydot.Dot(graph_type='graph') for i in range(3): edge = pydot.Edge("king", "lord%d" % i) graph.add_edge(edge) vassal_num = 0 for i in range(3): for j in range(2): edge =…
Sadık
  • 4,249
  • 7
  • 53
  • 89
97
votes
2 answers

Dot graph language - how to make bidirectional edges automatically?

Here is a very simplified example of my Dot graph: strict digraph graphName { A->B B->A } This creates Instead I want a single edge shown between A and B but with a double arrow head. I know how to get the double arrowhead as a global…
I82Much
  • 26,901
  • 13
  • 88
  • 119
93
votes
2 answers

Display labels in line with the edge when using Graphviz

I am using Graphviz 2.30. Horizontal positioning for labels works out, but in a few cases, a modified angle would be desired. For instance, I tried various values for angle here but without any effect: ABB -> ABACUS[label="applied",…
mnemonic
  • 1,605
  • 2
  • 17
  • 26
92
votes
3 answers

Graphviz: change font for the whole graph?

I am wondering if I can define an alternative font for the whole graph. ... digraph script_concept { graph [layout="dot",fontname="helvetica"]; ... According to this 1 older post the fontname atribute can be defined only separately: Nodes and…
pirkil
  • 1,033
  • 1
  • 7
  • 7
89
votes
9 answers

Making a Legend/Key in GraphViz

I’d like to include a legend or key in my GraphViz diagram. I’m having trouble figuring out what code to use, though. I also want to put it in a corner, but the only coord I know for sure is the bottom-left: pos="10,10!". Does anyone know how I can…
Synetech
  • 9,643
  • 9
  • 64
  • 96
85
votes
1 answer

why doesn't fillcolor work with graphviz?

I am following the exact instructions from the graphviz documentation, but I am unable to add fillcolor to nodes. Here is my graph: digraph hello_world { node [href="javascript:void(click_node('\N'))"] node0 [label="No…
kloop
  • 4,537
  • 13
  • 42
  • 66
1
2 3
99 100