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
61
votes
5 answers

Newline in node label in dot (graphviz) language

Does anyone know how to put newline in the label of the node? \n is not working - instead some new nodes appear.
M T
  • 968
  • 1
  • 8
  • 24
59
votes
3 answers

How do I place nodes on the same level in DOT?

I want to render several trees simultaneously and place all root nodes and all leaf nodes on the same level. Here's an example of what I'm trying to do. Root nodes A and X are on the same level, and so are leaf nodes B, D, and Z. I unsuccessfully…
Thalecress
  • 3,231
  • 9
  • 35
  • 47
58
votes
1 answer

Graphviz - how do I make the text in labels left-aligned?

I'm using graphviz to visualize the AST of a language I'm parsing. I want to include the source code (as a label) but graphviz aligns the text inside the label, which messes with my indentation (and code is indentation-sensitive). Here's an example…
migimunz
  • 928
  • 1
  • 6
  • 12
57
votes
31 answers

Graphviz's executables are not found (Python 3.4)

I am running Python3.4 on Windows 7. I am trying to use the Python interface for graphviz. This is a script I intend to run: from graphviz import Digraph import pydotplus dot = Digraph(comment='The Round Table') dot.node('A', 'King…
Morteza R
  • 2,229
  • 4
  • 20
  • 31
55
votes
5 answers

top-down subgraphs, left-right inside subgraphs

I'd like to have my graph looks like this: But I can only get this: The problem is, rankdir does not work in subgraph. So, how to emulate it? The code: digraph G { node [shape = circle] 0 [style = invis] 0 -> "0A" subgraph…
Pitel
  • 5,334
  • 7
  • 45
  • 72
55
votes
6 answers

Pure Java reimplementation of GraphViz?

Is there an Open Source java alternative to GraphViz? I'm aware of the existence of Grappa which basically wraps the Graph interface to GraphViz as an JavaAPI. However the layouting is still done by the GraphViz binaries. I'm looking for a…
paweloque
  • 18,466
  • 26
  • 80
  • 136
53
votes
4 answers

Graphviz + Doxygen to generate UML class diagrams

I want to use Graphviz + Doxygen to generate a class diagram based on C++ code. This works already as Doxygen comes with a native DOT support; but is it possible, to produce a UML-like output with the corresponding access modificators (public,…
Eric
  • 1,594
  • 1
  • 15
  • 29
52
votes
4 answers

Text wrapping with dot (graphviz)

I used the code below to create a graphic using dot (graphviz). digraph { node [color=Blue,shape=box] 1.1 [label="Frequency of t exceeds upper threshold"] 2.1 [label="t has d-mutant tiles"] 2.2 [label="Valid"] 3.1 [label="Frequency of t…
Daniel Standage
  • 8,136
  • 19
  • 69
  • 116
52
votes
5 answers

How to correct PlantUML Line Path

I created this diagram using the following code. But as you can see, the lines going from (Cancel Order) and (Place Order) to (Publisher) decide to take a terribly rounded path to get their, instead of going straight to the right and then down to…
aSamWow
  • 861
  • 1
  • 7
  • 9
51
votes
2 answers

free visual editor for graph (dot) files

Is there a free (as in "cheers"), linux-compatible, interactive visual editor for graphviz or other graphs? aptitude seems to be drawing a blank. edit: "cheers" means both "beer" and "speech". meta-edit: I guess it should be "free as in…
intuited
  • 23,174
  • 7
  • 66
  • 88
50
votes
2 answers

Placing clusters on the same rank in Graphviz

I would like these two nodes to appear on the same level: digraph G { subgraph cluster1 { label="Local Datacenter"; router1; host1; } subgraph cluster2 { label="Remote Datacenter"; router2; …
tinypigdotcom
  • 503
  • 1
  • 4
  • 4
50
votes
5 answers

How to control node placement in graphviz (i.e. avoid edge crossings)

I'm using graphviz (dot) to generate the graph you can see below. The node in the lower left corner (red ellipse) causes annoyance as its edges cross several edges of the adjacent node. Is there a way to restrain node placement to a certain area?
jnns
  • 5,148
  • 4
  • 47
  • 74
50
votes
1 answer

size of node with shape=circle

i'm trying to set the size of the nodes this way: controller[shape=circle,width=.5,label="Controller",style=filled,fillcolor="#8EC13A"]; But all three nodes are with different size. How can i set fixed size?
cupakob
  • 8,411
  • 24
  • 67
  • 76
49
votes
4 answers

Graph Visualisation (like yFiles) in JavaFX

Something like Graphviz but more specifically, yFiles. I want a node/edge type of graph visualization. I was thinking about making the node a Circle and the edge a Line. The problem is what to use for the area where the nodes/edges appear. Should I…
3legit4quit
  • 593
  • 1
  • 6
  • 10
49
votes
4 answers

How to place edge labels ON edge in graphviz

By default in Graphviz, edge labels are placed just to the right of the edge. I'm looking for a way to place the labels OVER the edge, centred on the edge. (It'll still be readable because I'm changing the colour of the edge). Any ideas?
naught101
  • 18,687
  • 19
  • 90
  • 138