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

2537 questions
491
votes
11 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
  • 108,809
  • 177
  • 454
  • 689
188
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
  • 16,878
  • 34
  • 86
  • 143
186
votes
3 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
  • 20,241
  • 10
  • 55
  • 74
175
votes
32 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
  • 1,814
  • 2
  • 10
  • 11
141
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
  • 8,994
  • 6
  • 30
  • 33
113
votes
14 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
  • 2,661
  • 5
  • 25
  • 31
107
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 =…
Sadik
  • 3,773
  • 6
  • 47
  • 84
99
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
  • 25,053
  • 59
  • 155
  • 250
94
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
  • 4,385
  • 4
  • 23
  • 35
92
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,585
  • 1
  • 16
  • 25
88
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,689
  • 1
  • 15
  • 26
84
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
  • 25,421
  • 13
  • 84
  • 117
81
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
  • 923
  • 1
  • 6
  • 7
79
votes
7 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
  • 8,907
  • 7
  • 59
  • 90
75
votes
27 answers

Why is pydot unable to find GraphViz's executables in Windows 8?

I have GraphViz 2.32 installed in Windows 8 and have added C:\Program Files (x86)\Graphviz2.32\bin to the System PATH variable. Still pydot is unable to find its executables. Traceback (most recent call last): File "", line 1, in…
web_ninja
  • 2,217
  • 2
  • 19
  • 38
1
2 3
99 100