Guide/Start here
When to Use FrankenNetworkX (and When Not To)
1 min readFrom the README
Use it when:
- You have an existing NetworkX codebase and the per-call cost dominates wall-clock time. Set
nx.config.backend_priority = ["franken_networkx"]and you're done. - You want determinism and speed. The CGSE tie-break contract means rerunning the same analysis on the same graph gives byte-identical output across runs and across machines.
- You're shipping graph analytics as part of a long-lived pipeline where iteration-order drift would be a quiet correctness bug downstream.
- You're doing research on graph algorithms and want a reproducibility audit trail per algorithm execution (the
ComplexityWitnessledger). - You're parsing graphs from untrusted sources and want strict-vs-hardened ingestion semantics, not "best-effort don't crash."
Don't use it when:
- You're working with graphs that fit comfortably in pure-Python NetworkX (< 10⁴ nodes, single-shot analysis) and you'd rather not add a Rust dependency. NetworkX is excellent at that scale.
- You need GPU acceleration. Look at cugraph / pylibraft.
- You need a different API entirely (igraph's vertex-index model, graph-tool's property-map model) and aren't tied to NetworkX semantics.
- You're targeting a Python runtime older than 3.10. ABI3-py310 means 3.10 is the floor.
- You need exotic backends (Neo4j, distributed graphs across machines). This is an in-memory graph algorithms library.