A Python library providing a simple Graph API for directed graphs. Current version 0.9.5, released periodically with minimal breaking changes.
pip install graphlibNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Create a directed graph, add edges, topologically sort, and detect cycles.
Replace Graph([('A','B')]) with g = Graph(); g.add_edge('A','B').Use a custom check before add_edge if you need to avoid duplicates: if not g.has_edge('A','B'): g.add_edge('A','B').Ensure you iterate once: order = list(g.topological_sort()).
No dependency data recorded yet.