PyGraphviz

Graphviz 图形绘制软件包的 Python 接口。「Python interface to Graphviz graph drawing package」

Github stars Tracking Chart

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

Overview

Name With Ownerpygraphviz/pygraphviz
Primary LanguageC
Program languageMakefile (Language Count: 4)
Platform
License:Other
Release Count23
Last Release Namev1.12rc1 (Posted on 2024-01-08 09:34:16)
First Release Namepygraphviz-1.2 (Posted on 2013-08-03 09:55:56)
Created At2013-08-02 15:10:50
Pushed At2024-05-02 14:23:57
Last Commit At
Stargazers Count733
Watchers Count36
Fork Count202
Commits Count694
Has Issues Enabled
Issues Count277
Issue Open Count57
Pull Requests Count205
Pull Requests Open Count4
Pull Requests Close Count43
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private
To the top