$npx skillfedfor your agent

pygraphviz

Python interface to Graphviz

With conditionsPyPI Python ModulesReleased Jul 20264.3M downloads / moBSD-3-ClausePlatform wheel

Decision gist · record as of 2026-08-14

platform wheels — pygraphviz-2.0.1-cp310-cp310-macosx_11_0_arm64.whl · pygraphviz-2.0.1-cp310-cp310-macosx_11_0_x86_64.whl · pygraphviz-2.0.1-cp310-cp310-manylinux_2_28_aarch64.whl
v2.0.1 · released 2026-07-20 · Python >=3.10

Yes, if you need graph visualization with automatic layout. PyGraphviz is actively maintained, has no known vulnerabilities, and offers permissive licensing. The medium install friction (compiled C bindings, system Graphviz dependency) is a real but manageable hurdle; prebuilt wheels for modern Python versions ease deployment. Worth installing for network analysis, diagram generation, and scientific visualization tasks.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Graphviz system library must be installed on your system; PyPI wheels bundle it but your environment must support the compiled C extension.
  • Medium install friction due to compiled C bindings to the Graphviz library.
  • Prebuilt wheels are available for Python 3.10–3.14 on macOS, Linux, and Windows, but the underlying Graphviz system library must be present.

License · maintenance · safety

BSD-3-Clause (permissive) — Released under BSD-3-Clause (permissive). Binary wheels bundle Graphviz libraries separately licensed under Eclipse Public License v2.0; review the bundled LICENSE.graphviz if that matters for your use case.

last release 2026-07-20 (25 days) · last repo commit 2026-08-03 · 844 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 4,286,036 downloads/mo, #2,341 on PyPI

Verify before relying

import pygraphviz as pgv
G = pgv.AGraph()
G.add_node("a")
G.add_edge("b", "c")
print(G)
  • Whether Graphviz is automatically available in all wheel distributions or requires separate system installation on some platforms.
  • Performance characteristics and scalability limits for large graphs.
  • Compatibility with PyPy beyond the classifier listing.
Same gist for agents: .md · .json

What it is and what it does

PyGraphviz is a Python binding to the Graphviz graph layout and visualization toolkit. It lets you construct graphs programmatically, apply Graphviz's sophisticated layout algorithms, and render them to various formats. The package wraps Graphviz's C libraries through compiled extensions, so it requires both the Python package and the underlying Graphviz system library to function.

The API mirrors NetworkX's design, making it familiar to developers already working with network libraries. You build graphs by adding nodes and edges, then use Graphviz's algorithms to compute layouts and generate visual output. It's commonly used for network diagrams, dependency graphs, and scientific visualization where automatic layout is valuable.

Use it for

  • Generate network topology diagrams and system architecture visualizations from Python data structures.
  • Render dependency graphs for software projects, showing build or import relationships.
  • Create scientific and mathematical graph visualizations with automatic layout algorithms.
  • Build flowcharts and state diagrams programmatically from application logic.
  • Export graph data to multiple formats (PNG, SVG, PDF) for reports and documentation.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you need graph visualization with automatic layout.

PyGraphviz is actively maintained, has no known vulnerabilities, and offers permissive licensing. The medium install friction (compiled C bindings, system Graphviz dependency) is a real but manageable hurdle; prebuilt wheels for modern Python versions ease deployment. Worth installing for network analysis, diagram generation, and scientific visualization tasks.

Install

pygraphviz on PyPI

Before you install

Medium install friction due to compiled C bindings to the Graphviz library. Prebuilt wheels are available for Python 3.10–3.14 on macOS, Linux, and Windows, but the underlying Graphviz system library must be present. Repository is actively maintained with recent commits.

Graphviz system library must be installed on your system; PyPI wheels bundle it but your environment must support the compiled C extension.

License in practice

Released under BSD-3-Clause (permissive). Binary wheels bundle Graphviz libraries separately licensed under Eclipse Public License v2.0; review the bundled LICENSE.graphviz if that matters for your use case.

Quickstart

import pygraphviz as pgv
G = pgv.AGraph()
G.add_node("a")
G.add_edge("b", "c")
print(G)

Verify before relying

  • Whether Graphviz is automatically available in all wheel distributions or requires separate system installation on some platforms.
  • Performance characteristics and scalability limits for large graphs.
  • Compatibility with PyPy beyond the classifier listing.

Package facts

LicenseBSD-3-Clause permissive
Python supportSupports the current Python release >=3.10
Install frictionMedium. Platform-specific wheel
Runtime dependenciesNone
MaintenanceActively maintained 25 days since the last release
Last repo commit
First released
Downloads4,286,036 / month, #2,341 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 4 - BetaIntended Audience :: DevelopersIntended Audience :: Science/ResearchProgramming Language :: CProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Scientific/Engineering :: Information AnalysisTopic :: Scientific/Engineering :: MathematicsTopic :: Scientific/Engineering :: VisualizationTopic :: Software Development :: Libraries :: Python Modules

Evidence: pygraphviz-2.0.1-cp310-cp310-macosx_11_0_arm64.whl; pygraphviz-2.0.1-cp310-cp310-macosx_11_0_x86_64.whl; pygraphviz-2.0.1-cp310-cp310-manylinux_2_28_aarch64.whl; pygraphviz-2.0.1-cp310-cp310-manylinux_2_28_x86_64.whl; pygraphviz-2.0.1-cp310-cp310-win_amd64.whl; pygraphviz-2.0.1-cp311-cp311-macosx_11_0_arm64.whl; pygraphviz-2.0.1-cp311-cp311-macosx_11_0_x86_64.whl; pygraphviz-2.0.1-cp311-cp311-manylinux_2_28_aarch64.whl; pygraphviz-2.0.1-cp311-cp311-manylinux_2_28_x86_64.whl; pygraphviz-2.0.1-cp311-cp311-win_amd64.whl; pygraphviz-2.0.1-cp312-cp312-macosx_11_0_arm64.whl; pygraphviz-2.0.1-cp312-cp312-macosx_11_0_x86_64.whl; pygraphviz-2.0.1-cp312-cp312-manylinux_2_28_aarch64.whl; pygraphviz-2.0.1-cp312-cp312-manylinux_2_28_x86_64.whl; pygraphviz-2.0.1-cp312-cp312-win_amd64.whl; pygraphviz-2.0.1-cp313-cp313-macosx_11_0_arm64.whl; pygraphviz-2.0.1-cp313-cp313-macosx_11_0_x86_64.whl; pygraphviz-2.0.1-cp313-cp313-manylinux_2_28_aarch64.whl; pygraphviz-2.0.1-cp313-cp313-manylinux_2_28_x86_64.whl; pygraphviz-2.0.1-cp313-cp313-win_amd64.whl

Tags

Capabilities
graph visualization pythongraphviz python interfacenetwork graph drawinggraph layout algorithmscreate and visualize graphsgraph data structure manipulationnetwork diagram generation
Topics
graph-visualizationnetwork-analysisgraphviz-binding
PyPI keywords
NetworksGraph Visualizationnetworkgraphgraph drawing

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “network graph drawing”

  • pygraphvizPyGraphviz provides a Python interface to Graphviz, enabling you to…
  • graphvizGenerates DOT language source code for graph structures and renders…
  • planarityTests whether a graph is planar, computes planar embeddings, draws…

Give your agent the search over MCP, or paste the wish link into any chat.

More Python Modules packages

idna Worth it
PyPI · Python Modules · released Jun 2026

Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.

Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.

MITpure Python · 3.10+
1.6Bdownloads / mo
PyYAML Worth it
PyPI · Python Modules · released Sep 2025

PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.

MITcompiled wheel · 3.8+
1.2Bdownloads / mo
pydantic Worth it
PyPI · Python Modules · released May 2026

Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.

MITpure Python · 3.9+
1.1Bdownloads / mo
annotated-types Worth it
PyPI · Python Modules · released Jul 2026

Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.

Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…

MITpure Python · 3.10+
871.3Mdownloads / mo
typing-inspection Worth it
PyPI · Python Modules · released Aug 2026

Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.

MITpure Python · 3.10+
783.0Mdownloads / mo

See also graphviz · pygexf · pyvis · planarity · networkx · pydotplus · torchviz · GvGen · pydot · objgraph