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

Using a DOT graph as a basis for tree GUI

I want to use a graph that is generated by DOT (pyDot in python) as the basis for an interactive Tree-structured GUI in which each of the nodes in the Tree could be widgets. The tree will basically be a binary Morse Code tree which start at the top…
0
votes
0 answers

Installing pygraphviz on OS X 10.7.5

I am trying to install pygraphviz on Mac OS 10.7.5 running Anaconda Python. In the last installation step, I get this error: $ sudo python setup.py install library_path=/usr/local/lib/graphviz include_path=/usr/local/include/graphviz running…
0
votes
3 answers

GraphViz - generate graph on top of assorted list of nodes/edges with python?

I have a list of items that relate to each other, I know they end up building a graph but the data is not sorted in any way. PMO-100 -> SA-300 SA-100 -> SA-300 SA-100 -> SA-200 PMO-100 -> SA-100 In python examples for graphViz api I realize that…
abolotnov
  • 3,994
  • 8
  • 51
  • 86
0
votes
0 answers

Pygraphviz-error: AttributeError: 'Graph' object has no attribute 'encode'

I am now trying to visualize a graph which I created in Python. However, once I apply pygraphviz, I get an error: A=pygraphviz.AGraph(name=N.name,strict=strict,directed=directed) File "/usr/lib/pymodules/python2.7/pygraphviz/agraph.py", line 177,…
anastasiiia
  • 189
  • 2
  • 11
0
votes
0 answers

How to draw multiple edges between same set of nodes in PyGraphviz?

Whenever I try to draw multiple edges between two same nodes, Pygraphviz only considers the latest edge. Is there any way to bypass this? Example Code: import pygraphviz as pgv A = pgv.AGraph() A.add_node(1, style='filled') A.add_node(2,…
Shankar
  • 2,938
  • 4
  • 22
  • 38
0
votes
2 answers

Duplicate edges created in Pygraphviz

I am using PyGraphviz to generate a hierarchical tree like structure with several levels and nodes. Whenever I try to create an edge between two nodes (I have unique index assigned to every node in the tree), Pygraphviz generates two edges,…
Shankar
  • 2,938
  • 4
  • 22
  • 38
0
votes
0 answers

pexports python27.dll > python27.def (pygraphviz 1.1 package)

I have mingw and python 2.7 in a Windows 7 box and trying to install PyGraphViz-1.1 using the following CLI utility python setup.py install build --compiler=mingw32 However, it ends up compiling error with undefined references as…
somnathchakrabarti
  • 2,706
  • 9
  • 58
  • 87
0
votes
1 answer

Uninstalling Activestate messed up my python directory and all my settings

So I was really eager to try generating a django model diagram with django-extensions by doing the following: manage.py graph_models -a -g -o my_project_visualized.png Then I realized I need pygraphviz to make it work. I'm running Windows 7 64bit,…
user14412
  • 927
  • 1
  • 9
  • 31
-1
votes
1 answer

Graphing Random Forest with Tree for Linear Regression

I am having a problem graphing my linear regression model with a random forest. Also, I am having a problem defining my feature_names and class_names because it is a continuous number. In R, this is a fairly simple visual, but python seems to…
AJ1225
  • 17
  • 4
-2
votes
1 answer

I have an if-else rules decision tree file , and want to visualize it, How can i do that?

I have generated a decision tree using the C4.5 algorithm, and the tree is generated and stored in rules.py as if-else rules. Now I wanted to visualize the decision tree in rules.py. I have seen some tutorials of graphviz but I am not able to…
Himanshu D
  • 5
  • 1
  • 4
1 2 3
16
17