networkx

Network Analysis in Python

https://github.com/networkx/networkx

Science Score: 36.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
    43 of 796 committers (5.4%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (16.4%) to scientific vocabulary

Keywords

complex-networks graph-algorithms graph-analysis graph-generation graph-theory graph-visualization python

Keywords from Contributors

closember alignment flexible qt notebook tk wx gtk ipython spec-0
Last synced: 6 months ago · JSON representation

Repository

Network Analysis in Python

Basic Info
  • Host: GitHub
  • Owner: networkx
  • License: other
  • Language: Python
  • Default Branch: main
  • Homepage: https://networkx.org
  • Size: 91.1 MB
Statistics
  • Stars: 16,143
  • Watchers: 283
  • Forks: 3,393
  • Open Issues: 396
  • Releases: 62
Topics
complex-networks graph-algorithms graph-analysis graph-generation graph-theory graph-visualization python
Created over 15 years ago · Last pushed 6 months ago
Metadata Files
Readme Contributing License Code of conduct

README.rst

NetworkX
========


.. image::
    https://github.com/networkx/networkx/workflows/test/badge.svg?branch=main
    :target: https://github.com/networkx/networkx/actions?query=workflow%3Atest

.. image::
    https://codecov.io/gh/networkx/networkx/branch/main/graph/badge.svg?
    :target: https://app.codecov.io/gh/networkx/networkx/branch/main

.. 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://img.shields.io/github/labels/networkx/networkx/good%20first%20issue?color=green&label=contribute
    :target: https://github.com/networkx/networkx/contribute


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 `_.

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 
    Dan Schult 
    Pieter Swart 

Owner

  • Name: NetworkX
  • Login: networkx
  • Kind: organization

Software for Complex Networks

Committers

Last synced: 6 months ago

All Time
  • Total Commits: 7,126
  • Total Committers: 796
  • Avg Commits per committer: 8.952
  • Development Distribution Score (DDS): 0.719
Past Year
  • Commits: 292
  • Committers: 72
  • Avg Commits per committer: 4.056
  • Development Distribution Score (DDS): 0.76
Top Committers
Name Email Commits
Aric Hagberg a****g@g****m 1,999
Jarrod Millman j****n@g****m 686
Dan Schult d****t@c****u 629
Ross Barnowski r****r@c****u 415
ysitu y****u@u****m 246
Mridul Seth s****l@g****m 223
chebee7i c****i@g****m 220
Jordi Torrents j****1@g****m 170
Jeffrey Finkelstein j****n@g****m 149
swart n****e@n****e 120
Erik Welch e****h@g****m 95
Loïc Séguin-C. l****n@g****m 76
Kemal Maulana k****2@g****m 67
Chris Ellison c****n@c****u 49
SanketDG s****a@g****m 48
Ben Edwards b****s@c****u 37
Gilles Peiffer g****t@g****m 36
Aditi Juneja 9****a@u****m 32
thegreathippo t****o@g****m 29
JGab j****g@g****m 29
Brandon Liu b****u@g****m 26
Paula Pérez Bianchi 4****b@u****m 26
Alejandro Weinstein a****n@g****m 24
Stefan van der Walt s****v@b****u 23
Navya Agarwal 8****l@u****m 21
Michael-E-Rose M****e@g****m 21
Matt Schwennesen m****e@g****m 19
Niels van Adrichem n****m@t****l 18
Alimi Qudirah q****i@g****m 18
Thodoris Sotiropoulos t****r@w****m 17
and 766 more...

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 434
  • Total pull requests: 1,746
  • Average time to close issues: 5 months
  • Average time to close pull requests: 3 months
  • Total issue authors: 257
  • Total pull request authors: 350
  • Average comments per issue: 3.07
  • Average comments per pull request: 2.3
  • Merged pull requests: 1,059
  • Bot issues: 0
  • Bot pull requests: 38
Past Year
  • Issues: 112
  • Pull requests: 695
  • Average time to close issues: 14 days
  • Average time to close pull requests: 12 days
  • Issue authors: 76
  • Pull request authors: 122
  • Average comments per issue: 1.59
  • Average comments per pull request: 1.7
  • Merged pull requests: 375
  • Bot issues: 0
  • Bot pull requests: 16
Top Authors
Issue Authors
  • dschult (40)
  • rossbar (37)
  • Schefflera-Arboricola (13)
  • MridulS (12)
  • joyemang33 (11)
  • jarrodmillman (9)
  • eriknw (8)
  • Peiffap (7)
  • Qudirah (6)
  • amcandio (5)
  • richardrl (4)
  • woQal (4)
  • paulbrodersen (4)
  • NeilGirdhar (3)
  • mdealencar (3)
Pull Request Authors
  • rossbar (274)
  • eriknw (182)
  • Peiffap (93)
  • jarrodmillman (79)
  • MridulS (78)
  • dschult (74)
  • Schefflera-Arboricola (60)
  • dependabot[bot] (38)
  • vanshika230 (31)
  • amcandio (28)
  • mjschwenne (23)
  • Qudirah (17)
  • akshitasure12 (16)
  • Carreau (14)
  • mohamedrezk122 (14)
Top Labels
Issue Labels
type: Documentation (51) Question (41) type: Maintenance (37) type: Bug fix (37) type: Enhancements (29) Discussion (24) Good First Issue (15) Dispatching (10) close ? (9) Visualization (8) floating-point (7) type: API (7) Maintenance (6) Needs PR (5) Documentation (5) Defect (3) LCA (2) Sprint (2) Pydot (2) Enhancement (1) run:benchmark (1) New feature (1)
Pull Request Labels
type: Maintenance (525) type: Enhancements (318) type: Documentation (279) type: Bug fix (138) Dispatching (76) type: API (73) Visualization (32) close ? (26) run:benchmark (20) Needs review (15) Discussion (13) Maintenance (12) New feature (7) Documentation (4) Question (3) GSoC (2) outreachy-review (2) Defect (2) floating-point (1) type: Highlights (1) NXEP (1) LCA (1) Pydot (1) Needs PR (1)

Packages

  • Total packages: 4
  • Total downloads:
    • pypi 113,069,755 last-month
  • Total docker downloads: 1,815,067,807
  • Total dependent packages: 3,471
    (may contain duplicates)
  • Total dependent repositories: 58,081
    (may contain duplicates)
  • Total versions: 134
  • Total maintainers: 6
pypi.org: networkx

Python package for creating and manipulating graphs and networks

  • Versions: 93
  • Dependent Packages: 3,160
  • Dependent Repositories: 55,771
  • Downloads: 113,069,755 Last month
  • Docker Downloads: 1,815,067,807
Rankings
Dependent packages count: 0.0%
Dependent repos count: 0.0%
Downloads: 0.0%
Docker downloads count: 0.0%
Average: 0.1%
Stargazers count: 0.3%
Forks count: 0.3%
Last synced: 6 months ago
conda-forge.org: networkx

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

  • Versions: 22
  • Dependent Packages: 288
  • Dependent Repositories: 1,155
Rankings
Dependent packages count: 0.2%
Dependent repos count: 0.6%
Average: 1.3%
Forks count: 2.0%
Stargazers count: 2.4%
Last synced: 6 months ago
anaconda.org: networkx

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

  • Homepage: https://networkx.org
  • License: BSD-3-Clause
  • Latest release: 3.4.2
    published about 1 year ago
  • Versions: 18
  • Dependent Packages: 23
  • Dependent Repositories: 1,155
Rankings
Dependent packages count: 1.9%
Dependent repos count: 4.0%
Average: 4.6%
Forks count: 5.9%
Stargazers count: 6.8%
Last synced: 6 months ago
pypi.org: graphalgo

Python package for creating and manipulating graphs and networks

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent packages count: 9.0%
Average: 29.8%
Dependent repos count: 50.7%
Maintainers (1)
Last synced: 8 months ago

Dependencies

requirements/default.txt pypi
  • matplotlib >=3.4
  • numpy >=1.19
  • pandas >=1.3
  • scipy >=1.8
requirements/developer.txt pypi
  • mypy >=0.961
  • pre-commit >=2.19
requirements/doc.txt pypi
  • nb2plots >=0.6
  • numpydoc >=1.4
  • pillow >=9.1
  • pydata-sphinx-theme >=0.9
  • sphinx >=5
  • sphinx-gallery >=0.10
  • texext >=0.6.6
requirements/example.txt pypi
  • cairocffi >=1.3
  • contextily >=1.2
  • igraph >=0.9.8
  • momepy >=0.5
  • osmnx >=1.1
  • seaborn >=0.11
requirements/extra.txt pypi
  • lxml >=4.6
  • pydot >=1.4.2
  • pygraphviz >=1.9
  • sympy >=1.10
requirements/release.txt pypi
  • build >=0.8
  • twine >=4.0
  • wheel >=0.37
requirements/test.txt pypi
  • codecov >=2.1
  • pytest >=7.1
  • pytest-cov >=3.0
.github/workflows/circleci.yml actions
  • larsoner/circleci-artifacts-redirector-action master composite
.github/workflows/coverage.yml actions
  • actions/checkout v3 composite
  • actions/setup-python v4 composite
.github/workflows/deploy-docs.yml actions
  • JamesIves/github-pages-deploy-action releases/v3 composite
  • actions/checkout v3 composite
  • actions/setup-python v4 composite
  • webfactory/ssh-agent v0.7.0 composite
.github/workflows/lint.yml actions
  • actions/checkout v3 composite
  • actions/setup-python v4 composite
.github/workflows/mypy.yml actions
  • actions/checkout v3 composite
  • actions/setup-python v4 composite
.github/workflows/pytest-randomly.yml actions
  • actions/checkout v3 composite
  • actions/setup-python v4 composite
.github/workflows/test.yml actions
  • actions/checkout v3 composite
  • actions/setup-python v4 composite