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-2022 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.9.zip (119.9 kB view details)

Uploaded Source

File details

Details for the file pygraphviz-1.9.zip.

File metadata

  • Download URL: pygraphviz-1.9.zip
  • Upload date:
  • Size: 119.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for pygraphviz-1.9.zip
Algorithm Hash digest
SHA256 fa18f7c6cea28341a4e466ed0cf05682b0a68288afe8dd7c9426782f7c1ae01c
MD5 8faba995395e6dbb1e495c8d77626014
BLAKE2b-256 c721063c3ec261904f3c67b7d8bb0033e4e53bbdacb17e6d27097239d50fb7ca

See more details on using hashes here.

Provenance

Supported by

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