# NetworkX

Python graph data structures and algorithms for network analysis and manipulation\.

ID: Q976 · Revision: 1024

Type: software · License: Open\-source software under the three\-clause BSD license\.[^home] · Status: active

Website: https://networkx.org/



NetworkX is a Python package for constructing, manipulating and analyzing graphs\. It supplies graph classes, generators, algorithms, file interchange and basic drawing facilities\. It is a programming library rather than a complete interactive network\-analysis desktop, making data modeling and reproducible scripts central to its use\.[^home][^intro]

## Capabilities and substitutions

### Programmatic network analysis — supported

Graph classes and algorithms support scripted graph construction, manipulation and analysis\.[^home][^intro]

Use case: Programmatic graph construction and network\-analysis pipelines · Platforms: Windows, macOS, Linux · Region: Version, build and integration requirements apply

### Complete GraphML interchange — unsupported

The implementation excludes mixed directed/undirected graphs, hyperedges, nested graphs and ports\.[^reader][^writer]

Use case: Programmatic graph construction and network\-analysis pipelines · Platforms: Windows, macOS, Linux · Region: Version, build and integration requirements apply

### Automatic backend fallback — limited

Fallback to the NetworkX implementation is disabled by default and must be configured where needed\.[^configs]

Use case: Programmatic graph construction and network\-analysis pipelines · Platforms: Windows, macOS, Linux · Region: Version, build and integration requirements apply

### [Substitute for igraph](/igraph) — limited

Can replace supported programmatic graph\-analysis workflows when Python graph objects and algorithms fit\. Code, node identity, multiedge semantics and backend behavior require adaptation rather than assuming an API\-compatible swap\.[^intro][^install][^igraph]

Use case: Programmatic graph construction and network\-analysis pipelines · Platforms: Windows, macOS, Linux · Region: Version, build and integration requirements apply

## References

[^home]: [NetworkX overview](<https://networkx.org/en/>) — Graph algorithms, portability and BSD license (vendor; retrieved 2026-10-07T16:39:34Z)

[^intro]: [NetworkX introduction](<https://networkx.org/documentation/stable/reference/introduction.html>) — Graph classes, hashable nodes, attributes and live views (vendor; retrieved 2026-10-07T16:37:12Z)

[^install]: [NetworkX installation and dependencies](<https://networkx.org/documentation/stable/install.html>) — 3\.7 Python requirements, optional scientific stack and backends (vendor; retrieved 2026-10-07T16:36:46Z)

[^reader]: [NetworkX GraphML reader](<https://networkx.org/documentation/stable/reference/readwrite/generated/networkx.readwrite.graphml.read_graphml.html>) — GraphML defaults, returned graph class and unsupported constructs (vendor; retrieved 2026-10-07T16:36:59Z)

[^writer]: [NetworkX GraphML writer](<https://networkx.org/documentation/stable/reference/readwrite/generated/networkx.readwrite.graphml.write_graphml.html>) — Unsupported mixed graphs, hyperedges, nesting and ports (vendor; retrieved 2026-10-07T16:36:29Z)

[^configs]: [NetworkX backend configuration](<https://networkx.org/documentation/stable/reference/configs.html>) — Fallback default and converted\-graph cache consistency (vendor; retrieved 2026-10-07T16:36:29Z)

[^igraph]: [Python igraph](<https://python.igraph.org/en/stable/>) — Graph analysis, conversion and plotting (vendor; retrieved 2026-10-07T16:37:12Z)

Source revision: https://substitutefor.net/entities/Q976?revision=1024
