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
81
votes
1 answer

Graphviz subgraph doesn't get visualized

I'm trying to create a graph with two subgraphs in dot. The code is as follows: digraph G { subgraph step1 { style=filled; node [label="Compiler"] step1_Compiler; node [label="Maschine"]…
halfdan
  • 33,545
  • 8
  • 78
  • 87
80
votes
5 answers

Graphviz and ascii output

Is it possible to draw ASCII diagram using Graphviz? Something like that: digraph { this -> is this -> a a -> test } Gives undesired result. Instead, I would like to get similar ASCII representation: this / \ is a | …
user360872
  • 1,261
  • 4
  • 15
  • 15
79
votes
3 answers

How to prevent edges in graphviz to overlap each other

I have a graph I've created in graphviz, but the problem is that edges overlap each other (I have 5-7 nodes in each row), so it is hard to tell for each node which are the nodes it connects. How can I make the edges not to overlap each other? Have…
David Rabinowitz
  • 29,904
  • 14
  • 93
  • 125
78
votes
6 answers

Visualizing Undirected Graph That's Too Large for GraphViz?

I need advice for rendering an undirected graph with 178,000 nodes and 500,000 edges. I've tried Neato, Tulip, and Cytoscape. Neato doesn't even come remotely close, and Tulip and Cytoscape claim they can handle it but don't seem to be able to. …
Gabe
77
votes
23 answers

ImportError: Failed to import pydot. You must install pydot and graphviz for `pydotprint` to work

I have seen similar issue but it is not solved either, so I decided to ask. I am trying to visualize my model in keras using from keras.utils import plot_model plot_model(model, to_file='model.png') First, it showed error ImportError: Failed to…
bit_scientist
  • 1,496
  • 2
  • 15
  • 34
75
votes
2 answers

Graphviz Alternatives?

I'm looking for alternatives to GraphViz. I've been using GraphViz for more than a decade and it's okay, but the layouts are just not producing publication-quality graphs for me given my input data. Sometimes my data is really big and complex, and…
vy32
  • 28,461
  • 37
  • 122
  • 246
75
votes
28 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,351
  • 3
  • 22
  • 43
73
votes
1 answer

How do you center a title for a diagram output to SVG using dot?

So far I tried this line but dot keeps pushing it aside making room for my nodes (pushes it to the right): _diagram_info [shape="plaintext", label="My Diagram\l", fontsize=13] Is there a way to center the label by pos, using dot?
chtrinh
  • 808
  • 1
  • 6
  • 8
72
votes
1 answer

Horizontal Trees in Graphviz

I've made a tree in the dot language, similar to the one here. Is there any way I could get the tree to expand to the right, instead of downwards (so the root node is on the left and children go along to the right).
Peter
  • 1,381
  • 2
  • 13
  • 24
70
votes
1 answer

Graphviz: Putting a Caption on a Node In Addition to a Label

In my Graphviz graph (written in DOT), I want each node to have a label, but in addition to that, I want some nodes to have a small caption denoting some other unique value for that node. For example, if this were for a history diagram, a node's…
A. Duff
  • 4,097
  • 7
  • 38
  • 69
70
votes
4 answers

laying out a large graph with graphviz

My daughters have made a game not unlike tic-tac-toe. Of course as I played it with them I started brute-forcing it in my head... So at lunchtime I made a quick little Python script to 'solve' the game. And I wanted to see the results graphically,…
Will
  • 73,905
  • 40
  • 169
  • 246
69
votes
3 answers

How to force node position (x and y) in graphviz

I am trying to force position of nodes. I have x and y coordinates of my nodes and its also directed graph. I can use the rank=same to handle row (y coordinate), but can't figure out how I can handle column (x coordinate).
user664947
  • 691
  • 1
  • 5
  • 4
65
votes
1 answer

Reducing the size (as in area) of the graph generated by graphviz

Does anyone have any general tips for reducing the size of a graph generated by graphviz (size as in area, not as in file size). I have a fairly large graph (700 nodes). I set a smaller font size for each node, but it seems to only reduce the font…
meteoritepanama
  • 6,092
  • 14
  • 42
  • 55
64
votes
1 answer

Drawing a border around a set of vertices in Graphviz

I am trying to draw a graph with Graphviz. I wish to draw a dotted line around a set of vertices, symbolizing that they are a part of a bigger entity. Say for example, if I have three vertices as eggs, chicken and ham, I should be able to draw a…
user916315
  • 1,017
  • 2
  • 9
  • 13
64
votes
4 answers

How do I set the resolution when converting dot files (graphviz) to images?

I tried $ dot -Tpng rel_graph.gv > rel_graph.png but the resulting image has a very low quality.
Alexandru
  • 25,070
  • 18
  • 69
  • 78