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
31
votes
3 answers

Django django-extensions commands unavailable ( graph_models )

I'm trying to install django-extensions + graphviz + pygraph but i can't. I have done the following steps ( under Ubuntu ): sudo apt-get install graphviz libgraphviz-dev graphviz-dev python-pygraphviz in the project virtualenv (running python…
Michael
  • 792
  • 1
  • 7
  • 14
31
votes
4 answers

Pyreverse complaining even after having Graphviz

I want to be able to save the output in PNG and have installed Graphviz. Still it complains saying Graphviz is not installed: The output format 'output.png' is currently not available. Please install 'Graphviz' to have other output formats than…
KanwarG
  • 1,024
  • 2
  • 11
  • 18
31
votes
3 answers

Straight edge between clusters in Graphviz

I'm trying to have an edge between clusters in Graphviz where the edge does not affect the ranking. This looks fine: digraph { subgraph clusterX { A B } subgraph clusterY { C D } A -> B B -> C [constraint=false] …
Motti
  • 110,860
  • 49
  • 189
  • 262
31
votes
7 answers

How to specify the length of an edge in graphviz?

In a directed graph, if there is a cycle, the graphviz makes that edge really short. Is there a parameter that would let me change the length of the cyclic edge, so that the graph looks a bit uniform. digraph ER { rankdir="LR"; …
A. K.
  • 34,395
  • 15
  • 52
  • 89
31
votes
2 answers

graphviz: Create new node with this same label

I'm starting working with graphviz and I have problem with creating new nodes with this same label. For example for word "sentence" I would like to create graph with 8 nodes: s -> e -> n -> t -> e -> n -> c -> e Now I'm receiving graph with only 5…
Piotr0123456
  • 638
  • 3
  • 7
  • 21
30
votes
2 answers

How do I get DOT to display an image for a node?

I am not having success displaying an image at a node in dot. My node is defined: SW103 [image="swOpen.png"] I can view swOpen.png so I think the file is ok, and it is in the same directory as the code. But dot displays the node using its label…
kathleen gould
  • 333
  • 1
  • 3
  • 7
30
votes
13 answers

Keras: "RuntimeError: Failed to import pydot." after installing graphviz and pydot

I'm using Anaconda Python 2.7 on windows 10 I was planning on doing Keras visualization so (whilst spyder was open) I opened the Anaconda command prompt and pip installed graphviz and pydot. Now when I try run the following: from keras.models import…
ishido
  • 4,065
  • 9
  • 32
  • 42
30
votes
2 answers

What could cause NetworkX & PyGraphViz to work fine alone but not together?

I'm working to learning some Python graph visualization. I found a few blog posts doing some things I wanted to try. Unfortunately I didn't get too far, encountering this error: AttributeError: 'module' object has no attribute 'graphviz_layout' The…
xtian
  • 2,765
  • 7
  • 38
  • 65
30
votes
1 answer

group nodes with subgraphs

I'd like to group some nodes with the following code digraph dataflow { subgraph pipeline { relations; synonyms; articles; } subgraph lucene { index; search; } training_data - > index; …
Reactormonk
  • 21,472
  • 14
  • 74
  • 123
29
votes
5 answers

Preventing graphviz from rearranging nodes

I am trying to visualize a tree structure using graphviz, problem is as the graph gets bigger graphviz starts to rearrange the order of the nodes. Say I have the following, A / | \ B C D it becomes, A / | \ B D C it probably does this to save…
Hamza Yerlikaya
  • 49,047
  • 44
  • 147
  • 241
29
votes
6 answers

Interactive Graphviz graphs in a web application

I am trying to make a few interactive graph visualisations in my Django web application using Python. I found Graphviz and was able to output a static graph (as a .png image) on my application using Pydot (Python interface to Graphviz's dot…
Akshay K
  • 305
  • 1
  • 3
  • 5
29
votes
1 answer

Passing a string to agedge in agraph.py. Issue with networkx and pygraphviz

Given this initial graph: import networkx as nx G=nx.MultiGraph() fromnodes=[0,0,1,1,1,1,1,2,3,4,5,5,5,7,8,9,10] tonodes=[1,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16] dupedgeind=0 for x,y in zip(fromnodes,tonodes): if G.has_edge(x,y): …
Lee
  • 29,398
  • 28
  • 117
  • 170
29
votes
2 answers

How to draw node and edge attributes in a networkx graph

I have a graph G with attribute 'state' for nodes and edges. I want to draw the graph, all nodes labelled, and with the state marked outside the corresponding edge/node. for v in G.nodes(): G.node[v]['state']='X' G.node[1]['state']='Y'…
Bravo
  • 657
  • 1
  • 8
  • 19
28
votes
2 answers

Graphviz: How to change border color

Given a node like so, on a white background "test" [ style="filled,dashed" shape=box color=lightgray label="Hello World" ]; How do I make the dashed border black?
puk
  • 16,318
  • 29
  • 119
  • 199
28
votes
2 answers

Changing edge direction in dot

I'm trying to draw a pretty simple diagram in dot. digraph untitled { rankdir = LR; {rank=same; S; A} B -> A; B -> S; A -> A; S -> S; A -> S ; S -> A; A -> T; S -> T; } The results I get is I really have…
JoFrhwld
  • 8,867
  • 4
  • 37
  • 32