Next Release

Release date: TBD

Supports Python 3.8, 3.9, and …

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

For more information, please visit our website and our gallery of examples. Please send comments and questions to the networkx-discuss mailing list.


This release is the result of X of work with over X pull requests by X contributors. Highlights include:


Hash values observed in outputs of weisfeiler_lehman_graph_hash have changed in version 2.7 due to bug fixes. See gh-4946 for details. This means that comparing hashes of the same graph computed with different versions of NetworkX (i.e. before and after version 2.7) could wrongly fail an isomorphism test (isomorphic graphs always have matching Weisfeiler-Lehman hashes). Users are advised to recalculate any stored graph hashes they may have on upgrading.

  • Dropped support for Python 3.7.


API Changes

  • The values in the dictionary returned by rescale_layout_dict are now numpy.ndarray objects instead of tuples. This makes the return type of rescale_layout_dict consistent with that of all of the other layout functions.

  • A FutureWarning has been added to google_matrix to indicated that the return type will change from a numpy.matrix object to a numpy.ndarray in NetworkX 3.0.


  • [#5055] Deprecate the random_state alias in favor of np_random_state

  • [#5114] Deprecate the name kwarg from union as it isn’t used.

  • [#5143] Deprecate euclidean in favor of math.dist.

  • [#5166] Deprecate the hmn and lgc modules in node_classification.

Merged PRs

<output of>


<output of>