Questions tagged [pygraphviz]

PyGraphviz is a Python interface to Graphviz. With PyGraphviz it is possible to create, read, write and draw graphs with Python utilizing the Graphviz `dot`language and its layout algorithms.

PyGraphviz is a Python interface to Graphviz. With PyGraphviz it is possible to create, read, write and draw network structures (graphs) with Python utilizing the Graphviz dot language and its layout algorithms.

There is a wide range of applications of Graphviz and PyGraphviz, e.g. flowcharts and biological networks with many features to customize colors, fonts and layout, to mention a few.

Resources

Related Tags

250 questions
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
72
votes
6 answers

pip install pygraphviz: No package 'libcgraph' found

I succeed in installing graphviz and cgraph with $ sudo pip install graphviz .... Successfully installed graphviz-0.5.1 $ sudo pip install cgraph ... Successfully installed cgraph-0.1 I encounter the issue No package 'libcgraph' found while…
SparkAndShine
  • 14,337
  • 17
  • 76
  • 119
45
votes
6 answers

Python does not see pygraphviz

I have installed pygraphviz using easy_install But when i launch python i have an error: >>>import pygraphviz as pgv Traceback (most recent call last): File "", line 1, in ImportError: No module named pygraphviz >>> Using Ubuntu…
Sashko Lykhenko
  • 1,262
  • 3
  • 15
  • 33
40
votes
1 answer

How to set the output size in GraphViz for the dot format?

I want to make sure, that all nodes are within some range (say [0,0,W,H]) after layout. I figured bounding box would be the solution by using the bb attribute, but both dot and neato simply overwrite it. For example my graph: strict digraph { …
shinjin
  • 2,546
  • 4
  • 26
  • 41
33
votes
6 answers

Can one get hierarchical graphs from networkx with python 3?

I am trying to display a tree graph of my class hierarchy using networkx. I have it all graphed correctly, and it displays fine. But as a circular graph with crossing edges, it is a pure hierarchy, and it seems I ought to be able to display it as a…
NickDanger66
  • 333
  • 1
  • 4
  • 7
32
votes
4 answers

Installing pygraphviz on Windows 10 64-bit, Python 3.6

I am trying to install pygraphviz on Windows 10. There are many solutions to this problem online, but none have yet worked for me. The precise problem I'm having is with this via jupyter notebook--> [1] import networkx as nx import pylab as plt from…
adurbin
  • 527
  • 2
  • 6
  • 11
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,172
  • 2
  • 25
  • 51
24
votes
2 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
  • 522
  • 1
  • 4
  • 12
20
votes
6 answers

howto install pygraphviz on windows 10 64bit

Has anyone succeeded in installing pygraphviz on windows 10 64bit? I tried anaconda with python 3.5 64bit & 32bit with no success. Here is the error I am getting with python 3.5 32bit on win10 64bit python -m pip install pygraphviz…
Hynek Los kamute
  • 486
  • 1
  • 3
  • 15
20
votes
4 answers

(Python) ValueError: Program dot not found in path

I have the following problem: I am on xUbuntu OS and I am trying to use networkx in a Flask application, and I am having the following code: ..... import networkx as nx ...... # Creating and initializing graph object which is networkx…
Belphegor
  • 3,711
  • 11
  • 34
  • 57
17
votes
1 answer

Graphviz vs PyGraphViz

I have some dot files (digraphs) that I need to read in Python and extract some values from the nodes to populate my data structure. I see there are two graphviz packages for Python: graphviz and pygraphviz. Is there any big difference between the…
user4979733
  • 2,389
  • 2
  • 17
  • 33
17
votes
2 answers

Compiling pygraphviz: Unrecognized command line option '-mno-cygwin'

On Windows 7, when trying to compile pygraphviz, I run python setup.py build -c mingw32 I get C:\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall "-IC:\Program Files (x86)\Graphv iz 2.28\include\graphviz" -Ic:\Python27\include -Ic:\Python27\PC…
Dan Hook
  • 5,725
  • 7
  • 31
  • 48
16
votes
3 answers

Python: Installation issues with pygraphviz and graphviz

I see many questions on the difficulties of properly installing pygraphviz and graphviz on Windows for Python 2.7. But no answers that I have found is solving my problem. Here's what I did: I first installed pygraphviz using unofficial windows…
Plug4
  • 3,258
  • 7
  • 40
  • 70
13
votes
1 answer

Display more attributes in the decision tree

I am currently viewing the decision tree using the following code. Is there a way that we can export some calculated fields as output too? For example, is it possible to display the sum of an input attribute at each node, i.e. sum of feature 1 from…
13
votes
3 answers

Pip install pygraphviz fails: Failed building wheel for pygraphviz

I have troubles installing pygraphviz on macOS 10.10.5. I have a fully functional installation of Python 2.7.x, and I'd like to run the test example of queueing-tool, which requires installing pygraphviz using pip. When executing the command pip…
Unis
  • 423
  • 1
  • 3
  • 12
1
2 3
16 17