0xflotus / pygraphviz

Python interface to Graphviz graph drawing package

Home Page:https://pygraphviz.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PyGraphviz

image

image

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

About

Python interface to Graphviz graph drawing package

https://pygraphviz.github.io/

License:Other


Languages

Language:C 58.6%Language:Python 38.5%Language:SWIG 2.8%Language:Makefile 0.1%