NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
PyPI
PyPI, #3056 most downloaded on PyPI
Typing stubs for networkx
Latest stable
3.6.1.20261108
Last release 14 days ago
08 Nov 2026
Ships fairly regularly
a new release about every 2 weeks
Nearly every release is documented
notes for 59 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
3 years old
90 releases · first in 2023
Drag across the ruler to compare, or tap a release to open it.
Replace Incomplete in graph-returning algorithm stubs
* Fix typos in stub comments (#16715) Co-authored-by: Claude Opus 5
Fix typos in stub comments (#16715)
Co-authored-by: Claude Opus 5 noreply@anthropic.com
Use concrete node types for the caveman, ring of cliques, windmill and LFR generators
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Use concrete types for the random tree generators
Use concrete node types for a few generators
Return the input graph type from transitive_closure
Return the input graph type from transitive_closure (#16556)
Co-authored-by: Daniel Shafer dan@danielshafer.com
Return the input graph type from compose_all (#16555)
Co-authored-by: Daniel Shafer dan@danielshafer.com
Accept any node type in graph functions that took Graph[Hashable] (#16557)
Graph is invariant in its node type, so Graph[Hashable] rejected Graph[str] and similar graphs. Use the _Node type variable, like the other functions in the module.
Type max_flow_min_cost endpoints as nodes (#16559)
Accept a Callable as relabel_nodes mapping
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Enable Ruff rule RUF036 (#16477)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Accept any node and edge data types in the drawing functions
* Make numpy dependency optional
* Improve type coverage
* Replace NoReturn with Never
NoReturn with Never (#16079)[networkx] Fix regression tests
[networkx] Fix regression tests (#15932)
The latest numpy release uses type statements, which were introduced
in Python 3.12. Therefore, we can't run the regression tests with
Python 3.10 and 3.11.
[networkx] Fix type hints for networkx birank personalization parameters
[networkx] Fix type hints for networkx birank personalization parameters (#15889)
Upgrade black to 26.5.0
Upgrade black to 26.5.0 (#15801)
[networkx] Fully type communicability(_alg)
[networkx] Fully type communicability(_alg) (#15781)
[networkx] Add generic type for node and edge data
[networkx] Add generic type for node and edge data (#15660)
Drop 3.9 support for third-party packages
Use dashes instead of underscores for METADATA.toml field names
Use dashes instead of underscores for METADATA.toml field names (#15614)
Rename requires to dependencies in METADATA files
[networkx] Enhance annotation for Networkx.Graph.add_weighted_edges_from
[networkx] Enhance annotation for Networkx.Graph.add_weighted_edges_from (#15528)
[networkx] Graph/MultiGraph inherited methods return Self
[networkx] Graph/MultiGraph inherited methods return Self (#15453)
Officially remove Python 3.9 support
Officially remove Python 3.9 support (#15360)
[networkx] Update usages of SupportsGetItem that should be more restrictive
[networkx] Update usages of SupportsGetItem that should be more restrictive (#14795)
[networkx] add stubs for networkx.utils.union_find.UnionFind
[networkx] add stubs for networkx.utils.union_find.UnionFind (#15126)
[networkx] Update to 3.6.1
[networkx] Update to 3.6.1 (#15123)
[networkx] Update to 3.6
[networkx] Update to 3.6 (#15086)
networkx: fix link argument deprecation warning
Merge networkx Graph classes from python-type-stubs and address a few recent issues
Merge networkx Graph classes from python-type-stubs and address a few recent issues (#14597)
networkx: Add type annotation to all G params
networkx: Add type annotation to all G params (#14796)
Fix regression in DiDegreeView
Fix regression in DiDegreeView (#14732)
Update mypy to 1.18.1
Update mypy to 1.18.1 (#14699)
networkx: Fix incompletes in connectivity/connectivity
networkx: Add return types to algorithms/approximation/clique.pyi
networkx: Add return types to algorithms/approximation/clique.pyi (#14660)
networkx: Add all_simple_path target typing in simple_paths.pyi
networkx: Add all_simple_path target typing in simple_paths.pyi (#14656)
Adds typing for the target argument of all_simple_paths and all_simple_edge_paths, which per the documentation take either a single node or an iterable of nodes.
networkx: complete the link_analysis algorithms module
a few issues exposed after https://github.com/python/mypy/pull/18259 was merged
Add __slots__ to third-party packages using stubdefaulter
Add slots to third-party packages using stubdefaulter (#14619)
networkx Final and Literal from python-type-stubs
networkx: complete the layout module
complete networkx/digraph.pyi addresses #14499 follows #14509
complete networkx/digraph.pyi addresses #14499 follows #14509 (#14569)
networkx: annotate the linalg module
networkx: complete the components module
Remove pytype workarounds from third-party stubs
Remove pytype workarounds from third-party stubs (#14471)
networkx: improve the cycles module
Correct type hints for networkx/algorithms/flow/mincost.pyi
Correct type hints for networkx/algorithms/flow/mincost.pyi (#14395)
Nothing published for this version
networkx: All return types from python-type-stubs
networkx: All return types from python-type-stubs (#14256)
[networkx] completed type annotation for equivalence_classes
[networkx] completed type annotation for equivalence_classes (#14352)
[networkx] Correct argument type for from_nested_tuple
[networkx] Correct argument type for from_nested_tuple (#14218)
Bump networkx to 3.5
Bump networkx to 3.5 (#14196)
Bump importlib to 3.14
Bump importlib to 3.14 (#14138)
networkx: Add symbols from python-type-stubs
networkx: Add symbols from python-type-stubs (#14084)
Update nx_pylab.pyi: allow node_color to be a list of strings as well
networkx: consistent Unknown | None = None
networkx: consistent Unknown | None = None (#14027)
networkx: ignore_missing_stub = false
networkx: ignore_missing_stub = false (#13968)
networkx: add all missing __all__
networkx: add all missing __all__ (#13956)
networkx: Most nodelist params are collections
networkx: Most nodelist params are collections (#13945)
Fix generics in NetworkX
Fix generics in NetworkX (#13864)
[networkx] Fix a few annotations in AtlasView and Graph
[networkx] Fix a few annotations in AtlasView and Graph (#13656)
One column per month.