networkx 2.8.5


Python package for creating and manipulating graphs and networks

Python package for creating and manipulating graphs and networks

Stars: 11132, Watchers: 11132, Forks: 2676, Open Issues: 341

The networkx/networkx repo was created 11 years ago and was last updated 2 hours ago.
The project is extremely popular with a mindblowing 11132 github stars!

How to Install networkx

You can install networkx using pip

pip install networkx

or add it to a project with poetry

poetry add networkx

Package Details

Aric Hagberg
GitHub Repo


  • Scientific/Engineering/Bio-Informatics
  • Scientific/Engineering/Information Analysis
  • Scientific/Engineering/Mathematics
  • Scientific/Engineering/Physics
  • Software Development/Libraries/Python Modules
No  networkx  pypi packages just yet.


A list of common networkx errors.

Code Examples

Here are some networkx code examples and snippets.

GitHub Issues

The networkx package has 341 open issues on GitHub

  • Update scipy
  • Use from_dict_of_lists instead of make_small_graph in generators.small
  • Deprecate make_small_graph and make_small_undirected_graph from small submodule?
  • Tutte polynomial
  • Update draw_<layout> docstrings with usage examples
  • Deprecate scipy sparse matrix conversion functions
  • Update to preserve node order
  • functions should work for weighted graphs too.
  • Examples section of to_numpy_array could be improved
  • Harmonic diameter
  • Refactor to_numpy_array with advanced indexing
  • from_pandas_edgelist does not create weighted graphs despite providing weight column in edge_attrs
  • Improving the performance of triangles
  • Update imports to use lazy loading
  • minimum_cut returns correct value, valid partition, but different from what it claims to return

See more issues on GitHub