Python

pygraphviz

Python interface to Graphviz graph drawing package

P

pygraphviz

Dernière activité 28 sept. 2026
pygraphviz/pygraphviz

848

étoiles

228

forks

26

issues ouvertes

complex-networksgraph-visualizationpython

Ce README est souvent en anglais.

PyGraphviz

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 provides a similar programming interface to NetworkX (https://networkx.org).

Simple example

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

Install

PyGraphviz requires Graphviz. Please see INSTALL.txt for details.

License

Released under the 3-Clause BSD license (see LICENSE):

Copyright (C) 2006-2026 PyGraphviz Developers
Aric Hagberg <aric.hagberg@gmail.gov>
Dan Schult <dschult@colgate.edu>
Manos Renieris

The binary wheels distributed on PyPI bundle the Graphviz libraries and command-line tools, which are licensed separately under the Eclipse Public License v2.0 (see LICENSE.graphviz).

Projets similaires

Simple Python interface for Graphviz

Python
Xxflr6
1,8 k étoiles220

Network Analysis in Python

Pythoncomplex-networksgraph-algorithmsgraph-analysis
Nnetworkx
17,3 k étoiles3,6 k

Visualization Package for NetworkX

Pythonnetworknetwork-visualizationnetworkx
Eericmjl
486 étoiles86