$npx skillfedfor your agent

altgraph

Python graph (network) package

Worth itPyPI Python ModulesReleased Nov 202512.3M downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — altgraph-0.17.5-py2.py3-none-any.whl
v0.17.5 · released 2025-11-21

Yes. altgraph is a stable, lightweight, zero-dependency library with permissive licensing and no known vulnerabilities. Install it when you need core graph algorithms and traversal operations. The aging maintenance status (last release 266 days ago) is not a blocker for stable use, but monitor the repository if you require active development or new features.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Low install friction with no runtime dependencies.
  • Maintenance status is aging—last release was 266 days ago—but the repository remains active and the package is widely used (top 5000 on PyPI).

License · maintenance · safety

MIT (permissive) — MIT license (permissive) means you can use, modify, and distribute altgraph freely in commercial and private projects with minimal restrictions.

last release 2025-11-21 (266 days) · last repo commit 2026-01-02 · 25 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 12,333,630 downloads/mo, #1,326 on PyPI

Verify before relying

pip install altgraph

from altgraph.Graph import Graph

g = Graph()
g.add_node('a')
g.add_node('b')
g.add_edge('a', 'b')
print(g.nodes())
  • Whether graphviz must be installed separately for output functionality to work
  • Current performance characteristics for large graphs (node/edge scale limits)
Same gist for agents: .md · .json

What it is and what it does

altgraph is a Python graph library descended from graphlib, providing data structures and algorithms for building and analyzing directed and undirected networks. It offers core graph operations—breadth-first and depth-first traversal, topological sorting, shortest-path computation—and can export graphs in graphviz format for visualization. The package has no runtime dependencies and supports Python 2.7 and Python 3.4 through 3.14.

The library is primarily used as a dependency in tools like py2app and macholib for analyzing module and binary dependencies. It is stable and widely deployed (over 12 million monthly downloads), though maintenance is aging—the last release was 266 days ago. For straightforward graph construction and traversal tasks, it remains a lightweight, dependency-free choice.

Use it for

  • Analyze module dependencies in Python applications or build tools
  • Perform graph traversals and topological sorting on network data
  • Export graph structures to graphviz for visualization and debugging
  • Build dependency graphs for build systems or package managers
  • Compute shortest paths and connectivity in directed networks

Worth the install?

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

Worth it

Yes.

altgraph is a stable, lightweight, zero-dependency library with permissive licensing and no known vulnerabilities. Install it when you need core graph algorithms and traversal operations. The aging maintenance status (last release 266 days ago) is not a blocker for stable use, but monitor the repository if you require active development or new features.

Install

altgraph on PyPI

Before you install

Low install friction with no runtime dependencies. Maintenance status is aging—last release was 266 days ago—but the repository remains active and the package is widely used (top 5000 on PyPI).

License in practice

MIT license (permissive) means you can use, modify, and distribute altgraph freely in commercial and private projects with minimal restrictions.

Quickstart

pip install altgraph

from altgraph.Graph import Graph

g = Graph()
g.add_node('a')
g.add_node('b')
g.add_edge('a', 'b')
print(g.nodes())

Verify before relying

  • Whether graphviz must be installed separately for output functionality to work
  • Current performance characteristics for large graphs (node/edge scale limits)

Package facts

LicenseMIT permissive
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceAging 266 days since the last release
Last repo commit
First released
Downloads12,333,630 / month, #1,326 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Intended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: PythonProgramming Language :: Python :: 2Programming Language :: Python :: 2.7Programming 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 :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Scientific/Engineering :: MathematicsTopic :: Scientific/Engineering :: VisualizationTopic :: Software Development :: Libraries :: Python Modules

Evidence: altgraph-0.17.5-py2.py3-none-any.whl

Tags

Capabilities
graph library pythonnetwork analysis traversaltopological sortshortest path algorithmgraphviz outputbfs dfs graphdirected graph
Topics
graph-algorithmsnetwork-analysisdependency-analysis
PyPI keywords
graph

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 analysis traversal”

  • altgraphaltgraph constructs and analyzes graphs (networks), supporting BFS…
  • graphframes-pyGraphFrames Python wrapper provides graph processing and analysis on…
  • rustworkxA high-performance graph library for Python, written in Rust,…

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 modulegraph · objectgraph · toposort · rustworkx · Dijkstar · networkx · retworkx · objgraph · grandalf · modulegraph2