NetworkX
Python package for creating, analyzing and manipulating complex networks and graphs.
ML and data science PyPI
Used in agent projects
73
0.6% of 12,697 public repos built with AI coding agents
Rank in ml and data science
#8 of 28
by use in those projects
Downloads
50.2M
PyPI, last 7 days, networkx
GitHub stars
17.3K
last push Oct 6, 2026
How NetworkX is used
NetworkX is a dependency in 73 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (0.6%), #8 of 28 in ml and data science. The most used alternative there is NumPy. Projects that use it most often also use NumPy (76.7%), pandas (57.5%), python-dotenv (56.2%).
Often used with NetworkX
| NumPy | 76.7% of NetworkX projects · 20.0× more than average |
|---|---|
| pandas | 57.5% of NetworkX projects · 19.1× more than average |
| python-dotenv | 56.2% of NetworkX projects · 8.6× more than average |
| Pydantic | 54.8% of NetworkX projects · 10.7× more than average |
| Pillow | 50.7% of NetworkX projects · 22.0× more than average |
| FastAPI | 49.3% of NetworkX projects · 11.7× more than average |
| PyYAML | 49.3% of NetworkX projects · 16.3× more than average |
| Requests | 49.3% of NetworkX projects · 9.3× more than average |
By coding agent
| Claude Code | 1.0% of projects set up for it |
|---|---|
| GitHub Copilot | 1.1% of projects set up for it |
| Cursor | 1.0% of projects set up for it |
Share of public repos configured for each agent that list NetworkX as a dependency.
Install
| Package | pip install networkx |
|---|---|
| Main stacks | Python (71), Next.js (2) |
| Example projects | microsoft/edge-ai, assafkip/kipi, timowhite88/Farnsworth, NihadMemmedli/quorvex_ai, mshogin/archlint |
Alternatives to NetworkX
| Tool | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|
| NumPy pypi Fundamental Python library for numerical computing with arrays and matrices. |
487 (3.8%) | 21M | 33K | — |
| pandas pypi Data manipulation and analysis library with DataFrames for structured data. |
383 (3.0%) | 143M | 50K | — |
| scikit-learn pypi Python machine learning library with classification, regression and clustering algorithms. |
160 (1.3%) | 44.3M | 67.5K | — |
| SciPy pypi Fundamental algorithms for scientific computing with optimized numerical routines. |
141 (1.1%) | 72.2M | 15.1K | — |
| PyTorch pypi Deep learning framework with tensors and dynamic neural networks with GPU support. |
109 (0.9%) | 13.2M | 104K | — |
| Sentence Transformers pypi Pre-trained models for semantic embeddings, retrieval and reranking. |
83 (0.7%) | 5.1M | 19.2K | — |
| Hugging Face Transformers pypi State-of-the-art NLP and multimodal models for inference and training. |
80 (0.6%) | 24.8M | 167K | Apache 2.0 License |
| joblib pypi Lightweight pipelining and parallel computing for Python functions with caching support. |
65 (0.5%) | 38.7M | 4,403 | — |