GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - networkx/networkx: Network Analysis in Python

BranchesTags
Open more actions menu

Latest commit

 

History

8,454 Commits
8,454 Commits

Folders and files

NameName
Last commit message
Last commit date
.circleci
.circleci
 
 
.github
.github
 
 
benchmarks
benchmarks
 
 
doc
doc
 
 
examples
examples
 
 
networkx
networkx
 
 
requirements
requirements
 
 
tools
tools
 
 
.git-blame-ignore-revs
.git-blame-ignore-revs
 
 
.gitignore
.gitignore
 
 
.mailmap
.mailmap
 
 
.pre-commit-config.yaml
.pre-commit-config.yaml
 
 
AGENTS.md
AGENTS.md
 
 
CODE_OF_CONDUCT.rst
CODE_OF_CONDUCT.rst
 
 
CONTRIBUTING.rst
CONTRIBUTING.rst
 
 
INSTALL.rst
INSTALL.rst
 
 
LICENSE.txt
LICENSE.txt
 
 
README.rst
README.rst
 
 
pyproject.toml
pyproject.toml
 
 

Repository files navigation

NetworkX

https://github.com/networkx/networkx/actions/workflows/test.yml/badge.svg?branch=main 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://insights.linuxfoundation.org/api/badge/health-score?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:

>>> 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-2026, NetworkX Developers
Aric Hagberg <[email protected]>
Dan Schult <[email protected]>
Pieter Swart <[email protected]>

About

Network Analysis in Python

networkx.org

Topics

complex-networksgraph-algorithmsgraph-analysisgraph-generationgraph-theorygraph-visualizationpython

Resources

Readme
License

Contributing

Contributing
Activity
Custom properties

Stars

17.4k stars

Watchers

275 watching

Forks

3.7k forks
Report repository

Releases

Sponsor this project

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.