networkx 3.5


pip install networkx

  Latest version

Released: May 29, 2025


Meta
Author: Aric Hagberg
Maintainer: NetworkX Developers
Requires Python: >=3.11

Classifiers

Development Status
  • 5 - Production/Stable

Intended Audience
  • Developers
  • Science/Research

License
  • OSI Approved :: BSD License

Operating System
  • OS Independent

Programming Language
  • Python :: 3
  • Python :: 3.11
  • Python :: 3.12
  • Python :: 3.13
  • Python :: 3 :: Only

Topic
  • Software Development :: Libraries :: Python Modules
  • Scientific/Engineering :: Bio-Informatics
  • Scientific/Engineering :: Information Analysis
  • Scientific/Engineering :: Mathematics
  • Scientific/Engineering :: Physics
https://github.com/networkx/networkx/workflows/test/badge.svg?branch=main https://codecov.io/gh/networkx/networkx/branch/main/graph/badge.svg? https://img.shields.io/pypi/v/networkx.svg? https://img.shields.io/pypi/l/networkx.svg? https://img.shields.io/pypi/pyversions/networkx.svg? https://img.shields.io/github/labels/networkx/networkx/good%20first%20issue?color=green&label=contribute

NetworkX is a Python package for the creation, manipulation, and study of the structure, dynamics, and functions of complex networks.

Simple example

Find the shortest path between two nodes in an undirected graph:

>>> 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:

$ pip install networkx

Install with all optional dependencies:

$ pip install networkx[default]

For additional details, please see the installation guide.

Bugs

Please report any bugs that you find here. Or, even better, fork the repository on GitHub 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).

License

Released under the 3-clause BSD license:

Copyright (c) 2004-2025, NetworkX Developers
Aric Hagberg <hagberg@lanl.gov>
Dan Schult <dschult@colgate.edu>
Pieter Swart <swart@lanl.gov>
3.5 May 29, 2025
3.5rc0 May 09, 2025
3.4.2 Oct 21, 2024
3.4.1 Oct 11, 2024
3.4 Oct 10, 2024
3.4rc0 Oct 06, 2024
3.3 Apr 06, 2024
3.3rc0 Mar 22, 2024
3.2.1 Oct 28, 2023
3.2 Oct 19, 2023
3.2rc0 Oct 11, 2023
3.1 Apr 04, 2023
3.1rc0 Mar 30, 2023
3.0 Jan 08, 2023
3.0rc1 Nov 11, 2022
3.0b1 Oct 12, 2022
2.8.8 Nov 01, 2022
2.8.7 Oct 01, 2022
2.8.6 Aug 22, 2022
2.8.5 Jul 18, 2022
2.8.4 Jun 14, 2022
2.8.3 Jun 04, 2022
2.8.2 May 21, 2022
2.8.1 May 18, 2022
2.8.1rc1 May 13, 2022
2.8 Apr 09, 2022
2.8rc1 Apr 05, 2022
2.7.1 Mar 05, 2022
2.7 Feb 28, 2022
2.7rc1 Feb 19, 2022
2.6.3 Sep 09, 2021
2.6.2 Jul 27, 2021
2.6.1 Jul 08, 2021
2.6 Jul 08, 2021
2.6rc2 Jun 23, 2021
2.6rc1 May 31, 2021
2.5.1 Apr 03, 2021
2.5 Aug 22, 2020
2.5rc1 Aug 16, 2020
2.4 Oct 17, 2019
2.4rc2 Oct 16, 2019
2.4rc1 Oct 13, 2019
2.3 Apr 11, 2019
2.3rc4 Apr 11, 2019
2.3rc3 Apr 04, 2019
2.2 Sep 19, 2018
2.2rc1 Sep 11, 2018
2.1 Jan 22, 2018
2.0 Sep 20, 2017
1.11 Jan 30, 2016
1.11rc2 Jan 16, 2016
1.11rc1 Dec 26, 2015
1.10 Aug 02, 2015
1.10rc2 Jun 27, 2015
1.9.1 Sep 20, 2014
1.9 Jun 21, 2014
1.9rc1 Jun 06, 2014
1.8.1 Aug 04, 2013
1.8 Jul 28, 2013
1.8rc1 Jul 22, 2013
1.7 Jul 05, 2012
1.7rc1 Jun 13, 2012
1.6 Nov 22, 2011
1.6rc1 Nov 15, 2011
1.5 Jun 04, 2011
1.5rc1 May 21, 2011
1.4 Jan 23, 2011
1.4rc1 Jan 17, 2011
1.3 Aug 29, 2010
1.3rc1 Aug 21, 2010
1.2 Aug 01, 2010
1.2rc1 Jul 24, 2010
1.1 Apr 22, 2010
1.0.1 Jan 11, 2010
1.0 Jan 11, 2010
1.0rc1 Aug 16, 2009
0.99 Nov 18, 2008
0.37 Aug 17, 2008
0.36 Jan 13, 2008
0.35.1 Jul 27, 2007
0.35 Jul 23, 2007
0.34 Apr 13, 2007
0.99.win32 Nov 18, 2008
0.37.win32 Aug 17, 2008
0.36.win32 Jan 13, 2008
0.35.win32 Jul 23, 2007
0.35.1.win32 Jul 27, 2007
0.34.win32 Apr 13, 2007

Wheel compatibility matrix

Platform Python 3
any

Files in release

Extras:
Dependencies: