Pythie
CategoriesTrending
An open index of Python tools.Pythie’s IndexLegal noticePrivacyData: PyPI (package metadata; download statistics under CC BY 4.0, via ClickHouse), deps.dev (CC BY 4.0), GitHub, OSV.

networkx

3.7ActivePythie’s Index: 88

Python package for creating and manipulating graphs and networks

Actively maintained. Last release 2 months ago, commits in 26 of the last 26 weeks. A safe choice.

Scientific ComputingData Visualization
$pip install networkx
networkx/networkxHomepageDocsPyPI
NetworkX ======== .. image:: https://github.com/networkx/networkx/actions/workflows/test.yml/badge.svg?branch=main :target: https://github.com/networkx/networkx/actions/workflows/test.yml .. image:: https://img.shields.io/pypi/v/networkx.svg? :target: https://pypi.python.org/pypi/networkx .. image:: https://img.shields.io/pypi/l/networkx.svg? :target: https://github.com/networkx/networkx/blob/main/LICENSE.txt .. image:: https://img.shields.io/pypi/pyversions/networkx.svg? :target: https://pypi.python.org/pypi/networkx .. image:: https://insights.linuxfoundation.org/api/badge/health-score?project=networkx :target: https://insights.linuxfoundation.org/project/networkx NetworkX is a Python package for the creation, manipulation, and study of the structure, dynamics, and functions of complex networks. - **Website (including documentation):** https://networkx.org - **Mailing list:** https://groups.google.com/forum/#!forum/networkx-discuss - **Source:** https://github.com/networkx/networkx - **Bug reports:** https://github.com/networkx/networkx/issues - **Report a security vulnerability:** https://tidelift.com/security - **Tutorial:** https://networkx.org/documentation/latest/tutorial.html - **GitHub Discussions:** https://github.com/networkx/networkx/discussions - **Discord (Scientific Python) invite link:** https://discord.com/invite/vur45CbwMz - **NetworkX meetings calendar (open to all):** https://scientific-python.org/calendars/networkx.ics Simple example -------------- Find the shortest path between two nodes in an undirected graph: .. code:: pycon >>> import networkx as nx >>> G = nx.Graph() >>> G.add_edge("A", "B", weight=4) >>> G.add_edge("B", "D", weight=2) >>> G.add_edge("A", "C", weight=3) >>> G.add_edge("C", "D", weight=4) >>> nx.shortest_path(G, "A", "D", weight="weight") ['A', 'B', 'D'] Install ------- Install the latest released version of NetworkX: .. code:: shell $ pip install networkx Install with all optional dependencies: .. code:: shell $ pip install networkx[default] For additional details, please see the `installation guide <https://networkx.org/documentation/stable/install.html>`_. Bugs ---- Please report any bugs that you find `here <https://github.com/networkx/networkx/issues>`_. Or, even better, fork the repository on `GitHub <https://github.com/networkx/networkx>`_ and create a pull request (PR). We welcome all changes, big or small, and we will help you make the PR if you are new to `git` (just ask on the issue and/or see the `contributor guide <https://networkx.org/documentation/latest/developer/contribute.html>`_). License ------- Released under the `3-clause BSD license <https://github.com/networkx/networkx/blob/main/LICENSE.txt>`_:: Copyright (c) 2004-2026, NetworkX Developers Aric Hagberg <hagberg@lanl.gov> Dan Schult <dschult@colgate.edu> Pieter Swart <swart@lanl.gov>

Popularity

Downloads / month
292.4M
GitHub stars
17.4K
Downloads, last 7 days
67.1M-6%
Stars, last 7 days
–
Direct dependents
8.3K
All dependents
51.3K

Pythie’s Index

How it works
88

Healthy

Maintenance, out of 100

  • Recent release

    last release 68 days ago

  • Commit activity

    26/26 weeks with commits

  • Release cadence

    3 releases in 12 months

  • Issues & PRs handled

    89% closed in the past year

  • Contributor spread

    29 authors in last 100 commits

  • OpenSSF Scorecard

    7.2/10

Commits, last 26 weeks162

Releases

Latest
3.7
Released
Sep 21, 2026
Releases, 12 months
3
First release
Apr 13, 2007

Compatibility

Requires Python
!=3.14.1,>=3.12
Tested on
3.12 · 3.13 · 3.14 · 3.15
License
BSD-3-Clause (Permissive)

Keywords

networksgraph theorymathematicsnetworkgraphdiscrete mathematicsmathpythoncomplex-networksgraph-theorygraph-algorithmsgraph-analysisgraph-generationgraph-visualization

Alternatives

Use instead of networkx: tools that do the same job, closest first.

Compare with rustworkx →Compare with networkit →Compare with scikit-network →Compare all 4 →

  • rustworkx0.18.1ActivePythie’s Index: 78

    A High-Performance Graph Library for Python

    Scientific ComputingUtilities & Language Tools1.8K7.7M/moReleased Jul 30, 2026
  • networkit11.3ActivePythie’s Index: 84

    NetworKit is a toolbox for high-performance network analysis

    Scientific ComputingPerformance & Low-level887199.5K/moReleased Nov 6, 2026
  • scikit-network0.33.5ActivePythie’s Index: 26

    Graph algorithms

    Machine LearningScientific Computing6341.1M/moReleased Nov 19, 2025
  • altgraph0.17.5MaintainedPythie’s Index: 22

    Python graph (network) package

    Utilities & Language ToolsData Visualization2711.8M/moReleased Nov 21, 2025
  • python-igraph1.0.0ActivePythie’s Index: 37

    High performance graph data structures and algorithms (legacy package)

    Scientific ComputingData Visualization1.5K637.4K/moReleased Oct 23, 2025
  • objectgraph1.0.5MaintainedPythie’s Index: 20

    A basic graph library

    Utilities & Language Tools6276.8K/moReleased Nov 21, 2025

Works well with

Use together with networkx: extensions, drivers, servers and companion tools.

  • numpyPythie’s Index: 92Fundamental package for array computing in Python1.2B downloads/mo
  • matplotlibPythie’s Index: 94Python plotting package206.6M downloads/mo
  • pyvisPythie’s Index: 26A Python network graph visualization library2.1M downloads/mo
  • osmnxPythie’s Index: 79Download, model, analyze, and visualize street networks and other geospatial features from OpenStreetMap510.4K downloads/mo
  • pygraphvizPythie’s Index: 93Python interface to Graphviz586.6K downloads/mo
  • python-louvainPythie’s Index: 20Louvain algorithm for community detection375.3K downloads/mo