Repository navigation
Releases
NetworkX 3.7
networkx 3.7
We're happy to announce the release of networkx 3.7!
Highlights
- The isomorphism checking suite of tools has been upgraded. The VF2++ functions now provide subgraph isomorphism and subgraph monomorphism checking (#8506).
- Leiden based community detection algorithms are now supported via
leiden_communitiesandleiden_partitions. This provides an alternative, often improved, community detection algorithm compared to the Louvain functions (#8509). - The pygraphviz library is now provided via
pipwith wheels that include the GraphViz binaries. This should make the NetworkX interface to pygraphviz easier to use for graph layout and rendering (#8694).
API Changes
- Expire random lobster dep (#8499).
- API: Expire deprecations of could-be isomorphism aliases (#8498).
- Proposal to deprecate
bfs_predecessors(#8494). - Change maximal_independent_set to return set instead of list (#8564).
- Add centroid as alias to barycenter (#8622).
- API: Deprecate p2g module (#8855).
Enhancements
- Adding the Tree Optimization in Floyd Warshall (#8361).
- Kruskal MST early break for efficiency (#8296).
- create new generator that returns a random k-lift of a d-regular graph (#8045).
- Floyd Warshall: Adding support for weight parameter as a callable (#8386).
- [ENH] Flow algorithms: Add support for callable capacity parameter (#8406).
- fix: add suggestions from #8021 and #8029 to
is_aperiodic(#8148). - Improve chordal code readability by removing helper function (#8479).
- FEAT: Added basic random walk utilities #8378 (#8383).
- Implement Constant-Potts Model (for use with Leiden community detection) (#8507).
- The isomorphism checking suite of tools has been upgraded. The VF2++ functions now provide subgraph isomorphism and subgraph monomorphism checking (#8506).
- Adding optional sp arg to closeness_centrality (#8424).
- perf: replace built-in sum() with np.sum() in pagerank and katz (#8561).
- ENH: Add format parameter to adjacency_matrix (#8545).
- Proposal: Add density to
nx.describedefaults (#8569). - Add utility to extract faces from PlanarEmbedding (#8512).
- Improving views exceptions (#8588).
- Optimize
_build_paths_from_predecessorsstack logic for 30-40% speedup (#8460). - EHN: Add nonedge argument to from_numpy_array and complete the roundtrip (#8552).
- State-of-the-art implementation of Tarjan's algorithm (#8615).
- Add description and keywords support to GEXF reader/writer (#8629).
- DOC: more
barycenterandcentroidequivalence (#8630). - ENH: Add Barber's bipartite modularity quality function (#8618).
- Leiden based community detection algorithms are now supported via
leiden_communitiesandleiden_partitions. This provides an alternative, often improved, community detection algorithm compared to the Louvain functions (#8509). - ENH: Add Shen's overlapping modularity quality function (#8647).
- ENH: leiden test and doc_string improvements (#8656).
- Add butterflies() to bipartite cluster module (#8591).
- Avoid O(E) lookup in nx.display -issue8639 (#8663).
- Add HITS algorithm benchmark to benchmark suite (#8625).
- Add DAG antichain width (#8654).
- escape tuple labels in generate_gml (#8755).
- Speed up the residual flow reset in
edmonds_karpand simplify theminimum_cutpartition (#8756). - Avoid building the flow dict in maximum_flow_value (#8754).
- ENH: add n_samples parameter to rich_club_coefficient for multi-sample averaging (#8721).
- Simplifying _build_paths_from_predecessors - 10% faster (#8844).
- {label=Highlight} The isomorphism checking suite of tools has been upgraded. The ISMAGS symmetry aware isomorphism and subgraph isomorphism checking tools now support directed and multigraph Graphs. And, now in addition to support for (induced) subgraph isomorphisms, they support (non-induced subgraph) monomorphism (#8838).
- ENH: adding magnetic_laplacian_matrix (#8562).
- ENH: Speed up connectivity checks in random_reference and lattice_reference (#8893).
- [BUG][PERF] Fix ISMAGS directed matching and monomorphism overhead (#8900).
- Add: Shrikhande graph (#8884).
Bug Fixes
- Bug: Floyd Warshall: resolved self positive loop bug introduced in #8386 (#8425).
- Bugfix for spring layouts with empty list of fixed nodes (#8446).
- Fixed diameter/radius error for null graphs (#8454).
- Floyd warshall: raises error if negative cycle is found (#8440).
- BUG: fix ISMAGS self-loops error (#8519).
- Fix cost function in min_weighted_dominating_set (#8531).
- Fix sparse heuristic not applied to diagonal blocks in stochastic_block_model (#8557).
- BUG: fix SpanningTreeIterator AttributeError when using next() directly (#8584).
- Fix all_node_cuts: correct Even-Tarjan reduction for Kanevsky's algorithm (#8586).
- fix multigraph isomorphism tests and fix support in ISMAGS and in VF2pp (#8616).
- BUG: Make argmap._lazy_compile thread-safe (#8659).
- reject out-of-range bytes in graph6/sparse6 decoders (#8692).
- Fix: bug with mean degree part of geometric_soft_configuration_model (#8726).
- Fix k_components losing or truncating k-components (#8734).
- Fix ISMAGS ignoring matches when graph has extra node/edge colors (gh-8738) (#8800).
- BUG: reverse the map returned by vf2pp functions (#8813).
- BUG: Fix node connectivity and node cuts for digraphs (#8837).
- BUG: Use power iteration as the default HITS implementation (#8620).
- BUG: group betweenness gives incorrect values for undirected connected graph (#8879).
- BUG: Group betweenness centrality counts paths incorrectly for directed but not strongly connected (#8880).
- BUG: Group betweenness skips adjustments if any sigma is zero (#8881).
- BUG: Handle KeyErrors in directed not strongly-connected group_betweenness_centrality (#8882).
- BUG: correct normalization of group betweenness centrality when endpoints is true (#8883).
- [BUG][PERF] Fix ISMAGS directed matching and monomorphism overhead (#8900).
- BUG: Fix vf2 handling of isomorphism_iter with isolated subgraph nodes (#8895).
- fix: handle empty candidate sets in ISMAGS.largest_common_subgraph (#8890).
- BUG: Hold the graph weakly in cached edge and degree views (#8892).
Doc...
NetworkX 3.7rc0
networkx 3.7rc0
We're happy to announce the release of networkx 3.7rc0!
Highlights
- {label=Highlight} The isomorphism checking suite of tools has been upgraded. The VF2++ functions now provide subgraph isomorphism and subgraph monomorphism checking (#8506).
- {label=Highlight} Leiden based community detection algorithms are now supported via
leiden_communitiesandleiden_partitions. This provides an alternative, often improved, community detection algorithm compared to the Louvain functions (#8509). - {label=Highlight} The pygraphviz library is now provided via
pipwith wheels that include the GraphViz binaries. This should make the NetworkX interface to pygraphviz easier to use for graph layout and rendering (#8694).
API Changes
- Expire random lobster dep (#8499).
- API: Expire deprecations of could-be isomorphism aliases (#8498).
- Proposal to deprecate
bfs_predecessors(#8494). - Change maximal_independent_set to return set instead of list (#8564).
- Add centroid as alias to barycenter (#8622).
- API: Deprecate p2g module (#8855).
Enhancements
- Adding the Tree Optimization in Floyd Warshall (#8361).
- Kruskal MST early break for efficiency (#8296).
- create new generator that returns a random k-lift of a d-regular graph (#8045).
- Floyd Warshall: Adding support for weight parameter as a callable (#8386).
- [ENH] Flow algorithms: Add support for callable capacity parameter (#8406).
- fix: add suggestions from #8021 and #8029 to
is_aperiodic(#8148). - Improve chordal code readability by removing helper function (#8479).
- FEAT: Added basic random walk utilities #8378 (#8383).
- Implement Constant-Potts Model (for use with Leiden community detection) (#8507).
- {label=Highlight} The isomorphism checking suite of tools has been upgraded. The VF2++ functions now provide subgraph isomorphism and subgraph monomorphism checking (#8506).
- Adding optional sp arg to closeness_centrality (#8424).
- perf: replace built-in sum() with np.sum() in pagerank and katz (#8561).
- ENH: Add format parameter to adjacency_matrix (#8545).
- Proposal: Add density to
nx.describedefaults (#8569). - Add utility to extract faces from PlanarEmbedding (#8512).
- Improving views exceptions (#8588).
- Optimize
_build_paths_from_predecessorsstack logic for 30-40% speedup (#8460). - EHN: Add nonedge argument to from_numpy_array and complete the roundtrip (#8552).
- State-of-the-art implementation of Tarjan's algorithm (#8615).
- Add description and keywords support to GEXF reader/writer (#8629).
- DOC: more
barycenterandcentroidequivalence (#8630). - ENH: Add Barber's bipartite modularity quality function (#8618).
- {label=Highlight} Leiden based community detection algorithms are now supported via
leiden_communitiesandleiden_partitions. This provides an alternative, often improved, community detection algorithm compared to the Louvain functions (#8509). - ENH: Add Shen's overlapping modularity quality function (#8647).
- ENH: leiden test and doc_string improvements (#8656).
- Add butterflies() to bipartite cluster module (#8591).
- Avoid O(E) lookup in nx.display -issue8639 (#8663).
- Add HITS algorithm benchmark to benchmark suite (#8625).
- Add DAG antichain width (#8654).
- escape tuple labels in generate_gml (#8755).
- Speed up the residual flow reset in
edmonds_karpand simplify theminimum_cutpartition (#8756). - Avoid building the flow dict in maximum_flow_value (#8754).
- ENH: add n_samples parameter to rich_club_coefficient for multi-sample averaging (#8721).
- Simplifying _build_paths_from_predecessors - 10% faster (#8844).
- {label=Highlight} The isomorphism checking suite of tools has been upgraded. The ISMAGS symmetry aware isomorphism and subgraph isomorphism checking tools now support directed and multigraph Graphs. And, now in addition to support for (induced) subgraph isomorphisms, they support (non-induced subgraph) monomorphism (#8838).
- ENH: adding magnetic_laplacian_matrix (#8562).
- ENH: Speed up connectivity checks in random_reference and lattice_reference (#8893).
- [BUG][PERF] Fix ISMAGS directed matching and monomorphism overhead (#8900).
- Add: Shrikhande graph (#8884).
Bug Fixes
- Bug: Floyd Warshall: resolved self positive loop bug introduced in #8386 (#8425).
- Bugfix for spring layouts with empty list of fixed nodes (#8446).
- Fixed diameter/radius error for null graphs (#8454).
- Floyd warshall: raises error if negative cycle is found (#8440).
- BUG: fix ISMAGS self-loops error (#8519).
- Fix cost function in min_weighted_dominating_set (#8531).
- Fix sparse heuristic not applied to diagonal blocks in stochastic_block_model (#8557).
- BUG: fix SpanningTreeIterator AttributeError when using next() directly (#8584).
- Fix all_node_cuts: correct Even-Tarjan reduction for Kanevsky's algorithm (#8586).
- fix multigraph isomorphism tests and fix support in ISMAGS and in VF2pp (#8616).
- BUG: Make argmap._lazy_compile thread-safe (#8659).
- reject out-of-range bytes in graph6/sparse6 decoders (#8692).
- Fix: bug with mean degree part of geometric_soft_configuration_model (#8726).
- Fix k_components losing or truncating k-components (#8734).
- Fix ISMAGS ignoring matches when graph has extra node/edge colors (gh-8738) (#8800).
- BUG: reverse the map returned by vf2pp functions (#8813).
- BUG: Fix node connectivity and node cuts for digraphs (#8837).
- BUG: Use power iteration as the default HITS implementation (#8620).
- BUG: group betweenness gives incorrect values for undirected connected graph (#8879).
- BUG: Group betweenness centrality counts paths incorrectly for directed but not strongly connected (#8880).
- BUG: Group betweenness skips adjustments if any sigma is zero (#8881).
- BUG: Handle KeyErrors in directed not strongly-connected group_betweenness_centrality (#8882).
- BUG: correct normalization of group betweenness centrality when endpoints is true (#8883).
- [BUG][PERF] Fix ISMAGS directed matching and monomorphism overhead (#8900).
- BUG: Fix vf2 handling of isomorphism_iter with isolated subgraph nodes (#8895).
- fix: handle empty candidate sets in ISMAGS.largest_common_subgraph (#8890).
- BUG: Hold the graph weakly in c...
NetworkX 3.6.1
networkx 3.6.1
We're happy to announce the release of networkx 3.6.1!
API Changes
- Add spectral bipartition community finding and greedy bipartition using node swaps (#8347).
Enhancements
- Nodelists for
from_biadjacency_matrix(#7993). - Add spectral bipartition community finding and greedy bipartition using node swaps (#8347).
- Fix draw_networkx_nodes with list node_shape and add regression test (#8363).
Bug Fixes
- Fix: allow graph subclasses to have additional arguments (#8369).
Documentation
- DOC: Improve benchmarking readme (#8358).
- DOC: More details re: RC releases in the release process devdocs (#8346).
- DOC: clarify difference between G.nodes/G.nodes() and G.edges/G.edges() in tutorial (#8300).
- DOC: Add blurb to contributor guide about drawing tests (#8370).
- DOC: Fix underline lens in docstrings (#8371).
- Rolling back shortest paths links (#8373).
Maintenance
- MAINT: Replace string literal with comment (#8359).
- Bump actions/checkout from 5 to 6 in the actions group (#8360).
- pin python 3.14 to be version 3.14.0 until dataclasses are fixed (#8365).
- Blocklist Python 3.14.1 (#8372).
Other
- TST: add tests for unsupported graph types in MST algorithms (#8353).
- TST: clean up isomorphism tests (#8364).
Contributors
10 authors added to this release (alphabetically):
- @Aka2210
- @jfinkels
- @NaorTIRAM
- Aditi Juneja (@Schefflera-Arboricola)
- Alejandro Candioti (@amcandio)
- Colman Bouton (@LorentzFactor)
- Dan Schult (@dschult)
- Erik Welch (@eriknw)
- Mridul Seth (@MridulS)
- Ross Barnowski (@rossbar)
9 reviewers added to this release (alphabetically):
- @Aka2210
- Aditi Juneja (@Schefflera-Arboricola)
- Alejandro Candioti (@amcandio)
- Colman Bouton (@LorentzFactor)
- Dan Schult (@dschult)
- Erik Welch (@eriknw)
- Gilles Peiffer (@Peiffap)
- Mridul Seth (@MridulS)
- Ross Barnowski (@rossbar)
These lists are automatically generated, and may not be complete or may contain
duplicates.
NetworkX 3.6
networkx 3.6
We're happy to announce the release of networkx 3.6!
New Features
- ENH: add normalize option for
subgraph_centralityand its_expversion (#8340).
API Changes
- Replace
random_lobsterwithrandom_lobster_graph(#8067). - Replace
maybe_regular_expanderwithmaybe_regular_expander_graph(#8050). - Rm networkx.algorithms.threshold.swap_d (#8213).
- Expire deprecation of compute_v_structures (#8281).
- Rm unused dissuade_hubs kwarg from forceatlas2 (#8293).
- Expire deprecation of link kwarg in node_link fns (#8282).
- DEP: Deprecate metric_closure (#8304).
Enhancements
- Improve error message for removed
random_treefunction (#8105). - Update approx current_flow betweenness to use k directly (#8007).
- Proposal: update semantics for nonisomorphic trees with order 0 or 1 (#8083).
- SCC benchmarks and use of
G._adjin Tarjan algorithm (#8064). - Performance improvement and tests for
edges_equal(#8077). - optimise
is_reachable()(#8112). - Optimise harmonic centrality (#8158).
- feat(drawing): add missing connection styles in
draw_networkx_edge_labelsanddisplay(#8108). - Optimizing Dijkstra's paths to target (~50x faster for graphs with multiple-hops shortest path) (#8023).
- Add
all_trianglesgenerator yielding all unique triangles in a graph (#8135). - refactor: simplify
k_factor(#8139). - feat: add directed star graph (#8151).
- Faster
intersection_arraycomputation for checking distance-regularity (#7181). - enh: short-circuit in
is_regularfor directed graphs (#8138). - Avoid re-exploring nodes in Kosaraju's SCC algorithm (#8056).
- trust rank implementation and testing (#8165).
- Add hyper_wiener_index function (#8184).
- Bidirectional dijkstra optimization: from 1.1x to 25x faster (#8206).
- Implement the algorithm to find the centroid(s) of a tree (#8089).
- Set length threshold in FR and use np.clip (#8145).
- Add panther++ (#4400).
- maint: use
nx.circulant_graphto generate Harary graphs (#8189). - ENH: add
directedkwarg toedges_equal(#8192). - Optimizing Dijkstra's path construction for all targets case (#8218).
- ENH: adds ISMAGS support for directed and multigraph with tests and refactor (#8274).
- Dispatch classes such as
nx.Graph(backend=...)(#7760). - ENH: Add is_perfect_graph using SPGT (follow-up to #8111) (#8318).
- Add benchmark suite for shortest path algorithms on weighted graphs (#8059).
- Adding Generalized Petersen Graph (#8147).
- ENH: add normalize option for
subgraph_centralityand its_expversion (#8340). - FEAT: Add a describe method for some basic info about graphs (#8338).
Bug Fixes
- Add Python 3.14 to testing matrix (#8096).
- Fix round-trip to and from pygraphviz.AGraph setting spurious graph attributes (#8121).
- Add input validation to
non_randomness()and clarify its behavior (#8057). - Ensure that backend names are valid Python identifiers (#8160).
- fix: resolve failure to pickle.loads(pickle.dumps(PlanarEmbedding())) (#8186).
- Add GEXF 1.3 to the recognized GEXF versions (#8196).
- BUG: Raise on directed graphs in
nx.find_cliques_recursive(#8211). - fix
optimize_edit_pathshandling of self-loops (#8207). - BUG: add check for isolated nodes in
degree_sequence_tree(#8235). - Mehlorn Steiner Tree (#8052).
- BUG/MAINT: fix edge betweenness centrality scaling when
k<Nand merge all b.c. rescale helper functions (#8256). - Fix node attributes on lattice graphs (#8311).
- BUG: allow graphs with nonstandard node labels in FISTA (#8332).
- Make dominance functions consistent with definitions (#8061).
- Pin last value to 1.0 in
cumulative_distributionto address floating-point errors (#8342).
Documentation
- Fix
min_weight_matching(#8062). - Update deploy-docs yml to use Python 3.12 when deploying the docs (#8102).
- DOC: Add missing params to bfs_layout docstring (#8086).
- Add input validation to
non_randomness()and clarify its behavior (#8057). - doc: improve docstring for hypercube_graph (#8012).
- Improved documentation for boundary_expansion function (#7905).
- DOC: Add docstring example count number of unique triangles (#8144).
- Add function bfs_labeled_edges to docs (#8149).
- Fix issues with urls in HITS reference docs (#8156).
- Correct the docs for
display()keywordnode_pos(#8153). - Adding Notes on Multi-Target Shortest Path Queries (#8169).
- 3d facebook plot example (#6893).
- trust rank implementation and testing (#8165).
- Improve docs for
all_neighbors()(#8166). - Adding shortest-paths documentation (#8187).
- Add Linux Foundation health score badge to README (#8219).
- DOC: Add docstring for
number_of_cliques(#8216). - DOC: add docstring for
degree_sequence_tree(#8236). - DOC: Add examples to contracted_nodes (#7856).
- DOC: fix wrong reference in
leidendocs (#8277). - Fix over-indentation of list in chordless_cycles docstring (#8288).
- Add iplotx to network drawing documentation (#8289).
- Fix sphinx build errors (#8303).
- DOC: Move deprecation procedure from contributing->dev guide (#8308).
- DOC: add gallery example for metric_closure (#8306).
- Cross-link Platonic graphs in See Also section (#8307).
- Add seealso crosslinks between lattice graphs (#8310).
- CI,DOC: Only run one parallel betweenness example (#8305).
- DOC: rework betweenness centrality docstrings (#8264).
- Rm 3D layout and animation from greedy_color example (#8315).
- DOC: Clarify node and edge removal behavior in tutorial (#8321).
- Improving connected module docs (#8267).
- Docs: add nx-neptune backend documentation ([#8258](https://git...
NetworkX 3.6rc0
networkx 3.6rc0
We're happy to announce the release of networkx 3.6rc0!
API Changes
- Replace
random_lobsterwithrandom_lobster_graph(#8067). - Replace
maybe_regular_expanderwithmaybe_regular_expander_graph(#8050). - Rm networkx.algorithms.threshold.swap_d (#8213).
- Expire deprecation of compute_v_structures (#8281).
- Rm unused dissuade_hubs kwarg from forceatlas2 (#8293).
- Expire deprecation of link kwarg in node_link fns (#8282).
- DEP: Deprecate metric_closure (#8304).
Enhancements
- Improve error message for removed
random_treefunction (#8105). - Update approx current_flow betweenness to use k directly (#8007).
- Proposal: update semantics for nonisomorphic trees with order 0 or 1 (#8083).
- SCC benchmarks and use of
G._adjin Tarjan algorithm (#8064). - Performance improvement and tests for
edges_equal(#8077). - optimise
is_reachable()(#8112). - Optimise harmonic centrality (#8158).
- feat(drawing): add missing connection styles in
draw_networkx_edge_labelsanddisplay(#8108). - Optimizing Dijkstra's paths to target (~50x faster for graphs with multiple-hops shortest path) (#8023).
- Add
all_trianglesgenerator yielding all unique triangles in a graph (#8135). - refactor: simplify
k_factor(#8139). - feat: add directed star graph (#8151).
- Faster
intersection_arraycomputation for checking distance-regularity (#7181). - enh: short-circuit in
is_regularfor directed graphs (#8138). - Avoid re-exploring nodes in Kosaraju's SCC algorithm (#8056).
- trust rank implementation and testing (#8165).
- Add hyper_wiener_index function (#8184).
- Bidirectional dijkstra optimization: from 1.1x to 25x faster (#8206).
- Implement the algorithm to find the centroid(s) of a tree (#8089).
- Set length threshold in FR and use np.clip (#8145).
- Add panther++ (#4400).
- maint: use
nx.circulant_graphto generate Harary graphs (#8189). - ENH: add
directedkwarg toedges_equal(#8192). - Optimizing Dijkstra's path construction for all targets case (#8218).
- ENH: adds ISMAGS support for directed and multigraph with tests and refactor (#8274).
- Dispatch classes such as
nx.Graph(backend=...)(#7760). - ENH: Add is_perfect_graph using SPGT (follow-up to #8111) (#8318).
- Add benchmark suite for shortest path algorithms on weighted graphs (#8059).
Bug Fixes
- Add Python 3.14 to testing matrix (#8096).
- Fix round-trip to and from pygraphviz.AGraph setting spurious graph attributes (#8121).
- Add input validation to
non_randomness()and clarify its behavior (#8057). - Ensure that backend names are valid Python identifiers (#8160).
- fix: resolve failure to pickle.loads(pickle.dumps(PlanarEmbedding())) (#8186).
- Add GEXF 1.3 to the recognized GEXF versions (#8196).
- BUG: Raise on directed graphs in
nx.find_cliques_recursive(#8211). - fix
optimize_edit_pathshandling of self-loops (#8207). - BUG: add check for isolated nodes in
degree_sequence_tree(#8235). - Mehlorn Steiner Tree (#8052).
- BUG/MAINT: fix edge betweenness centrality scaling when
k<Nand merge all b.c. rescale helper functions (#8256). - Fix node attributes on lattice graphs (#8311).
- BUG: allow graphs with nonstandard node labels in FISTA (#8332).
- Make dominance functions consistent with definitions (#8061).
Documentation
- Fix
min_weight_matching(#8062). - Update deploy-docs yml to use Python 3.12 when deploying the docs (#8102).
- DOC: Add missing params to bfs_layout docstring (#8086).
- Add input validation to
non_randomness()and clarify its behavior (#8057). - doc: improve docstring for hypercube_graph (#8012).
- Improved documentation for boundary_expansion function (#7905).
- DOC: Add docstring example count number of unique triangles (#8144).
- Add function bfs_labeled_edges to docs (#8149).
- Fix issues with urls in HITS reference docs (#8156).
- Correct the docs for
display()keywordnode_pos(#8153). - Adding Notes on Multi-Target Shortest Path Queries (#8169).
- 3d facebook plot example (#6893).
- trust rank implementation and testing (#8165).
- Improve docs for
all_neighbors()(#8166). - Adding shortest-paths documentation (#8187).
- Add Linux Foundation health score badge to README (#8219).
- DOC: Add docstring for
number_of_cliques(#8216). - DOC: add docstring for
degree_sequence_tree(#8236). - DOC: Add examples to contracted_nodes (#7856).
- DOC: fix wrong reference in
leidendocs (#8277). - Fix over-indentation of list in chordless_cycles docstring (#8288).
- Add iplotx to network drawing documentation (#8289).
- Fix sphinx build errors (#8303).
- DOC: Move deprecation procedure from contributing->dev guide (#8308).
- DOC: add gallery example for metric_closure (#8306).
- Cross-link Platonic graphs in See Also section (#8307).
- Add seealso crosslinks between lattice graphs (#8310).
- CI,DOC: Only run one parallel betweenness example (#8305).
- DOC: rework betweenness centrality docstrings (#8264).
- Rm 3D layout and animation from greedy_color example (#8315).
- DOC: Clarify node and edge removal behavior in tutorial (#8321).
- Improving connected module docs (#8267).
- Docs: add nx-neptune backend documentation (#8258).
- Improving shortest paths docs when there is no path between source and target (#8327).
- Adding floating point considerations to tutorial (#8324).
- Adding Dijkstra's algo specific doc (#8286).
- Minor documentation build improvements (#8329).
- Clarify the meaning of the cutoff parameter in some path-finding functions (#7487).
- Switch to the NumFOCUS Co...
NetworkX 3.5
networkx 3.5
We're happy to announce the release of networkx 3.5!
API Changes
- Save Layouts on Graphs (#7571).
- Expire d_separated and minimum_d_separator functions (#7830).
- Expire all_triplets deprecation (#7828).
- Expire random_triad deprecation (#7829).
- DEP: Raise an exception for k_core functions with multigraphs (#7831).
- Deprecate graph_could_be_isomorphic (#7826).
- Expire total_spanning_tree_weight deprecation (#7843).
- Expire deprecation of create kwarg in nonisomorphic_trees (#7847).
- New draw API (#7589).
Enhancements
- perf: optimise
random_k_out_graph(#7702). - Clausets local community detection algorithm (#7691).
find_asteroidal_tripleimprovement (#7736).- Add
weightto harmonic_diameter (#7636). - Densest Subgraph Problem: Greedy Peeling and Greedy++ Implementations (#7731).
- single_source_all_shortest_paths: don't loop over all nodes (#7762).
- Error message improvement for nbunch_iter ( NetworkXError raised with specific message on TypeError with "iter" in msg ) (#7790).
- Faster computation of energy in Laplacian centrality (#7793).
- Make
forceatlas2_layoutdispatchable (#7794). - Update dispatchable for
forceatlas2_layout(#7798). - Enable backend-only functions where NetworkX is just an API (#7690).
- Steinertree kou enhancement in response to issue 5889 type:Enhancements (#7767).
- Add Leiden as a backend-only algorithm (#7743).
- Bipartite layout nodes optional (#7756).
- Densest Subgraph Problem: FISTA based algorithm + Large scale tests (#7770).
- Dispatch
get_node_attributesand a few more fromnx.classes.function(#7824). - Faster
could_be_isomorphicandnumber_of_cliques(#7855). - Add square_clustering to algorithm benchmarks (#7857).
- Faster Implementation of Structural Holes (#7249).
- Improve runtime of number_of_nonisomorphic_trees() (#7917).
- Fix write_gexf timeformat for dynamic Graphs (#7914).
- Consolidate could_be_isomorphic (#7852).
- Improving rooted_tree_isomorphism for deep trees (#7945).
- Fixing nx.diameter inconsistent results with usebounds=True (#7954).
- Faster
square_clustering(#7810). - Avoid repeated cache conversion failures for backends (#7768).
- Improve _sparse_fruchterman_reingold with L-BFGS (#7889).
- Improve Performance of Tree Isomorphism and Center Calculation (#7946).
- Add option for
biadjacency_matrixto be returned as a dense NumPy array (#7973). - Add Functions for Finding Connected Dominating Sets (#7774).
- Add feature to make storing node contraction data optional (#7902).
- Added "initial_node" param to generate_random_paths() to allow a starting node to be specified for generated walks (#8002).
- Fix behavior for iterable
sourcesargument inbfs_layers(#8013). - Speed up
connected_componentsandweakly_connected_components(#7971). - BiRank Algorithm Implementation (#7978).
- Enforce correct graph types for graph matchers (#8043).
Bug Fixes
- Update
_raise_on_directedto work withcreate_usingpos arg (#7695). - trophic_levels now checks for paths from each node to a basal node (#7453).
- Fix TSP weight parameter issues (#7721).
- Fix for filtered MultiGraph views from
edge_subgraph(#7724) (#7729). - BUG: fixed the
ifcondition inasadpour_atsp(#7753). - Implement Bar ConnectionStyle for labels (#7739).
- Fixed a divide by zero error in forceatlas2 (#7791).
- Fix for issue #7645: Do not preserve 'cw' and 'ccw' attributes in PlanarEmbedding.to_undirected() (#7750).
- fix typo in ramanujan branch (#7804).
- Fix
with nx.config(backend_priority=backends):(#7814). - Fix handling of faux_infinite values in network_simplex (#7796).
- Fixed the return type from an empty dict to an empty set (#7910).
- Add
edge_attrs="weight"toforceatlas2_layoutdispatch decorator (#7918). - Fix graph_hash iteration counts and DiGraph handling (#7834).
- Refactored the working of chordless_cycles to handle self loops (#7901).
- Fix bc scale with k endpoints (#7908).
- Fix BC scaling for source nodes with k and endpoints=False (#7949).
- BUG: graph6 format invariant to trailing newline (#7941).
- Fix
random_degree_sequence_graphwhen input is an iterator (#7979). - Improve special cases in dispatch testing (paying off tech debt) (#7982).
- Fix bug when assigning list to
nx.config.backend_priority(#8034). - A minimal fix for
is_aperiodic(#8029). - fix bug of _sparse_fruchterman_reingold and remove try/except idiom (#8041).
- Fix edge case in ISMAGS symmetry detection (#8055).
Documentation
- set nx-arangodb link to github (#7694).
- Re-submission of gh-7087 with better file provenance (#7681).
- Fix code formatting of some examples (#7730).
- Add examples for custom graph in the doc of
soft_random_geometric_graphandthresholded_random_geometric_graph(#7749). - Gallery example: bipartite a/b-core motif (#7757).
- Add blurb about pytest-mpl dependency to contributing guide (#7741).
- Minor updates to
single_source_shortest_path_lengthdocstring (#7637). - Added a note to the contributor guideline to avoid numpy scalars as a… (#7773).
- Correcting the example given under subgraph_is_monomorphic.py (#7779).
- [easy] Add to Contributor List (#7801).
- doc: mention the second major update (#7782).
- DOC: Add details about more grants (#7823).
- Refactor: Moving backend docs from
backends.pytobackends.rst(#7776). - Update readwrite docstrings for the
pathparameter (#7835). - Fix docstring example of
nx.generate_random_paths(index_map=...)(#7832). - Adds NVIDIA Corporation to list of supporters (#7846).
- Fix use of triple backticks in docstrings ([#7845](https://github.com/networkx/net...
NetworkX 3.5rc0
networkx 3.5rc0
We're happy to announce the release of networkx 3.5rc0!
API Changes
- Save Layouts on Graphs (#7571).
- Expire d_separated and minimum_d_separator functions (#7830).
- Expire all_triplets deprecation (#7828).
- Expire random_triad deprecation (#7829).
- DEP: Raise an exception for k_core functions with multigraphs (#7831).
- Deprecate graph_could_be_isomorphic (#7826).
- Expire total_spanning_tree_weight deprecation (#7843).
- Expire deprecation of create kwarg in nonisomorphic_trees (#7847).
- New draw API (#7589).
Enhancements
- perf: optimise
random_k_out_graph(#7702). - Clausets local community detection algorithm (#7691).
find_asteroidal_tripleimprovement (#7736).- Add
weightto harmonic_diameter (#7636). - Densest Subgraph Problem: Greedy Peeling and Greedy++ Implementations (#7731).
- single_source_all_shortest_paths: don't loop over all nodes (#7762).
- Error message improvement for nbunch_iter ( NetworkXError raised with specific message on TypeError with "iter" in msg ) (#7790).
- Faster computation of energy in Laplacian centrality (#7793).
- Make
forceatlas2_layoutdispatchable (#7794). - Update dispatchable for
forceatlas2_layout(#7798). - Enable backend-only functions where NetworkX is just an API (#7690).
- Steinertree kou enhancement in response to issue 5889 type:Enhancements (#7767).
- Add Leiden as a backend-only algorithm (#7743).
- Bipartite layout nodes optional (#7756).
- Densest Subgraph Problem: FISTA based algorithm + Large scale tests (#7770).
- Dispatch
get_node_attributesand a few more fromnx.classes.function(#7824). - Faster
could_be_isomorphicandnumber_of_cliques(#7855). - Add square_clustering to algorithm benchmarks (#7857).
- Faster Implementation of Structural Holes (#7249).
- Improve runtime of number_of_nonisomorphic_trees() (#7917).
- Fix write_gexf timeformat for dynamic Graphs (#7914).
- Consolidate could_be_isomorphic (#7852).
- Improving rooted_tree_isomorphism for deep trees (#7945).
- Fixing nx.diameter inconsistent results with usebounds=True (#7954).
- Faster
square_clustering(#7810). - Avoid repeated cache conversion failures for backends (#7768).
- Improve _sparse_fruchterman_reingold with L-BFGS (#7889).
- Improve Performance of Tree Isomorphism and Center Calculation (#7946).
- Add option for
biadjacency_matrixto be returned as a dense NumPy array (#7973). - Add Functions for Finding Connected Dominating Sets (#7774).
- Add feature to make storing node contraction data optional (#7902).
- Added "initial_node" param to generate_random_paths() to allow a starting node to be specified for generated walks (#8002).
- Fix behavior for iterable
sourcesargument inbfs_layers(#8013). - Speed up
connected_componentsandweakly_connected_components(#7971).
Bug Fixes
- Update
_raise_on_directedto work withcreate_usingpos arg (#7695). - trophic_levels now checks for paths from each node to a basal node (#7453).
- Fix TSP weight parameter issues (#7721).
- Fix for filtered MultiGraph views from
edge_subgraph(#7724) (#7729). - BUG: fixed the
ifcondition inasadpour_atsp(#7753). - Implement Bar ConnectionStyle for labels (#7739).
- Fixed a divide by zero error in forceatlas2 (#7791).
- Fix for issue #7645: Do not preserve 'cw' and 'ccw' attributes in PlanarEmbedding.to_undirected() (#7750).
- fix typo in ramanujan branch (#7804).
- Fix
with nx.config(backend_priority=backends):(#7814). - Fix handling of faux_infinite values in network_simplex (#7796).
- Fixed the return type from an empty dict to an empty set (#7910).
- Add
edge_attrs="weight"toforceatlas2_layoutdispatch decorator (#7918). - Fix graph_hash iteration counts and DiGraph handling (#7834).
- Refactored the working of chordless_cycles to handle self loops (#7901).
- Fix bc scale with k endpoints (#7908).
- Fix BC scaling for source nodes with k and endpoints=False (#7949).
- BUG: graph6 format invariant to trailing newline (#7941).
- Fix
random_degree_sequence_graphwhen input is an iterator (#7979). - Improve special cases in dispatch testing (paying off tech debt) (#7982).
Documentation
- set nx-arangodb link to github (#7694).
- Re-submission of gh-7087 with better file provenance (#7681).
- Fix code formatting of some examples (#7730).
- Add examples for custom graph in the doc of
soft_random_geometric_graphandthresholded_random_geometric_graph(#7749). - Gallery example: bipartite a/b-core motif (#7757).
- Add blurb about pytest-mpl dependency to contributing guide (#7741).
- Minor updates to
single_source_shortest_path_lengthdocstring (#7637). - Added a note to the contributor guideline to avoid numpy scalars as a… (#7773).
- Correcting the example given under subgraph_is_monomorphic.py (#7779).
- [easy] Add to Contributor List (#7801).
- doc: mention the second major update (#7782).
- DOC: Add details about more grants (#7823).
- Refactor: Moving backend docs from
backends.pytobackends.rst(#7776). - Update readwrite docstrings for the
pathparameter (#7835). - Fix docstring example of
nx.generate_random_paths(index_map=...)(#7832). - Adds NVIDIA Corporation to list of supporters (#7846).
- Fix use of triple backticks in docstrings (#7845).
- Add paragraph about university classes to mentored projects (#7838).
- Fix pygraphviz_layout example (#7849).
- Add test-extras to optional dependencies (#7854).
- doc: hash size are in bytes (#7866).
- DOC: Clean up mentored projects page: move visualization project to completed section (#7881).
- added 2 projects for GSoC 2025 ([#7880](https://github.com/networkx/netw...
NetworkX 3.4.2
NetworkX 3.4.2
We're happy to announce the release of networkx 3.4.2!
Bug Fixes
Documentation
- Add disclaimer about LLM driven PRs (#7683).
Maintenance
- Fix doc warnings from recently added docs (#7682).
Contributors
6 authors added to this release (alphabetically):
- Dan Schult (@dschult)
- Erik Welch (@eriknw)
- Jarrod Millman (@jarrodmillman)
- Kirk Bonney (@kbonney)
- Mridul Seth (@MridulS)
- Ross Barnowski (@rossbar)
4 reviewers added to this release (alphabetically):
- Aditi Juneja (@Schefflera-Arboricola)
- Dan Schult (@dschult)
- Jarrod Millman (@jarrodmillman)
- Matt Schwennesen (@mjschwenne)
These lists are automatically generated, and may not be complete or may contain duplicates.
NetworkX 3.4.1
networkx 3.4.1
We're happy to announce the release of networkx 3.4.1!
Maintenance
- Remove old deprecation decorator (#7669).
- MAINT: delay loading of backend_info to after imports (#7672).
Contributors
2 authors added to this release (alphabetically):
- Dan Schult (@dschult)
- Jarrod Millman (@jarrodmillman)
3 reviewers added to this release (alphabetically):
- Jarrod Millman (@jarrodmillman)
- Mridul Seth (@MridulS)
- Ross Barnowski (@rossbar)
These lists are automatically generated, and may not be complete or may contain duplicates.
NetworkX 3.4
networkx 3.4
We're happy to announce the release of networkx 3.4!
API Changes
- Expires the
forest_strdeprecation (#7414). - [ENH, BUG]: added
collidersandv_structuresand deprecatedcompute_v_structuresindag.py(#7398). - Expires the
random_treedeprecation (#7415). - Expire deprecation for strongly_connected_components_recursive (#7420).
- Expire deprecated
sort_neighborsparam ingeneric_bfs_edges(#7417). - Rm deprecated normalized param from s_metric (#7418).
- Expire deprecated nx.join in favor of join_trees (#7419).
- Remove depercated Edmonds class for 3.4 (#7447).
- Remove deprecated MultiDiGraph_EdgeKey for 3.4 (#7448).
- Add
edgeskeyword/deprecatelinkkeyword arguments inJSONinput-output (#7565). - Revert breaking change to
node_link_*link defaults (#7652).
Enhancements
- Add a
nodelistfeature tofrom_numpy_array(#7412). - Prioritize edgelist representations in
to_networkx_graph(#7424). - Adds initial debug logging calls to _dispatchable (#7300).
- add: nodes attribute is modifiable (#7532).
- Enable config to be used as context manager (#7363).
- Added code to handle multi-graph in mst (#7454).
- Enable caching by default (#7498).
- #7546 More detail error message for pydot (#7558).
- Fix weakly_connected_components() performance on graph view (#7586).
- Forceatlas2 (#7543).
- avoid iteration and use boolean indexing (#7591).
- Hide edges with a weight of None in simple_paths (#7583).
- Improved running time for harmonic centrality (#7595).
- Add remove attribute functions (#7569).
- Log "can/should run" and caching in dispatch machinery (#7568).
- Individualize drawing attributes (#7570).
- added nx-parallel gsoc project (#7620).
- Harmonic diameter (#5251).
- Allow dispatch machinery to fall back to networkx (#7585).
- Add
create_usingparameter for random graphs (#5672). - Add config option to disable warning when using cached value (#7497).
Bug Fixes
- Fix graph name attribute for
complete_bipartite_graph(#7399). - Remove import warnings during to_networkx_graph conversion (#7426).
- Fix nx.from_pandas_edgelist so edge keys are not added as edge attributes and edge keys (#7445).
- Fix
from_pandas_edgelistfor MultiGraph given edge_key (#7466). - Fix dispatch tests when using numpy 2 (#7506).
- [ENH, BUG]: added
collidersandv_structuresand deprecatedcompute_v_structuresindag.py(#7398). - Fix reading edgelist when delimiter is whitespace, e.g. tab (#7465).
- Ensure we always raise for unknown backend in
backend=(#7494). - Prevent
to_agraphfrom modifying graph argument (#7610). - Implementing iterative removal of non_terminal_leaves in Steiner Tree approximation (#7422).
- Only allow connected graphs in
eigenvector_centrality_numpy(#7549). - CI: Fix typo in nightly run pip install (#7625).
Documentation
- Document missing shortest_path functions (#7394).
- Optimal Edit Paths Return Section Improved (#7375).
- Minor updates to simple_cycles docstring (#7421).
- DOC: Clarifying
NetworkXPointlessConceptexception (#7434). - DOC: updated
pairs.py(#7416). - Add docstring example for directed tree (#7449).
- Change docs of
shortest_path_lengthso return is number instead of int (#7477). - Use intersphinx_registry to manage intersphinx mapping (#7481).
- Ma: fix some spelling errors in docs (#7480).
- Update NetworkX reference links in doc index (#7500).
- strong product docs update (#7511).
- Refactoring and enhancing user-facing
Backend and Configsdocs (#7404). - Fixed the citation in
dominance.py[Issue #7522] (#7524). - Clarify generation number in
dorogovtsev_goltsev_mendes_graph()(#7473). - Add
Introspectionsection to backends docs (#7556). - DOC: Added
default_configinget_info's description (#7567). - Prettify
README.rst(#7514). - DOC: Fix typo in the code snippet provided in the docstring of nx_pydot.pydot_layout() (#7572).
- Fix installation instructions for
defaultextras in README (#7574). - Add missing metadata to v3.3 release notes (#7592).
- Correct the members of steering council (#7604).
- Fix dispatch docs formatting (#7619).
- Add to Contributor List (#7621).
- Example fix for issue 7633 (#7634).
- Fix: Correct community color assignment in Girvan-Newman community detection (#7644).
- Updated docstring for generators/karate_club_graph() (#7626).
- Updates documentation to include details about using NetworkX with backends (#7611).
- Add examples section to
to_scipy_sparse_array(#7627). - Add examples to docstrings of subgraph_(iso/monomorphism) methods (#7622).
Maintenance
- Simplify flow func augmentation logic in
connectivitymodule (#7367). - A few more doctest skips for mpl/np dependencies (#7403).
- Remove repetitive words (#7406).
- FilterAdjacency: len is recalculated unnecessarily #7377 (#7378).
- Add check for empty graphs in
flow_hierarchy(#7393). - Use nodelist feature of from_numpy_array (#7425).
- Cleanup remaining usages of deprecated
random_treein package (#7411). - Add check for empty graphs in
non_randomness(#7395). - Update tests for macOS Sonoma v14 (#7437).
- Update doc requirements (#7435).
- Update pygraphviz (#7441).
- Always cache graph attrs for better cache behavior (#7455).
- retain adjacency order in nx-loopback copy of networkx graph (#7432).
- DEV: Add files generated by benchmarking to .gitignore (#7461).
- Remove redundant graph copy in
algorithms.bridges.bridges()(#7471). - CI: Add G...