pygraphviz

Python interface to Graphviz

BSD-3-Clause 50 个版本 Python >=3.10
Manos Renieris <Aric Hagberg <aric.hagberg@gmail.com>, Dan Schult <dschult@colgate.edu>>
安装
pip install pygraphviz
poetry add pygraphviz
pipenv install pygraphviz
conda install pygraphviz
描述

PyGraphviz

.. image:: https://github.com/pygraphviz/pygraphviz/workflows/test/badge.svg?branch=main :target: https://github.com/pygraphviz/pygraphviz/actions?query=workflow%3Atest+branch%3Amain

.. image:: https://codecov.io/gh/pygraphviz/pygraphviz/branch/main/graph/badge.svg :target: https://app.codecov.io/gh/pygraphviz/pygraphviz/branch/main

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

.. code:: pycon

>>> 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-2024 PyGraphviz Developers Aric Hagberg aric.hagberg@gmail.gov Dan Schult dschult@colgate.edu Manos Renieris

版本列表
2.0rc4 2026-06-20
2.0rc3 2026-06-18
2.0rc2 2026-06-13
2.0rc1 2026-06-07
2.0rc0 2026-06-07
1.14 2024-09-29
1.13 2024-05-09
1.12 2024-01-08
1.11 2023-06-01
1.10 2022-08-19
1.9 2022-02-09
1.8 2022-01-20
1.7 2021-02-01
1.6 2020-08-06
1.5 2018-09-10
1.3.1 2015-09-06
1.3 2015-09-05
1.2 2013-08-03
1.1 2011-05-14
1.0 2010-08-01
1.8rc1 2022-01-15
1.7rc2 2021-01-24
1.7rc1 2021-01-04
1.6rc1 2020-08-05
1.4rc1 2016-11-06
1.3rc2 2014-10-11
1.3rc1 2014-09-21
1.1rc1 2011-02-12
1.14rc0 2024-09-29
1.13rc0 2024-05-09
1.12rc3 2024-01-08
1.11rc1 2023-05-31
1.10rc1 2022-08-17
1.0rc6 2010-07-31
1.0rc5 2010-07-30
1.0rc4 2010-07-28
1.0rc3 2010-07-27
1.0rc2 2010-07-24
1.0rc1 2010-07-24
0.99.1 2008-12-07
0.99 2008-11-18
0.37 2008-08-17
0.36 2008-01-13
0.35 2007-07-23
0.34 2007-04-12
0.2