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

Pygraphviz/Python3/Mac: TypeError

I have been trying to get Pygraphviz to work with Python3 on Mac, and I am unable to solve a TypeError. Specifically, the output of the following code (Python3/Eclipse Neon/macOS 10.10.5, adapted tutorial from here) import networkx as nx import…
Unis
  • 423
  • 1
  • 3
  • 12
0
votes
1 answer

Get DOT graphviz of nested list elements which can contain duplicated nodes

I have a set of nested lists which can be seperated in three groups: A (subelements are disjunction, line colors GREEN), e.g. listA = { ‘a1’: ['b1', 'a2'], ‘a2’: ['c1', 'c2'] } B (subelements are ordered conjunction, line colors ORANGE),…
eljobso
  • 304
  • 1
  • 6
  • 19
0
votes
1 answer

PermissionError when drawing a pygraphviz chart from Jupyter

I am trying to generate a chart with pygraphviz in Python 3. It works on my machine with this Anacondas version: Python 3.3.5 |Continuum Analytics, Inc.| (default, Jun 4 2015, 15:22:11) It returns a PermissionError when I run it from a different…
Ginger
  • 7,124
  • 9
  • 43
  • 85
0
votes
0 answers

Hierarchical graph with parallel edges

I need to create a graph from a set of data. I have sifted through countless SO questions but not been able to find a solution that fits all the must-have requirements. What's needed: http://i.imgur.com/hzQHD07.png Must-have…
TraderMoe
  • 83
  • 8
0
votes
0 answers

How to make easy_install see libraries installed by homebrew?

My use case: I installed graphviz using homebrew. It's installed with include headers and dynamic libraries into /usr/local/Cellar/graphviz, which is great. Then I tried installing pygraphviz with easy_install, but got the following…
Vladimir Gritsenko
  • 1,675
  • 11
  • 20
0
votes
1 answer

pygraphviz layout IOerror

I try to print a graph using pygraphviz. I run the following code and get the following error. Code: import pygraphviz as pgv G=pgv.AGraph("k5_attributes.dot") G.layout(prog = 'neato') G.draw('file.png') Error: Traceback (most recent call last): …
Krapow
  • 533
  • 4
  • 21
0
votes
2 answers

Draw networkx graph with pygraphviz on Mac 10.10

so I am trying to draw the graph I already have and I constantly run to an error I do not understand. File "/usr/local/lib/python2.7/site-packages/pygraphviz/agraph.py", line 1305, in layout data=self._run_prog(prog,'…
Atais
  • 9,017
  • 5
  • 61
  • 101
0
votes
1 answer

Installation of igraph on python distributed by anaconda ? (and graphviz)

I tried to install the package igraph on Anaconda but so far it did not work. If anyone find a way to get it, I would be very happy to try it !! Below are some details of what I tried to do (if you have the solution of installing igraph on Anaconda,…
0
votes
2 answers

Port unrecognized in DOT file?

I am trying to create a PNG from DOT file dot -Tpng -o temp.png and I am getting the below errors: Warning: node s1, port eth2 unrecognized Warning: node s2, port eth2 unrecognized Warning: node s2, port eth3 unrecognized Warning: node s3, port…
Manik Sidana
  • 1,657
  • 2
  • 13
  • 27
0
votes
1 answer

Error installing pygraphviz 1.2 on Mac OS X 10.9 (missing library)

I'm using Mac OS X 10.9. I have already installed graphviz 2.36.0. After downloading pygraphviz 1.2, I modified in setup.py the variables "library_path" and…
fotinsky
  • 862
  • 2
  • 10
  • 24
0
votes
0 answers

itertools aparent bug with pygraphviz and return chain to flask

I am finding a possible bug with chaining several methods in a return statement in flask. I wanted to see if anyone had any suggestions on how to get around this problem. Here is my code: #!/usr/bin/env python import flask import time from…
user1601716
  • 1,521
  • 2
  • 18
  • 39
0
votes
1 answer

finding all paths from given graph python

I need to find all paths from a given graph. I can do that for now however my recursive code is not efficient also my graphs are very complicated. Hence I need a better algorithm. Here is my code so far, def findLeaves(gdict): # takes graph and…
genclik27
  • 323
  • 1
  • 7
  • 18
0
votes
1 answer

pygarphviz graphviz vertical alignement with 2 set of nodes

I'm using graphviz with python. I try to model an energy flowchart. All commodities (technologies) are in rectangle nodes. All fuel generated are in ellipse shape. I would like to get a graph that gives me a better alinement where the first column…
S12000
  • 2,861
  • 10
  • 31
  • 45
0
votes
1 answer

Error compiling pyGraphviz on Os X 10.9

Good day to everyone, I've an error trying to compile and install Pygraphviz 1.2 in OS X 10.9 I've downloaded the pygraphviz archive from…
marketto89
  • 11
  • 4
0
votes
1 answer

I am trying to install pygraphviz but received the following error

I am trying to install pygraphviz, I tried to do so with the following command but unfortunately it is not working. Can anyone help how to fix it? C:\Python27\Lib\site-packages\pygraphviz-1.2>python setup.py build -c mingw32 …
user1124825
  • 349
  • 4
  • 15
1 2 3
16
17