unstale

pypi / networkx

networkx

What changed in networkx 3, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-18.

17 breaking3 deprecations32 new APIs and options7 performance6 behavior and defaults1 tooling33 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.1.1 on npm

networkx 399 changes

Breaking changes 17

Deprecations 3

New APIs and options 32

Performance 7

  • Uses linear algebra to compute communicability.

    3.7release notes

  • Fixes an accidentally quadratic use of a list as a queue.

    3.7release notes

  • Bidirectional Dijkstra is optimized, with reported speedups from 1.1x to 25x.

    3.6release notes

  • Optimizes harmonic centrality.

    3.6release notes

  • Optimizes is_reachable.

    3.6release notes

  • Short-circuits the check for directed graphs.

    3.6release notes

  • Dijkstra paths to a target are optimized, with graphs having multiple-hop shortest paths reported as about 50 times faster.

    3.6release notes

Behavior and default changes 6

  • Aligns the keys default with kruskal and prim.

    3.7release notes

  • Power iteration becomes the default HITS implementation.

    3.7release notes

  • Symmetry-aware isomorphism and subgraph checks now support directed and multigraphs, as well as non-induced subgraph monomorphism.

    3.7release notes

  • A proposal suggests adding density to the defaults; the notes do not establish that it shipped.

    3.7release notes

  • Adds GEXF 1.3 to the recognized GEXF versions.

    3.6release notes

  • Adds support for directed graphs and multigraphs.

    3.6release notes

Tooling 1

  • The library is provided via pip with wheels that include GraphViz binaries, making the NetworkX interface easier to use for layout and rendering.

    3.7release notes

Fixes and other changes 33