python gv vs pygrsphviz

3.8k Views Asked by At

python noob here.

I am trying to figure out which module has a lesser learning curve. the gv module which comes as a language bindings with graphviz or pygraphviz.

does pygraphviz internally use gv warranting me to install both?

http://www.graphviz.org/pdf/gv.3python.pdf

thanks

2

There are 2 best solutions below

0
On

Use networkx which is a widely accepted graph package in Python, together with its pydot or matplotlib interfaces, in particular the inline drawing capabilities. See also this question.

0
On

I liked pydot and then used the output to either pipe it into graphviz (dot) or used the builtin spawn methods. It had a simpler interface in my opinion.