FrankenNetworkX

48 pages · about 25,000 words

The guide.

The project's README, split into pages you can read, link and search one at a time: installing and switching, how a call reaches Rust, how parity and speed are checked, running it in production, and the full reference.

Start here

What it is, how to switch, and when it's the right tool.

How it works

From the Python call to the Rust kernel and back.
How it works1 minDesign Principles

Five durable principles govern every commit:

How it works1 minGraph Types

All four provide the core method surface (add_node, add_edge, remove_node, subgraph, copy, to_directed, to_undirected, edges, nodes, degree, adj, __getitem__, etc.). Exact class/member signature differences are classified as partial in the

How it works2 minArchitecture

How it works6 minCanonical Graph Semantics Engine (CGSE)

CGSE is the project's core correctness mechanism. It treats algorithmic tie-breaking as part of the API contract rather than incidental behavior.

How it works1 minHow a Call Flows Through the System

Tracing a natively routed call from the Python call site down to native code and back. The boxes name pagerank for concreteness; note that the public pagerank route today runs its power iteration in scipy over a natively built CSR (see the

How it works2 minNetworkX Backend Protocol Primer

NetworkX 3.0+ ships a backend protocol that lets third-party libraries accelerate or replace algorithm implementations. FrankenNetworkX implements it through two Python entry points wired up in pyproject.toml:

How it works7 minAlgorithm Implementation Notes

The native algorithm implementations in fnx-algorithms favor textbook complexity bounds. CGSE registers policies and optional witness collection for twelve reference algorithms; instrumentation does not yet cover every public route. The not

How it works3 minInternals Walkthrough

A guided tour of the moving parts in a single algorithm execution. Useful for new contributors and for anyone debugging an edge case.

How it works1 minWorking With Attributes

NetworkX's killer feature is arbitrary edge / node / graph attributes. fnx preserves that contract exactly. A few patterns worth knowing.

How it works5 minMemory Model and Data Layout

Understanding the internals helps when you want to reason about cost or attribute semantics.

Evidence

How parity, speed and safety are checked, and what the checks cover.

In production

Deploying it, debugging it, and writing code that runs on either library.

Reference

Catalogues, limits, the roadmap and the reading list.