Current version: 1.1

Get NetworkX from the Python Package Index, or install it with:

easy_install pygraphviz

Questions? Suggestions?

Join the Google group:

You can also open an issue at the on the developer's site.

PyGraphviz is a Python interface to the Graphviz graph layout and visualization package. With PyGraphviz you can create, edit, read, write, and draw graphs using Python to access the Graphviz graph data structure and layout algorithms. PyGraphviz is independent from NetworkX but provides a similar programming interface.

Quick Example

>>> import pygraphviz as pgv
>>> G=pgv.AGraph()
>>> G.add_node('a')
>>> G.add_edge('b','c')
>>> G
strict graph {
        b -- c;

To load a dot file use

>>> G=pgv.AGraph("")


Get PyGraphviz

Download PyGraphviz from the Python Package Index.

The code source code is available from the NetworkX SVN server at