Skip to main content

Python interface to Graphviz

Project description

https://github.com/pygraphviz/pygraphviz/workflows/test/badge.svg?branch=main https://codecov.io/gh/pygraphviz/pygraphviz/branch/main/graph/badge.svg

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pygraphviz-1.13.tar.gz (104.6 kB view details)

Uploaded Source

File details

Details for the file pygraphviz-1.13.tar.gz.

File metadata

  • Download URL: pygraphviz-1.13.tar.gz
  • Upload date:
  • Size: 104.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for pygraphviz-1.13.tar.gz
Algorithm Hash digest
SHA256 6ad8aa2f26768830a5a1cfc8a14f022d13df170a8f6fdfd68fd1aa1267000964
MD5 44209c29c13ce308c40c0de3ed06052b
BLAKE2b-256 8c417b9a22df38bb7884012b34f2986d765691dbe41bf5e7af881dfd09f8145f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page