summaryrefslogtreecommitdiff
path: root/_modules/networkx
diff options
context:
space:
mode:
Diffstat (limited to '_modules/networkx')
-rw-r--r--_modules/networkx/algorithms/approximation/clique.html32
-rw-r--r--_modules/networkx/algorithms/approximation/clustering_coefficient.html32
-rw-r--r--_modules/networkx/algorithms/approximation/connectivity.html34
-rw-r--r--_modules/networkx/algorithms/approximation/distance_measures.html32
-rw-r--r--_modules/networkx/algorithms/approximation/dominating_set.html32
-rw-r--r--_modules/networkx/algorithms/approximation/kcomponents.html34
-rw-r--r--_modules/networkx/algorithms/approximation/matching.html32
-rw-r--r--_modules/networkx/algorithms/approximation/maxcut.html32
-rw-r--r--_modules/networkx/algorithms/approximation/ramsey.html32
-rw-r--r--_modules/networkx/algorithms/approximation/steinertree.html56
-rw-r--r--_modules/networkx/algorithms/approximation/traveling_salesman.html36
-rw-r--r--_modules/networkx/algorithms/approximation/treewidth.html32
-rw-r--r--_modules/networkx/algorithms/approximation/vertex_cover.html32
-rw-r--r--_modules/networkx/algorithms/assortativity/connectivity.html32
-rw-r--r--_modules/networkx/algorithms/assortativity/correlation.html32
-rw-r--r--_modules/networkx/algorithms/assortativity/mixing.html32
-rw-r--r--_modules/networkx/algorithms/assortativity/neighbor_degree.html32
-rw-r--r--_modules/networkx/algorithms/assortativity/pairs.html32
-rw-r--r--_modules/networkx/algorithms/asteroidal.html32
-rw-r--r--_modules/networkx/algorithms/bipartite/basic.html32
-rw-r--r--_modules/networkx/algorithms/bipartite/centrality.html32
-rw-r--r--_modules/networkx/algorithms/bipartite/cluster.html32
-rw-r--r--_modules/networkx/algorithms/bipartite/covering.html32
-rw-r--r--_modules/networkx/algorithms/bipartite/edgelist.html32
-rw-r--r--_modules/networkx/algorithms/bipartite/generators.html32
-rw-r--r--_modules/networkx/algorithms/bipartite/matching.html50
-rw-r--r--_modules/networkx/algorithms/bipartite/matrix.html32
-rw-r--r--_modules/networkx/algorithms/bipartite/projection.html32
-rw-r--r--_modules/networkx/algorithms/bipartite/redundancy.html32
-rw-r--r--_modules/networkx/algorithms/bipartite/spectral.html32
-rw-r--r--_modules/networkx/algorithms/boundary.html32
-rw-r--r--_modules/networkx/algorithms/bridges.html32
-rw-r--r--_modules/networkx/algorithms/centrality/betweenness.html34
-rw-r--r--_modules/networkx/algorithms/centrality/betweenness_subset.html32
-rw-r--r--_modules/networkx/algorithms/centrality/closeness.html32
-rw-r--r--_modules/networkx/algorithms/centrality/current_flow_betweenness.html32
-rw-r--r--_modules/networkx/algorithms/centrality/current_flow_betweenness_subset.html32
-rw-r--r--_modules/networkx/algorithms/centrality/current_flow_closeness.html32
-rw-r--r--_modules/networkx/algorithms/centrality/degree_alg.html32
-rw-r--r--_modules/networkx/algorithms/centrality/dispersion.html34
-rw-r--r--_modules/networkx/algorithms/centrality/eigenvector.html32
-rw-r--r--_modules/networkx/algorithms/centrality/group.html36
-rw-r--r--_modules/networkx/algorithms/centrality/harmonic.html32
-rw-r--r--_modules/networkx/algorithms/centrality/katz.html32
-rw-r--r--_modules/networkx/algorithms/centrality/laplacian.html690
-rw-r--r--_modules/networkx/algorithms/centrality/load.html32
-rw-r--r--_modules/networkx/algorithms/centrality/percolation.html34
-rw-r--r--_modules/networkx/algorithms/centrality/reaching.html32
-rw-r--r--_modules/networkx/algorithms/centrality/second_order.html32
-rw-r--r--_modules/networkx/algorithms/centrality/subgraph_alg.html32
-rw-r--r--_modules/networkx/algorithms/centrality/trophic.html32
-rw-r--r--_modules/networkx/algorithms/centrality/voterank_alg.html32
-rw-r--r--_modules/networkx/algorithms/chains.html32
-rw-r--r--_modules/networkx/algorithms/chordal.html32
-rw-r--r--_modules/networkx/algorithms/clique.html170
-rw-r--r--_modules/networkx/algorithms/cluster.html43
-rw-r--r--_modules/networkx/algorithms/coloring/equitable_coloring.html69
-rw-r--r--_modules/networkx/algorithms/coloring/greedy_coloring.html40
-rw-r--r--_modules/networkx/algorithms/communicability_alg.html36
-rw-r--r--_modules/networkx/algorithms/community/asyn_fluid.html34
-rw-r--r--_modules/networkx/algorithms/community/centrality.html32
-rw-r--r--_modules/networkx/algorithms/community/community_utils.html32
-rw-r--r--_modules/networkx/algorithms/community/kclique.html32
-rw-r--r--_modules/networkx/algorithms/community/kernighan_lin.html32
-rw-r--r--_modules/networkx/algorithms/community/label_propagation.html35
-rw-r--r--_modules/networkx/algorithms/community/louvain.html42
-rw-r--r--_modules/networkx/algorithms/community/lukes.html40
-rw-r--r--_modules/networkx/algorithms/community/modularity_max.html36
-rw-r--r--_modules/networkx/algorithms/community/quality.html34
-rw-r--r--_modules/networkx/algorithms/components/attracting.html32
-rw-r--r--_modules/networkx/algorithms/components/biconnected.html32
-rw-r--r--_modules/networkx/algorithms/components/connected.html32
-rw-r--r--_modules/networkx/algorithms/components/semiconnected.html32
-rw-r--r--_modules/networkx/algorithms/components/strongly_connected.html32
-rw-r--r--_modules/networkx/algorithms/components/weakly_connected.html32
-rw-r--r--_modules/networkx/algorithms/connectivity/connectivity.html44
-rw-r--r--_modules/networkx/algorithms/connectivity/cuts.html40
-rw-r--r--_modules/networkx/algorithms/connectivity/disjoint_paths.html50
-rw-r--r--_modules/networkx/algorithms/connectivity/edge_augmentation.html44
-rw-r--r--_modules/networkx/algorithms/connectivity/edge_kcomponents.html32
-rw-r--r--_modules/networkx/algorithms/connectivity/kcomponents.html39
-rw-r--r--_modules/networkx/algorithms/connectivity/kcutsets.html34
-rw-r--r--_modules/networkx/algorithms/connectivity/stoerwagner.html32
-rw-r--r--_modules/networkx/algorithms/connectivity/utils.html36
-rw-r--r--_modules/networkx/algorithms/core.html34
-rw-r--r--_modules/networkx/algorithms/covering.html32
-rw-r--r--_modules/networkx/algorithms/cuts.html32
-rw-r--r--_modules/networkx/algorithms/cycles.html35
-rw-r--r--_modules/networkx/algorithms/d_separation.html34
-rw-r--r--_modules/networkx/algorithms/dag.html34
-rw-r--r--_modules/networkx/algorithms/distance_measures.html42
-rw-r--r--_modules/networkx/algorithms/distance_regular.html32
-rw-r--r--_modules/networkx/algorithms/dominance.html32
-rw-r--r--_modules/networkx/algorithms/dominating.html32
-rw-r--r--_modules/networkx/algorithms/efficiency_measures.html32
-rw-r--r--_modules/networkx/algorithms/euler.html32
-rw-r--r--_modules/networkx/algorithms/flow/boykovkolmogorov.html34
-rw-r--r--_modules/networkx/algorithms/flow/capacityscaling.html34
-rw-r--r--_modules/networkx/algorithms/flow/dinitz_alg.html32
-rw-r--r--_modules/networkx/algorithms/flow/edmondskarp.html32
-rw-r--r--_modules/networkx/algorithms/flow/gomory_hu.html32
-rw-r--r--_modules/networkx/algorithms/flow/maxflow.html32
-rw-r--r--_modules/networkx/algorithms/flow/mincost.html32
-rw-r--r--_modules/networkx/algorithms/flow/networksimplex.html33
-rw-r--r--_modules/networkx/algorithms/flow/preflowpush.html32
-rw-r--r--_modules/networkx/algorithms/flow/shortestaugmentingpath.html32
-rw-r--r--_modules/networkx/algorithms/flow/utils.html32
-rw-r--r--_modules/networkx/algorithms/graph_hashing.html32
-rw-r--r--_modules/networkx/algorithms/graphical.html32
-rw-r--r--_modules/networkx/algorithms/hierarchy.html32
-rw-r--r--_modules/networkx/algorithms/hybrid.html32
-rw-r--r--_modules/networkx/algorithms/isolate.html32
-rw-r--r--_modules/networkx/algorithms/isomorphism/ismags.html44
-rw-r--r--_modules/networkx/algorithms/isomorphism/isomorph.html38
-rw-r--r--_modules/networkx/algorithms/isomorphism/isomorphvf2.html63
-rw-r--r--_modules/networkx/algorithms/isomorphism/matchhelpers.html37
-rw-r--r--_modules/networkx/algorithms/isomorphism/tree_isomorphism.html40
-rw-r--r--_modules/networkx/algorithms/isomorphism/vf2pp.html755
-rw-r--r--_modules/networkx/algorithms/isomorphism/vf2userfunc.html37
-rw-r--r--_modules/networkx/algorithms/link_analysis/hits_alg.html32
-rw-r--r--_modules/networkx/algorithms/link_analysis/pagerank_alg.html42
-rw-r--r--_modules/networkx/algorithms/link_prediction.html32
-rw-r--r--_modules/networkx/algorithms/lowest_common_ancestors.html32
-rw-r--r--_modules/networkx/algorithms/matching.html43
-rw-r--r--_modules/networkx/algorithms/minors/contraction.html45
-rw-r--r--_modules/networkx/algorithms/mis.html32
-rw-r--r--_modules/networkx/algorithms/moral.html32
-rw-r--r--_modules/networkx/algorithms/node_classification.html32
-rw-r--r--_modules/networkx/algorithms/non_randomness.html32
-rw-r--r--_modules/networkx/algorithms/operators/all.html32
-rw-r--r--_modules/networkx/algorithms/operators/binary.html32
-rw-r--r--_modules/networkx/algorithms/operators/product.html35
-rw-r--r--_modules/networkx/algorithms/operators/unary.html32
-rw-r--r--_modules/networkx/algorithms/planar_drawing.html40
-rw-r--r--_modules/networkx/algorithms/planarity.html34
-rw-r--r--_modules/networkx/algorithms/polynomials.html32
-rw-r--r--_modules/networkx/algorithms/reciprocity.html32
-rw-r--r--_modules/networkx/algorithms/regular.html36
-rw-r--r--_modules/networkx/algorithms/richclub.html32
-rw-r--r--_modules/networkx/algorithms/shortest_paths/astar.html32
-rw-r--r--_modules/networkx/algorithms/shortest_paths/dense.html41
-rw-r--r--_modules/networkx/algorithms/shortest_paths/generic.html32
-rw-r--r--_modules/networkx/algorithms/shortest_paths/unweighted.html50
-rw-r--r--_modules/networkx/algorithms/shortest_paths/weighted.html56
-rw-r--r--_modules/networkx/algorithms/similarity.html60
-rw-r--r--_modules/networkx/algorithms/simple_paths.html38
-rw-r--r--_modules/networkx/algorithms/smallworld.html34
-rw-r--r--_modules/networkx/algorithms/smetric.html32
-rw-r--r--_modules/networkx/algorithms/sparsifiers.html32
-rw-r--r--_modules/networkx/algorithms/structuralholes.html32
-rw-r--r--_modules/networkx/algorithms/summarization.html46
-rw-r--r--_modules/networkx/algorithms/swap.html36
-rw-r--r--_modules/networkx/algorithms/threshold.html44
-rw-r--r--_modules/networkx/algorithms/tournament.html32
-rw-r--r--_modules/networkx/algorithms/traversal/beamsearch.html32
-rw-r--r--_modules/networkx/algorithms/traversal/breadth_first_search.html34
-rw-r--r--_modules/networkx/algorithms/traversal/depth_first_search.html32
-rw-r--r--_modules/networkx/algorithms/traversal/edgebfs.html34
-rw-r--r--_modules/networkx/algorithms/traversal/edgedfs.html32
-rw-r--r--_modules/networkx/algorithms/tree/branchings.html38
-rw-r--r--_modules/networkx/algorithms/tree/coding.html32
-rw-r--r--_modules/networkx/algorithms/tree/decomposition.html32
-rw-r--r--_modules/networkx/algorithms/tree/mst.html40
-rw-r--r--_modules/networkx/algorithms/tree/operations.html32
-rw-r--r--_modules/networkx/algorithms/tree/recognition.html32
-rw-r--r--_modules/networkx/algorithms/triads.html40
-rw-r--r--_modules/networkx/algorithms/vitality.html32
-rw-r--r--_modules/networkx/algorithms/voronoi.html45
-rw-r--r--_modules/networkx/algorithms/wiener.html32
-rw-r--r--_modules/networkx/classes/backends.html71
-rw-r--r--_modules/networkx/classes/coreviews.html32
-rw-r--r--_modules/networkx/classes/digraph.html38
-rw-r--r--_modules/networkx/classes/filters.html32
-rw-r--r--_modules/networkx/classes/function.html37
-rw-r--r--_modules/networkx/classes/graph.html34
-rw-r--r--_modules/networkx/classes/graphviews.html34
-rw-r--r--_modules/networkx/classes/multidigraph.html34
-rw-r--r--_modules/networkx/classes/multigraph.html35
-rw-r--r--_modules/networkx/convert.html32
-rw-r--r--_modules/networkx/convert_matrix.html34
-rw-r--r--_modules/networkx/drawing/layout.html34
-rw-r--r--_modules/networkx/drawing/nx_agraph.html34
-rw-r--r--_modules/networkx/drawing/nx_latex.html168
-rw-r--r--_modules/networkx/drawing/nx_pydot.html32
-rw-r--r--_modules/networkx/drawing/nx_pylab.html42
-rw-r--r--_modules/networkx/exception.html32
-rw-r--r--_modules/networkx/generators/atlas.html32
-rw-r--r--_modules/networkx/generators/classic.html36
-rw-r--r--_modules/networkx/generators/cographs.html34
-rw-r--r--_modules/networkx/generators/community.html38
-rw-r--r--_modules/networkx/generators/degree_seq.html32
-rw-r--r--_modules/networkx/generators/directed.html32
-rw-r--r--_modules/networkx/generators/duplication.html32
-rw-r--r--_modules/networkx/generators/ego.html32
-rw-r--r--_modules/networkx/generators/expanders.html36
-rw-r--r--_modules/networkx/generators/geometric.html32
-rw-r--r--_modules/networkx/generators/harary_graph.html32
-rw-r--r--_modules/networkx/generators/internet_as_graphs.html36
-rw-r--r--_modules/networkx/generators/intersection.html32
-rw-r--r--_modules/networkx/generators/interval_graph.html32
-rw-r--r--_modules/networkx/generators/joint_degree_seq.html44
-rw-r--r--_modules/networkx/generators/lattice.html32
-rw-r--r--_modules/networkx/generators/line.html48
-rw-r--r--_modules/networkx/generators/mycielski.html32
-rw-r--r--_modules/networkx/generators/nonisomorphic_trees.html32
-rw-r--r--_modules/networkx/generators/random_clustered.html32
-rw-r--r--_modules/networkx/generators/random_graphs.html42
-rw-r--r--_modules/networkx/generators/small.html34
-rw-r--r--_modules/networkx/generators/social.html32
-rw-r--r--_modules/networkx/generators/spectral_graph_forge.html32
-rw-r--r--_modules/networkx/generators/stochastic.html32
-rw-r--r--_modules/networkx/generators/sudoku.html32
-rw-r--r--_modules/networkx/generators/trees.html56
-rw-r--r--_modules/networkx/generators/triads.html32
-rw-r--r--_modules/networkx/linalg/algebraicconnectivity.html106
-rw-r--r--_modules/networkx/linalg/attrmatrix.html32
-rw-r--r--_modules/networkx/linalg/bethehessianmatrix.html32
-rw-r--r--_modules/networkx/linalg/graphmatrix.html32
-rw-r--r--_modules/networkx/linalg/laplacianmatrix.html32
-rw-r--r--_modules/networkx/linalg/modularitymatrix.html32
-rw-r--r--_modules/networkx/linalg/spectrum.html32
-rw-r--r--_modules/networkx/readwrite/adjlist.html32
-rw-r--r--_modules/networkx/readwrite/edgelist.html32
-rw-r--r--_modules/networkx/readwrite/gexf.html79
-rw-r--r--_modules/networkx/readwrite/gml.html38
-rw-r--r--_modules/networkx/readwrite/graph6.html32
-rw-r--r--_modules/networkx/readwrite/graphml.html38
-rw-r--r--_modules/networkx/readwrite/json_graph/adjacency.html34
-rw-r--r--_modules/networkx/readwrite/json_graph/cytoscape.html32
-rw-r--r--_modules/networkx/readwrite/json_graph/node_link.html40
-rw-r--r--_modules/networkx/readwrite/json_graph/tree.html32
-rw-r--r--_modules/networkx/readwrite/leda.html34
-rw-r--r--_modules/networkx/readwrite/multiline_adjlist.html32
-rw-r--r--_modules/networkx/readwrite/pajek.html32
-rw-r--r--_modules/networkx/readwrite/sparse6.html34
-rw-r--r--_modules/networkx/readwrite/text.html1116
-rw-r--r--_modules/networkx/relabel.html32
-rw-r--r--_modules/networkx/utils/decorators.html38
-rw-r--r--_modules/networkx/utils/mapped_queue.html36
-rw-r--r--_modules/networkx/utils/misc.html32
-rw-r--r--_modules/networkx/utils/random_sequence.html32
-rw-r--r--_modules/networkx/utils/rcm.html34
-rw-r--r--_modules/networkx/utils/union_find.html34
243 files changed, 8478 insertions, 2867 deletions
diff --git a/_modules/networkx/algorithms/approximation/clique.html b/_modules/networkx/algorithms/approximation/clique.html
index 2ecec5e1..0d75d5eb 100644
--- a/_modules/networkx/algorithms/approximation/clique.html
+++ b/_modules/networkx/algorithms/approximation/clique.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.approximation.clique &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.approximation.clique &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/approximation/clique';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/approximation/clique.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -708,11 +720,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/approximation/clustering_coefficient.html b/_modules/networkx/algorithms/approximation/clustering_coefficient.html
index c494aa3f..b8e40dc8 100644
--- a/_modules/networkx/algorithms/approximation/clustering_coefficient.html
+++ b/_modules/networkx/algorithms/approximation/clustering_coefficient.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.approximation.clustering_coefficient &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.approximation.clustering_coefficient &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/approximation/clustering_coefficient';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/approximation/clustering_coefficient.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -539,11 +551,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/approximation/connectivity.html b/_modules/networkx/algorithms/approximation/connectivity.html
index 218de1e1..f9f577a8 100644
--- a/_modules/networkx/algorithms/approximation/connectivity.html
+++ b/_modules/networkx/algorithms/approximation/connectivity.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.approximation.connectivity &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.approximation.connectivity &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/approximation/connectivity';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/approximation/connectivity.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -850,7 +862,7 @@
<span class="c1"># thus source and target will only trigger &quot;found path&quot; when they are</span>
<span class="c1"># adjacent and then they can be safely included in the container &#39;exclude&#39;</span>
<span class="n">level</span> <span class="o">+=</span> <span class="mi">1</span>
- <span class="k">if</span> <span class="ow">not</span> <span class="n">level</span> <span class="o">%</span> <span class="mi">2</span> <span class="o">==</span> <span class="mi">0</span><span class="p">:</span>
+ <span class="k">if</span> <span class="n">level</span> <span class="o">%</span> <span class="mi">2</span> <span class="o">!=</span> <span class="mi">0</span><span class="p">:</span>
<span class="n">this_level</span> <span class="o">=</span> <span class="n">forward_fringe</span>
<span class="n">forward_fringe</span> <span class="o">=</span> <span class="p">[]</span>
<span class="k">for</span> <span class="n">v</span> <span class="ow">in</span> <span class="n">this_level</span><span class="p">:</span>
@@ -890,11 +902,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/approximation/distance_measures.html b/_modules/networkx/algorithms/approximation/distance_measures.html
index 550b00be..ec365a83 100644
--- a/_modules/networkx/algorithms/approximation/distance_measures.html
+++ b/_modules/networkx/algorithms/approximation/distance_measures.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.approximation.distance_measures &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.approximation.distance_measures &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/approximation/distance_measures';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/approximation/distance_measures.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -615,11 +627,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/approximation/dominating_set.html b/_modules/networkx/algorithms/approximation/dominating_set.html
index 2a533abd..559058c3 100644
--- a/_modules/networkx/algorithms/approximation/dominating_set.html
+++ b/_modules/networkx/algorithms/approximation/dominating_set.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.approximation.dominating_set &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.approximation.dominating_set &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/approximation/dominating_set';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/approximation/dominating_set.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -598,11 +610,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/approximation/kcomponents.html b/_modules/networkx/algorithms/approximation/kcomponents.html
index 045c2762..99533b70 100644
--- a/_modules/networkx/algorithms/approximation/kcomponents.html
+++ b/_modules/networkx/algorithms/approximation/kcomponents.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.approximation.kcomponents &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.approximation.kcomponents &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/approximation/kcomponents';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/approximation/kcomponents.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -675,7 +687,7 @@
<span class="k">def</span> <span class="nf">single_edge_dict</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
<span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">all_edge_dict</span>
- <span class="n">edge_attr_dict_factory</span> <span class="o">=</span> <span class="n">single_edge_dict</span> <span class="c1"># type: ignore</span>
+ <span class="n">edge_attr_dict_factory</span> <span class="o">=</span> <span class="n">single_edge_dict</span> <span class="c1"># type: ignore[assignment]</span>
<span class="k">def</span> <span class="fm">__getitem__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">n</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Returns a dict of neighbors of node n in the dense graph.</span>
@@ -843,11 +855,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/approximation/matching.html b/_modules/networkx/algorithms/approximation/matching.html
index 48d5f4de..233e664d 100644
--- a/_modules/networkx/algorithms/approximation/matching.html
+++ b/_modules/networkx/algorithms/approximation/matching.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.approximation.matching &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.approximation.matching &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/approximation/matching';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/approximation/matching.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -517,11 +529,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/approximation/maxcut.html b/_modules/networkx/algorithms/approximation/maxcut.html
index e7d40048..e45ad90d 100644
--- a/_modules/networkx/algorithms/approximation/maxcut.html
+++ b/_modules/networkx/algorithms/approximation/maxcut.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.approximation.maxcut &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.approximation.maxcut &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/approximation/maxcut';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/approximation/maxcut.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -586,11 +598,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/approximation/ramsey.html b/_modules/networkx/algorithms/approximation/ramsey.html
index bd83ea28..565af84d 100644
--- a/_modules/networkx/algorithms/approximation/ramsey.html
+++ b/_modules/networkx/algorithms/approximation/ramsey.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.approximation.ramsey &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.approximation.ramsey &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/approximation/ramsey';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/approximation/ramsey.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -526,11 +538,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/approximation/steinertree.html b/_modules/networkx/algorithms/approximation/steinertree.html
index cb5de8d6..65a75015 100644
--- a/_modules/networkx/algorithms/approximation/steinertree.html
+++ b/_modules/networkx/algorithms/approximation/steinertree.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.approximation.steinertree &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.approximation.steinertree &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/approximation/steinertree';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/approximation/steinertree.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -597,21 +609,21 @@
<span class="sd"> The approximation algorithm is specified with the `method` keyword</span>
<span class="sd"> argument. All three available algorithms produce a tree whose weight is</span>
-<span class="sd"> within a (2 - (2 / l)) factor of the weight of the optimal Steiner tree,</span>
-<span class="sd"> where *l* is the minimum number of leaf nodes across all possible Steiner</span>
+<span class="sd"> within a ``(2 - (2 / l))`` factor of the weight of the optimal Steiner tree,</span>
+<span class="sd"> where ``l`` is the minimum number of leaf nodes across all possible Steiner</span>
<span class="sd"> trees.</span>
-<span class="sd"> * `kou` [2]_ (runtime $O(|S| |V|^2)$) computes the minimum spanning tree of</span>
-<span class="sd"> the subgraph of the metric closure of *G* induced by the terminal nodes,</span>
-<span class="sd"> where the metric closure of *G* is the complete graph in which each edge is</span>
-<span class="sd"> weighted by the shortest path distance between the nodes in *G*.</span>
+<span class="sd"> * ``&quot;kou&quot;`` [2]_ (runtime $O(|S| |V|^2)$) computes the minimum spanning tree of</span>
+<span class="sd"> the subgraph of the metric closure of *G* induced by the terminal nodes,</span>
+<span class="sd"> where the metric closure of *G* is the complete graph in which each edge is</span>
+<span class="sd"> weighted by the shortest path distance between the nodes in *G*.</span>
-<span class="sd"> * `mehlhorn` [3]_ (runtime $O(|E|+|V|\log|V|)$) modifies Kou et al.&#39;s</span>
-<span class="sd"> algorithm, beginning by finding the closest terminal node for each</span>
-<span class="sd"> non-terminal. This data is used to create a complete graph containing only</span>
-<span class="sd"> the terminal nodes, in which edge is weighted with the shortest path</span>
-<span class="sd"> distance between them. The algorithm then proceeds in the same way as Kou</span>
-<span class="sd"> et al..</span>
+<span class="sd"> * ``&quot;mehlhorn&quot;`` [3]_ (runtime $O(|E|+|V|\log|V|)$) modifies Kou et al.&#39;s</span>
+<span class="sd"> algorithm, beginning by finding the closest terminal node for each</span>
+<span class="sd"> non-terminal. This data is used to create a complete graph containing only</span>
+<span class="sd"> the terminal nodes, in which edge is weighted with the shortest path</span>
+<span class="sd"> distance between them. The algorithm then proceeds in the same way as Kou</span>
+<span class="sd"> et al..</span>
<span class="sd"> Parameters</span>
<span class="sd"> ----------</span>
@@ -693,11 +705,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/approximation/traveling_salesman.html b/_modules/networkx/algorithms/approximation/traveling_salesman.html
index e3c284cf..26b8592c 100644
--- a/_modules/networkx/algorithms/approximation/traveling_salesman.html
+++ b/_modules/networkx/algorithms/approximation/traveling_salesman.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.approximation.traveling_salesman &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.approximation.traveling_salesman &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/approximation/traveling_salesman';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/approximation/traveling_salesman.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -993,7 +1005,7 @@
<span class="sd"> pp.1138-1162</span>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="kn">import</span> <span class="nn">numpy</span> <span class="k">as</span> <span class="nn">np</span>
- <span class="kn">import</span> <span class="nn">scipy.optimize</span> <span class="k">as</span> <span class="nn">optimize</span>
+ <span class="kn">from</span> <span class="nn">scipy</span> <span class="kn">import</span> <span class="n">optimize</span>
<span class="k">def</span> <span class="nf">k_pi</span><span class="p">():</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
@@ -1248,7 +1260,7 @@
<span class="c1"># reference [1]</span>
<span class="n">z_star</span> <span class="o">=</span> <span class="p">{}</span>
<span class="n">scale_factor</span> <span class="o">=</span> <span class="p">(</span><span class="n">G</span><span class="o">.</span><span class="n">order</span><span class="p">()</span> <span class="o">-</span> <span class="mi">1</span><span class="p">)</span> <span class="o">/</span> <span class="n">G</span><span class="o">.</span><span class="n">order</span><span class="p">()</span>
- <span class="k">for</span> <span class="n">u</span><span class="p">,</span> <span class="n">v</span> <span class="ow">in</span> <span class="n">x_star</span><span class="o">.</span><span class="n">keys</span><span class="p">():</span>
+ <span class="k">for</span> <span class="n">u</span><span class="p">,</span> <span class="n">v</span> <span class="ow">in</span> <span class="n">x_star</span><span class="p">:</span>
<span class="n">frequency</span> <span class="o">=</span> <span class="n">x_star</span><span class="p">[(</span><span class="n">u</span><span class="p">,</span> <span class="n">v</span><span class="p">)]</span> <span class="o">+</span> <span class="n">x_star</span><span class="p">[(</span><span class="n">v</span><span class="p">,</span> <span class="n">u</span><span class="p">)]</span>
<span class="k">if</span> <span class="n">frequency</span> <span class="o">&gt;</span> <span class="mi">0</span><span class="p">:</span>
<span class="n">z_star</span><span class="p">[(</span><span class="n">u</span><span class="p">,</span> <span class="n">v</span><span class="p">)]</span> <span class="o">=</span> <span class="n">scale_factor</span> <span class="o">*</span> <span class="n">frequency</span>
@@ -1909,11 +1921,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/approximation/treewidth.html b/_modules/networkx/algorithms/approximation/treewidth.html
index 025036ae..749e83d2 100644
--- a/_modules/networkx/algorithms/approximation/treewidth.html
+++ b/_modules/networkx/algorithms/approximation/treewidth.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.approximation.treewidth &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.approximation.treewidth &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/approximation/treewidth';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/approximation/treewidth.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -724,11 +736,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/approximation/vertex_cover.html b/_modules/networkx/algorithms/approximation/vertex_cover.html
index fb5b7d8f..9ce18ca6 100644
--- a/_modules/networkx/algorithms/approximation/vertex_cover.html
+++ b/_modules/networkx/algorithms/approximation/vertex_cover.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.approximation.vertex_cover &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.approximation.vertex_cover &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/approximation/vertex_cover';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/approximation/vertex_cover.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -555,11 +567,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/assortativity/connectivity.html b/_modules/networkx/algorithms/assortativity/connectivity.html
index a9bab070..16559b55 100644
--- a/_modules/networkx/algorithms/assortativity/connectivity.html
+++ b/_modules/networkx/algorithms/assortativity/connectivity.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.assortativity.connectivity &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.assortativity.connectivity &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/assortativity/connectivity';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/assortativity/connectivity.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -596,11 +608,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/assortativity/correlation.html b/_modules/networkx/algorithms/assortativity/correlation.html
index b0b215ac..c3994737 100644
--- a/_modules/networkx/algorithms/assortativity/correlation.html
+++ b/_modules/networkx/algorithms/assortativity/correlation.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.assortativity.correlation &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.assortativity.correlation &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/assortativity/correlation';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/assortativity/correlation.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -773,11 +785,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/assortativity/mixing.html b/_modules/networkx/algorithms/assortativity/mixing.html
index 181cf0f3..24a9c7fd 100644
--- a/_modules/networkx/algorithms/assortativity/mixing.html
+++ b/_modules/networkx/algorithms/assortativity/mixing.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.assortativity.mixing &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.assortativity.mixing &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/assortativity/mixing';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/assortativity/mixing.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -720,11 +732,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/assortativity/neighbor_degree.html b/_modules/networkx/algorithms/assortativity/neighbor_degree.html
index 08f5bafa..80c6c21f 100644
--- a/_modules/networkx/algorithms/assortativity/neighbor_degree.html
+++ b/_modules/networkx/algorithms/assortativity/neighbor_degree.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.assortativity.neighbor_degree &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.assortativity.neighbor_degree &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/assortativity/neighbor_degree';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/assortativity/neighbor_degree.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -634,11 +646,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/assortativity/pairs.html b/_modules/networkx/algorithms/assortativity/pairs.html
index 7690d519..852a8fd9 100644
--- a/_modules/networkx/algorithms/assortativity/pairs.html
+++ b/_modules/networkx/algorithms/assortativity/pairs.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.assortativity.pairs &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.assortativity.pairs &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/assortativity/pairs';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/assortativity/pairs.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -589,11 +601,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/asteroidal.html b/_modules/networkx/algorithms/asteroidal.html
index 4bbc0066..3eff4d42 100644
--- a/_modules/networkx/algorithms/asteroidal.html
+++ b/_modules/networkx/algorithms/asteroidal.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.asteroidal &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.asteroidal &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/asteroidal';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/asteroidal.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -642,11 +654,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/bipartite/basic.html b/_modules/networkx/algorithms/bipartite/basic.html
index fa01367b..f4f0f6e9 100644
--- a/_modules/networkx/algorithms/bipartite/basic.html
+++ b/_modules/networkx/algorithms/bipartite/basic.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.bipartite.basic &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.bipartite.basic &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/bipartite/basic';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/bipartite/basic.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -791,11 +803,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/bipartite/centrality.html b/_modules/networkx/algorithms/bipartite/centrality.html
index dc8ca164..0391b0cf 100644
--- a/_modules/networkx/algorithms/bipartite/centrality.html
+++ b/_modules/networkx/algorithms/bipartite/centrality.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.bipartite.centrality &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.bipartite.centrality &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/bipartite/centrality';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/bipartite/centrality.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -741,11 +753,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/bipartite/cluster.html b/_modules/networkx/algorithms/bipartite/cluster.html
index 8c9687f5..c16e2aa8 100644
--- a/_modules/networkx/algorithms/bipartite/cluster.html
+++ b/_modules/networkx/algorithms/bipartite/cluster.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.bipartite.cluster &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.bipartite.cluster &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/bipartite/cluster';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/bipartite/cluster.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -752,11 +764,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/bipartite/covering.html b/_modules/networkx/algorithms/bipartite/covering.html
index 5c11d584..88aa9f29 100644
--- a/_modules/networkx/algorithms/bipartite/covering.html
+++ b/_modules/networkx/algorithms/bipartite/covering.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.bipartite.covering &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.bipartite.covering &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/bipartite/covering';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/bipartite/covering.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -530,11 +542,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/bipartite/edgelist.html b/_modules/networkx/algorithms/bipartite/edgelist.html
index 012ee0a2..09eea953 100644
--- a/_modules/networkx/algorithms/bipartite/edgelist.html
+++ b/_modules/networkx/algorithms/bipartite/edgelist.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.bipartite.edgelist &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.bipartite.edgelist &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/bipartite/edgelist';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/bipartite/edgelist.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -832,11 +844,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/bipartite/generators.html b/_modules/networkx/algorithms/bipartite/generators.html
index b3cdb41c..9871bfd8 100644
--- a/_modules/networkx/algorithms/bipartite/generators.html
+++ b/_modules/networkx/algorithms/bipartite/generators.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.bipartite.generators &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.bipartite.generators &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/bipartite/generators';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/bipartite/generators.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -1070,11 +1082,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/bipartite/matching.html b/_modules/networkx/algorithms/bipartite/matching.html
index f3e29806..1f83a2ef 100644
--- a/_modules/networkx/algorithms/bipartite/matching.html
+++ b/_modules/networkx/algorithms/bipartite/matching.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.bipartite.matching &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.bipartite.matching &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/bipartite/matching';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/bipartite/matching.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -578,6 +590,7 @@
<span class="sd"> 2.4 (1973), pp. 225--231. &lt;https://doi.org/10.1137/0202019&gt;.</span>
<span class="sd"> &quot;&quot;&quot;</span>
+
<span class="c1"># First we define some auxiliary search functions.</span>
<span class="c1">#</span>
<span class="c1"># If you are a human reading these auxiliary search functions, the &quot;global&quot;</span>
@@ -732,12 +745,17 @@
<span class="c1"># did we finish layering without finding any alternating paths?</span>
<span class="k">if</span> <span class="ow">not</span> <span class="n">unmatched</span><span class="p">:</span>
- <span class="n">unlayered</span> <span class="o">=</span> <span class="p">{}</span>
- <span class="k">for</span> <span class="n">u</span> <span class="ow">in</span> <span class="n">G</span><span class="p">:</span>
- <span class="c1"># TODO Why is extra inner loop necessary?</span>
- <span class="k">for</span> <span class="n">v</span> <span class="ow">in</span> <span class="n">G</span><span class="p">[</span><span class="n">u</span><span class="p">]:</span>
- <span class="k">if</span> <span class="n">v</span> <span class="ow">not</span> <span class="ow">in</span> <span class="n">preds</span><span class="p">:</span>
- <span class="n">unlayered</span><span class="p">[</span><span class="n">v</span><span class="p">]</span> <span class="o">=</span> <span class="kc">None</span>
+ <span class="c1"># TODO - The lines between --- were unused and were thus commented</span>
+ <span class="c1"># out. This whole commented chunk should be reviewed to determine</span>
+ <span class="c1"># whether it should be built upon or completely removed.</span>
+ <span class="c1"># ---</span>
+ <span class="c1"># unlayered = {}</span>
+ <span class="c1"># for u in G:</span>
+ <span class="c1"># # TODO Why is extra inner loop necessary?</span>
+ <span class="c1"># for v in G[u]:</span>
+ <span class="c1"># if v not in preds:</span>
+ <span class="c1"># unlayered[v] = None</span>
+ <span class="c1"># ---</span>
<span class="c1"># TODO Originally, this function returned a three-tuple:</span>
<span class="c1">#</span>
<span class="c1"># return (matching, list(pred), list(unlayered))</span>
@@ -1054,11 +1072,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/bipartite/matrix.html b/_modules/networkx/algorithms/bipartite/matrix.html
index 0c132da5..ab9d4aed 100644
--- a/_modules/networkx/algorithms/bipartite/matrix.html
+++ b/_modules/networkx/algorithms/bipartite/matrix.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.bipartite.matrix &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.bipartite.matrix &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/bipartite/matrix';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/bipartite/matrix.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -641,11 +653,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/bipartite/projection.html b/_modules/networkx/algorithms/bipartite/projection.html
index 657548a1..86eb3298 100644
--- a/_modules/networkx/algorithms/bipartite/projection.html
+++ b/_modules/networkx/algorithms/bipartite/projection.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.bipartite.projection &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.bipartite.projection &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/bipartite/projection';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/bipartite/projection.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -998,11 +1010,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/bipartite/redundancy.html b/_modules/networkx/algorithms/bipartite/redundancy.html
index 325e602a..4f8a629e 100644
--- a/_modules/networkx/algorithms/bipartite/redundancy.html
+++ b/_modules/networkx/algorithms/bipartite/redundancy.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.bipartite.redundancy &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.bipartite.redundancy &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/bipartite/redundancy';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/bipartite/redundancy.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -584,11 +596,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/bipartite/spectral.html b/_modules/networkx/algorithms/bipartite/spectral.html
index d3693f38..4781efbc 100644
--- a/_modules/networkx/algorithms/bipartite/spectral.html
+++ b/_modules/networkx/algorithms/bipartite/spectral.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.bipartite.spectral &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.bipartite.spectral &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/bipartite/spectral';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/bipartite/spectral.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -543,11 +555,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/boundary.html b/_modules/networkx/algorithms/boundary.html
index 20e3d891..ce87245d 100644
--- a/_modules/networkx/algorithms/boundary.html
+++ b/_modules/networkx/algorithms/boundary.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.boundary &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.boundary &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/boundary';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/boundary.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -614,11 +626,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/bridges.html b/_modules/networkx/algorithms/bridges.html
index 9daee3f1..a4f79dcc 100644
--- a/_modules/networkx/algorithms/bridges.html
+++ b/_modules/networkx/algorithms/bridges.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.bridges &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.bridges &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/bridges';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/bridges.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -677,11 +689,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/centrality/betweenness.html b/_modules/networkx/algorithms/centrality/betweenness.html
index a9474c72..42b3e605 100644
--- a/_modules/networkx/algorithms/centrality/betweenness.html
+++ b/_modules/networkx/algorithms/centrality/betweenness.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.centrality.betweenness &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.centrality.betweenness &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/centrality/betweenness';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/centrality/betweenness.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -687,7 +699,7 @@
<span class="k">if</span> <span class="n">k</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
<span class="n">nodes</span> <span class="o">=</span> <span class="n">G</span>
<span class="k">else</span><span class="p">:</span>
- <span class="n">nodes</span> <span class="o">=</span> <span class="n">seed</span><span class="o">.</span><span class="n">sample</span><span class="p">(</span><span class="n">G</span><span class="o">.</span><span class="n">nodes</span><span class="p">(),</span> <span class="n">k</span><span class="p">)</span>
+ <span class="n">nodes</span> <span class="o">=</span> <span class="n">seed</span><span class="o">.</span><span class="n">sample</span><span class="p">(</span><span class="nb">list</span><span class="p">(</span><span class="n">G</span><span class="o">.</span><span class="n">nodes</span><span class="p">()),</span> <span class="n">k</span><span class="p">)</span>
<span class="k">for</span> <span class="n">s</span> <span class="ow">in</span> <span class="n">nodes</span><span class="p">:</span>
<span class="c1"># single source shortest paths</span>
<span class="k">if</span> <span class="n">weight</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span> <span class="c1"># use BFS</span>
@@ -905,11 +917,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/centrality/betweenness_subset.html b/_modules/networkx/algorithms/centrality/betweenness_subset.html
index 60b79a6d..3673631d 100644
--- a/_modules/networkx/algorithms/centrality/betweenness_subset.html
+++ b/_modules/networkx/algorithms/centrality/betweenness_subset.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.centrality.betweenness_subset &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.centrality.betweenness_subset &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/centrality/betweenness_subset';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/centrality/betweenness_subset.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -744,11 +756,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/centrality/closeness.html b/_modules/networkx/algorithms/centrality/closeness.html
index 6dec3eaa..1cdaaa9c 100644
--- a/_modules/networkx/algorithms/centrality/closeness.html
+++ b/_modules/networkx/algorithms/centrality/closeness.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.centrality.closeness &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.centrality.closeness &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/centrality/closeness';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/centrality/closeness.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -754,11 +766,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/centrality/current_flow_betweenness.html b/_modules/networkx/algorithms/centrality/current_flow_betweenness.html
index 03b9bad5..0b9054c3 100644
--- a/_modules/networkx/algorithms/centrality/current_flow_betweenness.html
+++ b/_modules/networkx/algorithms/centrality/current_flow_betweenness.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.centrality.current_flow_betweenness &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.centrality.current_flow_betweenness &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/centrality/current_flow_betweenness';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/centrality/current_flow_betweenness.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -815,11 +827,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/centrality/current_flow_betweenness_subset.html b/_modules/networkx/algorithms/centrality/current_flow_betweenness_subset.html
index 61eb3e7a..5be44d5b 100644
--- a/_modules/networkx/algorithms/centrality/current_flow_betweenness_subset.html
+++ b/_modules/networkx/algorithms/centrality/current_flow_betweenness_subset.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.centrality.current_flow_betweenness_subset &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.centrality.current_flow_betweenness_subset &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/centrality/current_flow_betweenness_subset';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/centrality/current_flow_betweenness_subset.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -699,11 +711,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/centrality/current_flow_closeness.html b/_modules/networkx/algorithms/centrality/current_flow_closeness.html
index abcee6a3..9587cff0 100644
--- a/_modules/networkx/algorithms/centrality/current_flow_closeness.html
+++ b/_modules/networkx/algorithms/centrality/current_flow_closeness.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.centrality.current_flow_closeness &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.centrality.current_flow_closeness &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/centrality/current_flow_closeness';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/centrality/current_flow_closeness.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -571,11 +583,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/centrality/degree_alg.html b/_modules/networkx/algorithms/centrality/degree_alg.html
index b6b2850a..87d237d8 100644
--- a/_modules/networkx/algorithms/centrality/degree_alg.html
+++ b/_modules/networkx/algorithms/centrality/degree_alg.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.centrality.degree_alg &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.centrality.degree_alg &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/centrality/degree_alg';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/centrality/degree_alg.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -624,11 +636,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/centrality/dispersion.html b/_modules/networkx/algorithms/centrality/dispersion.html
index 9149c300..515eec23 100644
--- a/_modules/networkx/algorithms/centrality/dispersion.html
+++ b/_modules/networkx/algorithms/centrality/dispersion.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.centrality.dispersion &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.centrality.dispersion &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/centrality/dispersion';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/centrality/dispersion.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -522,7 +534,7 @@
<span class="c1"># all possible ties of connections that u and b share</span>
<span class="n">possib</span> <span class="o">=</span> <span class="n">combinations</span><span class="p">(</span><span class="n">ST</span><span class="p">,</span> <span class="mi">2</span><span class="p">)</span>
<span class="n">total</span> <span class="o">=</span> <span class="mi">0</span>
- <span class="k">for</span> <span class="p">(</span><span class="n">s</span><span class="p">,</span> <span class="n">t</span><span class="p">)</span> <span class="ow">in</span> <span class="n">possib</span><span class="p">:</span>
+ <span class="k">for</span> <span class="n">s</span><span class="p">,</span> <span class="n">t</span> <span class="ow">in</span> <span class="n">possib</span><span class="p">:</span>
<span class="c1"># neighbors of s that are in G_u, not including u and v</span>
<span class="n">nbrs_s</span> <span class="o">=</span> <span class="n">u_nbrs</span><span class="o">.</span><span class="n">intersection</span><span class="p">(</span><span class="n">G_u</span><span class="p">[</span><span class="n">s</span><span class="p">])</span> <span class="o">-</span> <span class="n">set_uv</span>
<span class="c1"># s and t are not directly connected</span>
@@ -579,11 +591,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/centrality/eigenvector.html b/_modules/networkx/algorithms/centrality/eigenvector.html
index 2aebe6e1..b6d6daa3 100644
--- a/_modules/networkx/algorithms/centrality/eigenvector.html
+++ b/_modules/networkx/algorithms/centrality/eigenvector.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.centrality.eigenvector &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.centrality.eigenvector &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/centrality/eigenvector';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/centrality/eigenvector.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -705,11 +717,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/centrality/group.html b/_modules/networkx/algorithms/centrality/group.html
index 97e6518b..8fa8faaf 100644
--- a/_modules/networkx/algorithms/centrality/group.html
+++ b/_modules/networkx/algorithms/centrality/group.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.centrality.group &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.centrality.group &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/centrality/group';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/centrality/group.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -670,7 +682,7 @@
<span class="k">else</span><span class="p">:</span> <span class="c1"># use Dijkstra&#39;s algorithm</span>
<span class="n">S</span><span class="p">,</span> <span class="n">P</span><span class="p">,</span> <span class="n">sigma</span><span class="p">[</span><span class="n">s</span><span class="p">],</span> <span class="n">D</span><span class="p">[</span><span class="n">s</span><span class="p">]</span> <span class="o">=</span> <span class="n">_single_source_dijkstra_path_basic</span><span class="p">(</span><span class="n">G</span><span class="p">,</span> <span class="n">s</span><span class="p">,</span> <span class="n">weight</span><span class="p">)</span>
<span class="n">betweenness</span><span class="p">,</span> <span class="n">delta</span><span class="p">[</span><span class="n">s</span><span class="p">]</span> <span class="o">=</span> <span class="n">_accumulate_endpoints</span><span class="p">(</span><span class="n">betweenness</span><span class="p">,</span> <span class="n">S</span><span class="p">,</span> <span class="n">P</span><span class="p">,</span> <span class="n">sigma</span><span class="p">[</span><span class="n">s</span><span class="p">],</span> <span class="n">s</span><span class="p">)</span>
- <span class="k">for</span> <span class="n">i</span> <span class="ow">in</span> <span class="n">delta</span><span class="p">[</span><span class="n">s</span><span class="p">]</span><span class="o">.</span><span class="n">keys</span><span class="p">():</span> <span class="c1"># add the paths from s to i and rescale sigma</span>
+ <span class="k">for</span> <span class="n">i</span> <span class="ow">in</span> <span class="n">delta</span><span class="p">[</span><span class="n">s</span><span class="p">]:</span> <span class="c1"># add the paths from s to i and rescale sigma</span>
<span class="k">if</span> <span class="n">s</span> <span class="o">!=</span> <span class="n">i</span><span class="p">:</span>
<span class="n">delta</span><span class="p">[</span><span class="n">s</span><span class="p">][</span><span class="n">i</span><span class="p">]</span> <span class="o">+=</span> <span class="mi">1</span>
<span class="k">if</span> <span class="n">weight</span> <span class="ow">is</span> <span class="ow">not</span> <span class="kc">None</span><span class="p">:</span>
@@ -1145,7 +1157,7 @@
<span class="sd"> Journal of Mathematical Sociology. 23(3): 181-201. 1999.</span>
<span class="sd"> http://www.analytictech.com/borgatti/group_centrality.htm</span>
<span class="sd"> &quot;&quot;&quot;</span>
- <span class="n">centrality</span> <span class="o">=</span> <span class="nb">len</span><span class="p">(</span><span class="nb">set</span><span class="p">()</span><span class="o">.</span><span class="n">union</span><span class="p">(</span><span class="o">*</span><span class="nb">list</span><span class="p">(</span><span class="nb">set</span><span class="p">(</span><span class="n">G</span><span class="o">.</span><span class="n">neighbors</span><span class="p">(</span><span class="n">i</span><span class="p">))</span> <span class="k">for</span> <span class="n">i</span> <span class="ow">in</span> <span class="n">S</span><span class="p">))</span> <span class="o">-</span> <span class="nb">set</span><span class="p">(</span><span class="n">S</span><span class="p">))</span>
+ <span class="n">centrality</span> <span class="o">=</span> <span class="nb">len</span><span class="p">(</span><span class="nb">set</span><span class="p">()</span><span class="o">.</span><span class="n">union</span><span class="p">(</span><span class="o">*</span><span class="p">[</span><span class="nb">set</span><span class="p">(</span><span class="n">G</span><span class="o">.</span><span class="n">neighbors</span><span class="p">(</span><span class="n">i</span><span class="p">))</span> <span class="k">for</span> <span class="n">i</span> <span class="ow">in</span> <span class="n">S</span><span class="p">])</span> <span class="o">-</span> <span class="nb">set</span><span class="p">(</span><span class="n">S</span><span class="p">))</span>
<span class="n">centrality</span> <span class="o">/=</span> <span class="nb">len</span><span class="p">(</span><span class="n">G</span><span class="o">.</span><span class="n">nodes</span><span class="p">())</span> <span class="o">-</span> <span class="nb">len</span><span class="p">(</span><span class="n">S</span><span class="p">)</span>
<span class="k">return</span> <span class="n">centrality</span></div>
@@ -1254,11 +1266,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/centrality/harmonic.html b/_modules/networkx/algorithms/centrality/harmonic.html
index 6abdf215..a28375a5 100644
--- a/_modules/networkx/algorithms/centrality/harmonic.html
+++ b/_modules/networkx/algorithms/centrality/harmonic.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.centrality.harmonic &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.centrality.harmonic &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/centrality/harmonic';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/centrality/harmonic.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -554,11 +566,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/centrality/katz.html b/_modules/networkx/algorithms/centrality/katz.html
index 6535b2aa..4bbfedc1 100644
--- a/_modules/networkx/algorithms/centrality/katz.html
+++ b/_modules/networkx/algorithms/centrality/katz.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.centrality.katz &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.centrality.katz &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/centrality/katz';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/centrality/katz.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -809,11 +821,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/centrality/laplacian.html b/_modules/networkx/algorithms/centrality/laplacian.html
new file mode 100644
index 00000000..77e632e3
--- /dev/null
+++ b/_modules/networkx/algorithms/centrality/laplacian.html
@@ -0,0 +1,690 @@
+
+<!DOCTYPE html>
+
+<html lang="en">
+ <head>
+ <meta charset="utf-8" />
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+ <title>networkx.algorithms.centrality.laplacian &#8212; NetworkX 3.1rc1.dev0 documentation</title>
+
+
+
+ <script data-cfasync="false">
+ document.documentElement.dataset.mode = localStorage.getItem("mode") || "light";
+ document.documentElement.dataset.theme = localStorage.getItem("theme") || "light";
+ </script>
+
+ <!-- Loaded before other Sphinx assets -->
+ <link href="../../../../_static/styles/theme.css?digest=796348d33e8b1d947c94" rel="stylesheet">
+<link href="../../../../_static/styles/bootstrap.css?digest=796348d33e8b1d947c94" rel="stylesheet">
+<link href="../../../../_static/styles/pydata-sphinx-theme.css?digest=796348d33e8b1d947c94" rel="stylesheet">
+
+
+ <link href="../../../../_static/vendor/fontawesome/6.1.2/css/all.min.css?digest=796348d33e8b1d947c94" rel="stylesheet">
+ <link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../_static/vendor/fontawesome/6.1.2/webfonts/fa-solid-900.woff2">
+<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../_static/vendor/fontawesome/6.1.2/webfonts/fa-brands-400.woff2">
+<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../_static/vendor/fontawesome/6.1.2/webfonts/fa-regular-400.woff2">
+
+ <link rel="stylesheet" type="text/css" href="../../../../_static/pygments.css" />
+ <link rel="stylesheet" type="text/css" href="../../../../_static/custom.css" />
+ <link rel="stylesheet" type="text/css" href="../../../../_static/sg_gallery.css" />
+ <link rel="stylesheet" type="text/css" href="../../../../_static/sg_gallery-binder.css" />
+ <link rel="stylesheet" type="text/css" href="../../../../_static/sg_gallery-dataframe.css" />
+ <link rel="stylesheet" type="text/css" href="../../../../_static/sg_gallery-rendered-html.css" />
+
+ <!-- Pre-loaded scripts that we'll load fully later -->
+ <link rel="preload" as="script" href="../../../../_static/scripts/bootstrap.js?digest=796348d33e8b1d947c94">
+<link rel="preload" as="script" href="../../../../_static/scripts/pydata-sphinx-theme.js?digest=796348d33e8b1d947c94">
+
+ <script data-url_root="../../../../" id="documentation_options" src="../../../../_static/documentation_options.js"></script>
+ <script src="../../../../_static/jquery.js"></script>
+ <script src="../../../../_static/underscore.js"></script>
+ <script src="../../../../_static/_sphinx_javascript_frameworks_compat.js"></script>
+ <script src="../../../../_static/doctools.js"></script>
+ <script src="../../../../_static/sphinx_highlight.js"></script>
+ <script src="../../../../_static/copybutton.js"></script>
+ <script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/centrality/laplacian';</script>
+ <link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/centrality/laplacian.html" />
+ <link rel="search" type="application/opensearchdescription+xml"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
+ href="../../../../_static/opensearch.xml"/>
+ <link rel="index" title="Index" href="../../../../genindex.html" />
+ <link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
+ <meta name="docsearch:language" content="en">
+ </head>
+
+
+ <body data-spy="scroll" data-target="#bd-toc-nav" data-offset="180" data-default-mode="light">
+
+
+
+ <a class="skip-link" href="#main-content">Skip to main content</a>
+<div class="container-fluid version-alert devbar">
+ <div class="row no-gutters">
+ <div class="col-12 text-center">
+ This page is documentation for a DEVELOPMENT / PRE-RELEASE version.
+ <a
+ class="btn version-stable font-weight-bold ml-3 my-3 align-baseline"
+ href="https://networkx.org/documentation/stable/"
+ >Switch to stable version</a
+ >
+ </div>
+ </div>
+</div>
+
+
+
+ <input type="checkbox" class="sidebar-toggle" name="__primary" id="__primary">
+ <label class="overlay overlay-primary" for="__primary"></label>
+
+
+ <input type="checkbox" class="sidebar-toggle" name="__secondary" id="__secondary">
+ <label class="overlay overlay-secondary" for="__secondary"></label>
+
+
+ <div class="search-button__wrapper">
+ <div class="search-button__overlay"></div>
+ <div class="search-button__search-container">
+
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
+ </div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
+ </div>
+
+
+ <nav class="bd-header navbar navbar-expand-lg bd-navbar" id="navbar-main"><div class="bd-header__inner bd-page-width">
+ <label class="sidebar-toggle primary-toggle" for="__primary">
+ <span class="fa-solid fa-bars"></span>
+ </label>
+ <div id="navbar-start">
+
+
+
+
+
+<a class="navbar-brand logo" href="../../../../index.html">
+
+
+
+
+
+
+
+
+
+
+ <img src="../../../../_static/networkx_banner.svg" class="logo__image only-light" alt="Logo image">
+ <img src="../../../../_static/networkx_banner.svg" class="logo__image only-dark" alt="Logo image">
+
+
+</a>
+
+ </div>
+
+
+ <div class="col-lg-9 navbar-header-items">
+ <div id="navbar-center" class="mr-auto">
+
+ <div class="navbar-center-item">
+ <nav class="navbar-nav">
+ <p class="sidebar-header-items__title" role="heading" aria-level="1" aria-label="Site Navigation">
+ Site Navigation
+ </p>
+ <ul id="navbar-main-elements" class="navbar-nav">
+
+ <li class="nav-item">
+ <a class="nav-link nav-internal" href="../../../../install.html">
+ Install
+ </a>
+ </li>
+
+
+ <li class="nav-item">
+ <a class="nav-link nav-internal" href="../../../../tutorial.html">
+ Tutorial
+ </a>
+ </li>
+
+
+ <li class="nav-item">
+ <a class="nav-link nav-internal" href="../../../../reference/index.html">
+ Reference
+ </a>
+ </li>
+
+
+ <li class="nav-item">
+ <a class="nav-link nav-internal" href="../../../../auto_examples/index.html">
+ Gallery
+ </a>
+ </li>
+
+
+ <li class="nav-item">
+ <a class="nav-link nav-internal" href="../../../../developer/index.html">
+ Developer
+ </a>
+ </li>
+
+
+ <li class="nav-item">
+ <a class="nav-link nav-internal" href="../../../../release/index.html">
+ Releases
+ </a>
+ </li>
+
+
+ <li class="nav-item">
+ <a class="nav-link nav-external" href="https://networkx.org/nx-guides/">
+ Guides
+ </a>
+ </li>
+
+ </ul>
+</nav>
+ </div>
+
+ </div>
+
+ <div id="navbar-end">
+
+ <div class="navbar-end-item navbar-persistent--container">
+
+<button class="btn btn-sm navbar-btn search-button search-button__button" title="Search" aria-label="Search" data-toggle="tooltip">
+ <i class="fa-solid fa-magnifying-glass"></i>
+</button>
+ </div>
+
+
+ <div class="navbar-end-item">
+ <button class="theme-switch-button btn btn-sm btn-outline-primary navbar-btn rounded-circle" title="light/dark" aria-label="light/dark" data-toggle="tooltip">
+ <span class="theme-switch" data-mode="light"><i class="fa-solid fa-sun"></i></span>
+ <span class="theme-switch" data-mode="dark"><i class="fa-solid fa-moon"></i></span>
+ <span class="theme-switch" data-mode="auto"><i class="fa-solid fa-circle-half-stroke"></i></span>
+</button>
+ </div>
+
+ <div class="navbar-end-item">
+ <ul id="navbar-icon-links" class="navbar-nav" aria-label="Icon Links">
+ <li class="nav-item">
+
+
+
+
+
+
+
+ <a href="https://networkx.org" title="Home Page" class="nav-link" rel="noopener" target="_blank" data-toggle="tooltip"><span><i class="fas fa-home"></i></span>
+ <label class="sr-only">Home Page</label></a>
+ </li>
+ <li class="nav-item">
+
+
+
+
+
+
+
+ <a href="https://github.com/networkx/networkx" title="GitHub" class="nav-link" rel="noopener" target="_blank" data-toggle="tooltip"><span><i class="fab fa-github-square"></i></span>
+ <label class="sr-only">GitHub</label></a>
+ </li>
+ </ul>
+ </div>
+
+ <div class="navbar-end-item">
+ <ul class="navbar-nav">
+ <li class="mr-2 dropdown">
+ <button
+ type="button"
+ class="btn btn-version btn-sm navbar-btn dropdown-toggle"
+ id="dLabelMore"
+ data-toggle="dropdown"
+ >
+ v3.1rc1.dev0
+ <span class="caret"></span>
+ </button>
+ <ul class="dropdown-menu" aria-labelledby="dLabelMore">
+ <li>
+ <a href="https://networkx.org/documentation/latest/index.html"
+ >devel (latest)</a
+ >
+ </li>
+ <li>
+ <a href="https://networkx.org/documentation/stable/index.html"
+ >current (stable)</a
+ >
+ </li>
+ </ul>
+ </li>
+</ul>
+ </div>
+
+ </div>
+ </div>
+
+
+
+
+ <div class="navbar-persistent--mobile">
+<button class="btn btn-sm navbar-btn search-button search-button__button" title="Search" aria-label="Search" data-toggle="tooltip">
+ <i class="fa-solid fa-magnifying-glass"></i>
+</button>
+ </div>
+
+
+
+ <label class="sidebar-toggle secondary-toggle" for="__secondary">
+ <span class="fa-solid fa-outdent"></span>
+ </label>
+
+
+</div>
+ </nav>
+
+
+ <div class="bd-container">
+ <div class="bd-container__inner bd-page-width">
+
+ <div class="bd-sidebar-primary bd-sidebar">
+
+
+ <div class="sidebar-header-items sidebar-primary__section">
+
+
+ <div class="sidebar-header-items__center">
+
+ <div class="navbar-center-item">
+ <nav class="navbar-nav">
+ <p class="sidebar-header-items__title" role="heading" aria-level="1" aria-label="Site Navigation">
+ Site Navigation
+ </p>
+ <ul id="navbar-main-elements" class="navbar-nav">
+
+ <li class="nav-item">
+ <a class="nav-link nav-internal" href="../../../../install.html">
+ Install
+ </a>
+ </li>
+
+
+ <li class="nav-item">
+ <a class="nav-link nav-internal" href="../../../../tutorial.html">
+ Tutorial
+ </a>
+ </li>
+
+
+ <li class="nav-item">
+ <a class="nav-link nav-internal" href="../../../../reference/index.html">
+ Reference
+ </a>
+ </li>
+
+
+ <li class="nav-item">
+ <a class="nav-link nav-internal" href="../../../../auto_examples/index.html">
+ Gallery
+ </a>
+ </li>
+
+
+ <li class="nav-item">
+ <a class="nav-link nav-internal" href="../../../../developer/index.html">
+ Developer
+ </a>
+ </li>
+
+
+ <li class="nav-item">
+ <a class="nav-link nav-internal" href="../../../../release/index.html">
+ Releases
+ </a>
+ </li>
+
+
+ <li class="nav-item">
+ <a class="nav-link nav-external" href="https://networkx.org/nx-guides/">
+ Guides
+ </a>
+ </li>
+
+ </ul>
+</nav>
+ </div>
+
+ </div>
+
+
+
+
+ <div class="sidebar-header-items__end">
+
+ <div class="navbar-end-item">
+ <button class="theme-switch-button btn btn-sm btn-outline-primary navbar-btn rounded-circle" title="light/dark" aria-label="light/dark" data-toggle="tooltip">
+ <span class="theme-switch" data-mode="light"><i class="fa-solid fa-sun"></i></span>
+ <span class="theme-switch" data-mode="dark"><i class="fa-solid fa-moon"></i></span>
+ <span class="theme-switch" data-mode="auto"><i class="fa-solid fa-circle-half-stroke"></i></span>
+</button>
+ </div>
+
+ <div class="navbar-end-item">
+ <ul id="navbar-icon-links" class="navbar-nav" aria-label="Icon Links">
+ <li class="nav-item">
+
+
+
+
+
+
+
+ <a href="https://networkx.org" title="Home Page" class="nav-link" rel="noopener" target="_blank" data-toggle="tooltip"><span><i class="fas fa-home"></i></span>
+ <label class="sr-only">Home Page</label></a>
+ </li>
+ <li class="nav-item">
+
+
+
+
+
+
+
+ <a href="https://github.com/networkx/networkx" title="GitHub" class="nav-link" rel="noopener" target="_blank" data-toggle="tooltip"><span><i class="fab fa-github-square"></i></span>
+ <label class="sr-only">GitHub</label></a>
+ </li>
+ </ul>
+ </div>
+
+ <div class="navbar-end-item">
+ <ul class="navbar-nav">
+ <li class="mr-2 dropdown">
+ <button
+ type="button"
+ class="btn btn-version btn-sm navbar-btn dropdown-toggle"
+ id="dLabelMore"
+ data-toggle="dropdown"
+ >
+ v3.1rc1.dev0
+ <span class="caret"></span>
+ </button>
+ <ul class="dropdown-menu" aria-labelledby="dLabelMore">
+ <li>
+ <a href="https://networkx.org/documentation/latest/index.html"
+ >devel (latest)</a
+ >
+ </li>
+ <li>
+ <a href="https://networkx.org/documentation/stable/index.html"
+ >current (stable)</a
+ >
+ </li>
+ </ul>
+ </li>
+</ul>
+ </div>
+
+ </div>
+
+ </div>
+
+
+ <div class="sidebar-start-items sidebar-primary__section">
+ <div class="sidebar-start-items__item">
+ </div>
+ </div>
+
+
+
+ <div class="sidebar-end-items sidebar-primary__section">
+ <div class="sidebar-end-items__item">
+ </div>
+ </div>
+
+
+ <div id="rtd-footer-container"></div>
+
+ </div>
+ <main id="main-content" class="bd-main">
+
+
+ <div class="bd-content">
+ <div class="bd-article-container">
+
+ <div class="bd-header-article">
+
+ </div>
+
+
+ <article class="bd-article" role="main">
+
+ <h1>Source code for networkx.algorithms.centrality.laplacian</h1><div class="highlight"><pre>
+<span></span><span class="sd">&quot;&quot;&quot;</span>
+<span class="sd">Laplacian centrality measures.</span>
+<span class="sd">&quot;&quot;&quot;</span>
+<span class="kn">import</span> <span class="nn">networkx</span> <span class="k">as</span> <span class="nn">nx</span>
+
+<span class="n">__all__</span> <span class="o">=</span> <span class="p">[</span><span class="s2">&quot;laplacian_centrality&quot;</span><span class="p">]</span>
+
+
+<div class="viewcode-block" id="laplacian_centrality"><a class="viewcode-back" href="../../../../reference/algorithms/generated/networkx.algorithms.centrality.laplacian_centrality.html#networkx.algorithms.centrality.laplacian_centrality">[docs]</a><span class="k">def</span> <span class="nf">laplacian_centrality</span><span class="p">(</span>
+ <span class="n">G</span><span class="p">,</span> <span class="n">normalized</span><span class="o">=</span><span class="kc">True</span><span class="p">,</span> <span class="n">nodelist</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span> <span class="n">weight</span><span class="o">=</span><span class="s2">&quot;weight&quot;</span><span class="p">,</span> <span class="n">walk_type</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span> <span class="n">alpha</span><span class="o">=</span><span class="mf">0.95</span>
+<span class="p">):</span>
+<span class="w"> </span><span class="sa">r</span><span class="sd">&quot;&quot;&quot;Compute the Laplacian centrality for nodes in the graph `G`.</span>
+
+<span class="sd"> The Laplacian Centrality of a node ``i`` is measured by the drop in the</span>
+<span class="sd"> Laplacian Energy after deleting node ``i`` from the graph. The Laplacian Energy</span>
+<span class="sd"> is the sum of the squared eigenvalues of a graph&#39;s Laplacian matrix.</span>
+
+<span class="sd"> .. math::</span>
+
+<span class="sd"> C_L(u_i,G) = \frac{(\Delta E)_i}{E_L (G)} = \frac{E_L (G)-E_L (G_i)}{E_L (G)}</span>
+
+<span class="sd"> E_L (G) = \sum_{i=0}^n \lambda_i^2</span>
+
+<span class="sd"> Where $E_L (G)$ is the Laplacian energy of graph `G`,</span>
+<span class="sd"> E_L (G_i) is the Laplacian energy of graph `G` after deleting node ``i``</span>
+<span class="sd"> and $\lambda_i$ are the eigenvalues of `G`&#39;s Laplacian matrix.</span>
+<span class="sd"> This formula shows the normalized value. Without normalization,</span>
+<span class="sd"> the numerator on the right side is returned.</span>
+
+<span class="sd"> Parameters</span>
+<span class="sd"> ----------</span>
+<span class="sd"> G : graph</span>
+<span class="sd"> A networkx graph</span>
+
+<span class="sd"> normalized : bool (default = True)</span>
+<span class="sd"> If True the centrality score is scaled so the sum over all nodes is 1.</span>
+<span class="sd"> If False the centrality score for each node is the drop in Laplacian</span>
+<span class="sd"> energy when that node is removed.</span>
+
+<span class="sd"> nodelist : list, optional (default = None)</span>
+<span class="sd"> The rows and columns are ordered according to the nodes in nodelist.</span>
+<span class="sd"> If nodelist is None, then the ordering is produced by G.nodes().</span>
+
+<span class="sd"> weight: string or None, optional (default=`weight`)</span>
+<span class="sd"> Optional parameter `weight` to compute the Laplacian matrix.</span>
+<span class="sd"> The edge data key used to compute each value in the matrix.</span>
+<span class="sd"> If None, then each edge has weight 1.</span>
+
+<span class="sd"> walk_type : string or None, optional (default=None)</span>
+<span class="sd"> Optional parameter `walk_type` used when calling</span>
+<span class="sd"> :func:`directed_laplacian_matrix &lt;networkx.directed_laplacian_matrix&gt;`.</span>
+<span class="sd"> If None, the transition matrix is selected depending on the properties</span>
+<span class="sd"> of the graph. Otherwise can be `random`, `lazy`, or `pagerank`.</span>
+
+<span class="sd"> alpha : real (default = 0.95)</span>
+<span class="sd"> Optional parameter `alpha` used when calling</span>
+<span class="sd"> :func:`directed_laplacian_matrix &lt;networkx.directed_laplacian_matrix&gt;`.</span>
+<span class="sd"> (1 - alpha) is the teleportation probability used with pagerank.</span>
+
+<span class="sd"> Returns</span>
+<span class="sd"> -------</span>
+<span class="sd"> nodes : dictionary</span>
+<span class="sd"> Dictionary of nodes with Laplacian centrality as the value.</span>
+
+<span class="sd"> Examples</span>
+<span class="sd"> --------</span>
+<span class="sd"> &gt;&gt;&gt; G = nx.Graph()</span>
+<span class="sd"> &gt;&gt;&gt; edges = [(0, 1, 4), (0, 2, 2), (2, 1, 1), (1, 3, 2), (1, 4, 2), (4, 5, 1)]</span>
+<span class="sd"> &gt;&gt;&gt; G.add_weighted_edges_from(edges)</span>
+<span class="sd"> &gt;&gt;&gt; sorted((v, f&quot;{c:0.2f}&quot;) for v, c in laplacian_centrality(G).items())</span>
+<span class="sd"> [(0, &#39;0.70&#39;), (1, &#39;0.90&#39;), (2, &#39;0.28&#39;), (3, &#39;0.22&#39;), (4, &#39;0.26&#39;), (5, &#39;0.04&#39;)]</span>
+
+<span class="sd"> Notes</span>
+<span class="sd"> -----</span>
+<span class="sd"> The algorithm is implemented based on [1]_ with an extension to directed graphs</span>
+<span class="sd"> using the ``directed_laplacian_matrix`` function.</span>
+
+<span class="sd"> Raises</span>
+<span class="sd"> ------</span>
+<span class="sd"> NetworkXPointlessConcept</span>
+<span class="sd"> If the graph `G` is the null graph.</span>
+
+<span class="sd"> References</span>
+<span class="sd"> ----------</span>
+<span class="sd"> .. [1] Qi, X., Fuller, E., Wu, Q., Wu, Y., and Zhang, C.-Q. (2012).</span>
+<span class="sd"> Laplacian centrality: A new centrality measure for weighted networks.</span>
+<span class="sd"> Information Sciences, 194:240-253.</span>
+<span class="sd"> https://math.wvu.edu/~cqzhang/Publication-files/my-paper/INS-2012-Laplacian-W.pdf</span>
+
+<span class="sd"> See Also</span>
+<span class="sd"> --------</span>
+<span class="sd"> directed_laplacian_matrix</span>
+<span class="sd"> laplacian_matrix</span>
+<span class="sd"> &quot;&quot;&quot;</span>
+ <span class="kn">import</span> <span class="nn">numpy</span> <span class="k">as</span> <span class="nn">np</span>
+ <span class="kn">import</span> <span class="nn">scipy</span> <span class="k">as</span> <span class="nn">sp</span>
+ <span class="kn">import</span> <span class="nn">scipy.linalg</span> <span class="c1"># call as sp.linalg</span>
+
+ <span class="k">if</span> <span class="nb">len</span><span class="p">(</span><span class="n">G</span><span class="p">)</span> <span class="o">==</span> <span class="mi">0</span><span class="p">:</span>
+ <span class="k">raise</span> <span class="n">nx</span><span class="o">.</span><span class="n">NetworkXPointlessConcept</span><span class="p">(</span><span class="s2">&quot;null graph has no centrality defined&quot;</span><span class="p">)</span>
+
+ <span class="k">if</span> <span class="n">nodelist</span> <span class="o">!=</span> <span class="kc">None</span><span class="p">:</span>
+ <span class="n">nodeset</span> <span class="o">=</span> <span class="nb">set</span><span class="p">(</span><span class="n">G</span><span class="o">.</span><span class="n">nbunch_iter</span><span class="p">(</span><span class="n">nodelist</span><span class="p">))</span>
+ <span class="k">if</span> <span class="nb">len</span><span class="p">(</span><span class="n">nodeset</span><span class="p">)</span> <span class="o">!=</span> <span class="nb">len</span><span class="p">(</span><span class="n">nodelist</span><span class="p">):</span>
+ <span class="k">raise</span> <span class="n">nx</span><span class="o">.</span><span class="n">NetworkXError</span><span class="p">(</span><span class="s2">&quot;nodelist has duplicate nodes or nodes not in G&quot;</span><span class="p">)</span>
+ <span class="n">nodes</span> <span class="o">=</span> <span class="n">nodelist</span> <span class="o">+</span> <span class="p">[</span><span class="n">n</span> <span class="k">for</span> <span class="n">n</span> <span class="ow">in</span> <span class="n">G</span> <span class="k">if</span> <span class="n">n</span> <span class="ow">not</span> <span class="ow">in</span> <span class="n">nodeset</span><span class="p">]</span>
+ <span class="k">else</span><span class="p">:</span>
+ <span class="n">nodelist</span> <span class="o">=</span> <span class="n">nodes</span> <span class="o">=</span> <span class="nb">list</span><span class="p">(</span><span class="n">G</span><span class="p">)</span>
+
+ <span class="k">if</span> <span class="n">G</span><span class="o">.</span><span class="n">is_directed</span><span class="p">():</span>
+ <span class="n">lap_matrix</span> <span class="o">=</span> <span class="n">nx</span><span class="o">.</span><span class="n">directed_laplacian_matrix</span><span class="p">(</span><span class="n">G</span><span class="p">,</span> <span class="n">nodes</span><span class="p">,</span> <span class="n">weight</span><span class="p">,</span> <span class="n">walk_type</span><span class="p">,</span> <span class="n">alpha</span><span class="p">)</span>
+ <span class="k">else</span><span class="p">:</span>
+ <span class="n">lap_matrix</span> <span class="o">=</span> <span class="n">nx</span><span class="o">.</span><span class="n">laplacian_matrix</span><span class="p">(</span><span class="n">G</span><span class="p">,</span> <span class="n">nodes</span><span class="p">,</span> <span class="n">weight</span><span class="p">)</span><span class="o">.</span><span class="n">toarray</span><span class="p">()</span>
+
+ <span class="n">full_energy</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">power</span><span class="p">(</span><span class="n">sp</span><span class="o">.</span><span class="n">linalg</span><span class="o">.</span><span class="n">eigh</span><span class="p">(</span><span class="n">lap_matrix</span><span class="p">,</span> <span class="n">eigvals_only</span><span class="o">=</span><span class="kc">True</span><span class="p">),</span> <span class="mi">2</span><span class="p">)</span><span class="o">.</span><span class="n">sum</span><span class="p">()</span>
+
+ <span class="c1"># calculate laplacian centrality</span>
+ <span class="n">laplace_centralities_dict</span> <span class="o">=</span> <span class="p">{}</span>
+ <span class="k">for</span> <span class="n">i</span><span class="p">,</span> <span class="n">node</span> <span class="ow">in</span> <span class="nb">enumerate</span><span class="p">(</span><span class="n">nodelist</span><span class="p">):</span>
+ <span class="c1"># remove row and col i from lap_matrix</span>
+ <span class="n">all_but_i</span> <span class="o">=</span> <span class="nb">list</span><span class="p">(</span><span class="n">np</span><span class="o">.</span><span class="n">arange</span><span class="p">(</span><span class="n">lap_matrix</span><span class="o">.</span><span class="n">shape</span><span class="p">[</span><span class="mi">0</span><span class="p">]))</span>
+ <span class="n">all_but_i</span><span class="o">.</span><span class="n">remove</span><span class="p">(</span><span class="n">i</span><span class="p">)</span>
+ <span class="n">A_2</span> <span class="o">=</span> <span class="n">lap_matrix</span><span class="p">[</span><span class="n">all_but_i</span><span class="p">,</span> <span class="p">:][:,</span> <span class="n">all_but_i</span><span class="p">]</span>
+
+ <span class="c1"># Adjust diagonal for removed row</span>
+ <span class="n">new_diag</span> <span class="o">=</span> <span class="n">lap_matrix</span><span class="o">.</span><span class="n">diagonal</span><span class="p">()</span> <span class="o">-</span> <span class="nb">abs</span><span class="p">(</span><span class="n">lap_matrix</span><span class="p">[:,</span> <span class="n">i</span><span class="p">])</span>
+ <span class="n">np</span><span class="o">.</span><span class="n">fill_diagonal</span><span class="p">(</span><span class="n">A_2</span><span class="p">,</span> <span class="n">new_diag</span><span class="p">[</span><span class="n">all_but_i</span><span class="p">])</span>
+
+ <span class="n">new_energy</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">power</span><span class="p">(</span><span class="n">sp</span><span class="o">.</span><span class="n">linalg</span><span class="o">.</span><span class="n">eigh</span><span class="p">(</span><span class="n">A_2</span><span class="p">,</span> <span class="n">eigvals_only</span><span class="o">=</span><span class="kc">True</span><span class="p">),</span> <span class="mi">2</span><span class="p">)</span><span class="o">.</span><span class="n">sum</span><span class="p">()</span>
+ <span class="n">lapl_cent</span> <span class="o">=</span> <span class="n">full_energy</span> <span class="o">-</span> <span class="n">new_energy</span>
+ <span class="k">if</span> <span class="n">normalized</span><span class="p">:</span>
+ <span class="n">lapl_cent</span> <span class="o">=</span> <span class="n">lapl_cent</span> <span class="o">/</span> <span class="n">full_energy</span>
+
+ <span class="n">laplace_centralities_dict</span><span class="p">[</span><span class="n">node</span><span class="p">]</span> <span class="o">=</span> <span class="n">lapl_cent</span>
+
+ <span class="k">return</span> <span class="n">laplace_centralities_dict</span></div>
+</pre></div>
+
+ </article>
+
+
+
+ </div>
+
+
+
+ <div class="bd-sidebar-secondary bd-toc">
+
+<div class="toc-item">
+
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
+</div>
+
+<div class="toc-item">
+
+</div>
+
+ </div>
+
+
+ </div>
+ <footer class="bd-footer-content">
+ <div class="bd-footer-content__inner">
+
+ </div>
+ </footer>
+
+ </main>
+ </div>
+ </div>
+
+
+
+ <!-- Scripts loaded after <body> so the DOM is not blocked -->
+ <script src="../../../../_static/scripts/bootstrap.js?digest=796348d33e8b1d947c94"></script>
+<script src="../../../../_static/scripts/pydata-sphinx-theme.js?digest=796348d33e8b1d947c94"></script>
+
+ <footer class="bd-footer"><div class="bd-footer__inner container">
+
+ <div class="footer-item">
+
+<p class="copyright">
+
+ &copy; Copyright 2004-2023, NetworkX Developers.<br>
+
+</p>
+
+ </div>
+
+ <div class="footer-item">
+ <p class="theme-version">
+ Built with the
+ <a href="https://pydata-sphinx-theme.readthedocs.io/en/stable/index.html">
+ PyData Sphinx Theme
+ </a>
+ 0.12.0.
+</p>
+ </div>
+
+ <div class="footer-item">
+
+<p class="sphinx-version">
+Created using <a href="http://sphinx-doc.org/">Sphinx</a> 5.2.3.<br>
+</p>
+
+ </div>
+
+</div>
+ </footer>
+ </body>
+</html> \ No newline at end of file
diff --git a/_modules/networkx/algorithms/centrality/load.html b/_modules/networkx/algorithms/centrality/load.html
index 50ba5326..3d837f03 100644
--- a/_modules/networkx/algorithms/centrality/load.html
+++ b/_modules/networkx/algorithms/centrality/load.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.centrality.load &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.centrality.load &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/centrality/load';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/centrality/load.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -672,11 +684,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/centrality/percolation.html b/_modules/networkx/algorithms/centrality/percolation.html
index 6f084a9b..6802479a 100644
--- a/_modules/networkx/algorithms/centrality/percolation.html
+++ b/_modules/networkx/algorithms/centrality/percolation.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.centrality.percolation &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.centrality.percolation &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/centrality/percolation';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/centrality/percolation.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -525,7 +537,7 @@
<span class="sd"> -----</span>
<span class="sd"> The algorithm is from Mahendra Piraveenan, Mikhail Prokopenko, and</span>
<span class="sd"> Liaquat Hossain [1]_</span>
-<span class="sd"> Pair dependecies are calculated and accumulated using [2]_</span>
+<span class="sd"> Pair dependencies are calculated and accumulated using [2]_</span>
<span class="sd"> For weighted graphs the edge weights must be greater than zero.</span>
<span class="sd"> Zero edge weights can produce an infinite number of equal length</span>
@@ -599,11 +611,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/centrality/reaching.html b/_modules/networkx/algorithms/centrality/reaching.html
index 382c159a..35f03a30 100644
--- a/_modules/networkx/algorithms/centrality/reaching.html
+++ b/_modules/networkx/algorithms/centrality/reaching.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.centrality.reaching &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.centrality.reaching &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/centrality/reaching';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/centrality/reaching.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -679,11 +691,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/centrality/second_order.html b/_modules/networkx/algorithms/centrality/second_order.html
index 175c0eed..a62c2e9f 100644
--- a/_modules/networkx/algorithms/centrality/second_order.html
+++ b/_modules/networkx/algorithms/centrality/second_order.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.centrality.second_order &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.centrality.second_order &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/centrality/second_order';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/centrality/second_order.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -608,11 +620,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/centrality/subgraph_alg.html b/_modules/networkx/algorithms/centrality/subgraph_alg.html
index dbf1aed1..0ec85dbf 100644
--- a/_modules/networkx/algorithms/centrality/subgraph_alg.html
+++ b/_modules/networkx/algorithms/centrality/subgraph_alg.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.centrality.subgraph_alg &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.centrality.subgraph_alg &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/centrality/subgraph_alg';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/centrality/subgraph_alg.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -813,11 +825,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/centrality/trophic.html b/_modules/networkx/algorithms/centrality/trophic.html
index 257a3141..86c075e8 100644
--- a/_modules/networkx/algorithms/centrality/trophic.html
+++ b/_modules/networkx/algorithms/centrality/trophic.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.centrality.trophic &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.centrality.trophic &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/centrality/trophic';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/centrality/trophic.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -634,11 +646,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/centrality/voterank_alg.html b/_modules/networkx/algorithms/centrality/voterank_alg.html
index dd8f0c2f..4e4d9f6a 100644
--- a/_modules/networkx/algorithms/centrality/voterank_alg.html
+++ b/_modules/networkx/algorithms/centrality/voterank_alg.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.centrality.voterank_alg &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.centrality.voterank_alg &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/centrality/voterank_alg';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/centrality/voterank_alg.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -567,11 +579,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/chains.html b/_modules/networkx/algorithms/chains.html
index 29396974..43c7f25a 100644
--- a/_modules/networkx/algorithms/chains.html
+++ b/_modules/networkx/algorithms/chains.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.chains &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.chains &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/chains';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/chains.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -646,11 +658,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/chordal.html b/_modules/networkx/algorithms/chordal.html
index f8f39247..47ca3460 100644
--- a/_modules/networkx/algorithms/chordal.html
+++ b/_modules/networkx/algorithms/chordal.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.chordal &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.chordal &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/chordal';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/chordal.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -904,11 +916,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/clique.html b/_modules/networkx/algorithms/clique.html
index 5e97ead2..6f2bf732 100644
--- a/_modules/networkx/algorithms/clique.html
+++ b/_modules/networkx/algorithms/clique.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.clique &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.clique &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/clique';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/clique.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -600,6 +612,67 @@
<span class="sd"> ValueError</span>
<span class="sd"> If `nodes` is not a clique.</span>
+<span class="sd"> Examples</span>
+<span class="sd"> --------</span>
+<span class="sd"> &gt;&gt;&gt; from pprint import pprint # For nice dict formatting</span>
+<span class="sd"> &gt;&gt;&gt; G = nx.karate_club_graph()</span>
+<span class="sd"> &gt;&gt;&gt; sum(1 for c in nx.find_cliques(G)) # The number of maximal cliques in G</span>
+<span class="sd"> 36</span>
+<span class="sd"> &gt;&gt;&gt; max(nx.find_cliques(G), key=len) # The largest maximal clique in G</span>
+<span class="sd"> [0, 1, 2, 3, 13]</span>
+
+<span class="sd"> The size of the largest maximal clique is known as the *clique number* of</span>
+<span class="sd"> the graph, which can be found directly with:</span>
+
+<span class="sd"> &gt;&gt;&gt; max(len(c) for c in nx.find_cliques(G))</span>
+<span class="sd"> 5</span>
+
+<span class="sd"> One can also compute the number of maximal cliques in `G` that contain a given</span>
+<span class="sd"> node. The following produces a dictionary keyed by node whose</span>
+<span class="sd"> values are the number of maximal cliques in `G` that contain the node:</span>
+
+<span class="sd"> &gt;&gt;&gt; pprint({n: sum(1 for c in nx.find_cliques(G) if n in c) for n in G})</span>
+<span class="sd"> {0: 13,</span>
+<span class="sd"> 1: 6,</span>
+<span class="sd"> 2: 7,</span>
+<span class="sd"> 3: 3,</span>
+<span class="sd"> 4: 2,</span>
+<span class="sd"> 5: 3,</span>
+<span class="sd"> 6: 3,</span>
+<span class="sd"> 7: 1,</span>
+<span class="sd"> 8: 3,</span>
+<span class="sd"> 9: 2,</span>
+<span class="sd"> 10: 2,</span>
+<span class="sd"> 11: 1,</span>
+<span class="sd"> 12: 1,</span>
+<span class="sd"> 13: 2,</span>
+<span class="sd"> 14: 1,</span>
+<span class="sd"> 15: 1,</span>
+<span class="sd"> 16: 1,</span>
+<span class="sd"> 17: 1,</span>
+<span class="sd"> 18: 1,</span>
+<span class="sd"> 19: 2,</span>
+<span class="sd"> 20: 1,</span>
+<span class="sd"> 21: 1,</span>
+<span class="sd"> 22: 1,</span>
+<span class="sd"> 23: 3,</span>
+<span class="sd"> 24: 2,</span>
+<span class="sd"> 25: 2,</span>
+<span class="sd"> 26: 1,</span>
+<span class="sd"> 27: 3,</span>
+<span class="sd"> 28: 2,</span>
+<span class="sd"> 29: 2,</span>
+<span class="sd"> 30: 2,</span>
+<span class="sd"> 31: 4,</span>
+<span class="sd"> 32: 9,</span>
+<span class="sd"> 33: 14}</span>
+
+<span class="sd"> Or, similarly, the maximal cliques in `G` that contain a given node.</span>
+<span class="sd"> For example, the 4 maximal cliques that contain node 31:</span>
+
+<span class="sd"> &gt;&gt;&gt; [c for c in nx.find_cliques(G) if 31 in c]</span>
+<span class="sd"> [[0, 31], [33, 32, 31], [33, 28, 31], [24, 25, 31]]</span>
+
<span class="sd"> See Also</span>
<span class="sd"> --------</span>
<span class="sd"> find_cliques_recursive</span>
@@ -737,7 +810,7 @@
<span class="sd"> See Also</span>
<span class="sd"> --------</span>
<span class="sd"> find_cliques</span>
-<span class="sd"> An iterative version of the same algorithm.</span>
+<span class="sd"> An iterative version of the same algorithm. See docstring for examples.</span>
<span class="sd"> Notes</span>
<span class="sd"> -----</span>
@@ -914,6 +987,14 @@
<span class="sd"> The *clique number* of a graph is the size of the largest clique in</span>
<span class="sd"> the graph.</span>
+<span class="sd"> .. deprecated:: 3.0</span>
+
+<span class="sd"> graph_clique_number is deprecated in NetworkX 3.0 and will be removed</span>
+<span class="sd"> in v3.2. The graph clique number can be computed directly with::</span>
+
+<span class="sd"> max(len(c) for c in nx.find_cliques(G))</span>
+
+
<span class="sd"> Parameters</span>
<span class="sd"> ----------</span>
<span class="sd"> G : NetworkX graph</span>
@@ -936,6 +1017,16 @@
<span class="sd"> maximal cliques.</span>
<span class="sd"> &quot;&quot;&quot;</span>
+ <span class="kn">import</span> <span class="nn">warnings</span>
+
+ <span class="n">warnings</span><span class="o">.</span><span class="n">warn</span><span class="p">(</span>
+ <span class="p">(</span>
+ <span class="s2">&quot;</span><span class="se">\n\n</span><span class="s2">graph_clique_number is deprecated and will be removed.</span><span class="se">\n</span><span class="s2">&quot;</span>
+ <span class="s2">&quot;Use: ``max(len(c) for c in nx.find_cliques(G))`` instead.&quot;</span>
+ <span class="p">),</span>
+ <span class="ne">DeprecationWarning</span><span class="p">,</span>
+ <span class="n">stacklevel</span><span class="o">=</span><span class="mi">2</span><span class="p">,</span>
+ <span class="p">)</span>
<span class="k">if</span> <span class="nb">len</span><span class="p">(</span><span class="n">G</span><span class="o">.</span><span class="n">nodes</span><span class="p">)</span> <span class="o">&lt;</span> <span class="mi">1</span><span class="p">:</span>
<span class="k">return</span> <span class="mi">0</span>
<span class="k">if</span> <span class="n">cliques</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
@@ -946,6 +1037,13 @@
<div class="viewcode-block" id="graph_number_of_cliques"><a class="viewcode-back" href="../../../reference/algorithms/generated/networkx.algorithms.clique.graph_number_of_cliques.html#networkx.algorithms.clique.graph_number_of_cliques">[docs]</a><span class="k">def</span> <span class="nf">graph_number_of_cliques</span><span class="p">(</span><span class="n">G</span><span class="p">,</span> <span class="n">cliques</span><span class="o">=</span><span class="kc">None</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Returns the number of maximal cliques in the graph.</span>
+<span class="sd"> .. deprecated:: 3.0</span>
+
+<span class="sd"> graph_number_of_cliques is deprecated and will be removed in v3.2.</span>
+<span class="sd"> The number of maximal cliques can be computed directly with::</span>
+
+<span class="sd"> sum(1 for _ in nx.find_cliques(G))</span>
+
<span class="sd"> Parameters</span>
<span class="sd"> ----------</span>
<span class="sd"> G : NetworkX graph</span>
@@ -968,6 +1066,16 @@
<span class="sd"> maximal cliques.</span>
<span class="sd"> &quot;&quot;&quot;</span>
+ <span class="kn">import</span> <span class="nn">warnings</span>
+
+ <span class="n">warnings</span><span class="o">.</span><span class="n">warn</span><span class="p">(</span>
+ <span class="p">(</span>
+ <span class="s2">&quot;</span><span class="se">\n\n</span><span class="s2">graph_number_of_cliques is deprecated and will be removed.</span><span class="se">\n</span><span class="s2">&quot;</span>
+ <span class="s2">&quot;Use: ``sum(1 for _ in nx.find_cliques(G))`` instead.&quot;</span>
+ <span class="p">),</span>
+ <span class="ne">DeprecationWarning</span><span class="p">,</span>
+ <span class="n">stacklevel</span><span class="o">=</span><span class="mi">2</span><span class="p">,</span>
+ <span class="p">)</span>
<span class="k">if</span> <span class="n">cliques</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
<span class="n">cliques</span> <span class="o">=</span> <span class="nb">list</span><span class="p">(</span><span class="n">find_cliques</span><span class="p">(</span><span class="n">G</span><span class="p">))</span>
<span class="k">return</span> <span class="nb">len</span><span class="p">(</span><span class="n">cliques</span><span class="p">)</span></div>
@@ -1039,9 +1147,29 @@
<div class="viewcode-block" id="number_of_cliques"><a class="viewcode-back" href="../../../reference/algorithms/generated/networkx.algorithms.clique.number_of_cliques.html#networkx.algorithms.clique.number_of_cliques">[docs]</a><span class="k">def</span> <span class="nf">number_of_cliques</span><span class="p">(</span><span class="n">G</span><span class="p">,</span> <span class="n">nodes</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span> <span class="n">cliques</span><span class="o">=</span><span class="kc">None</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Returns the number of maximal cliques for each node.</span>
+<span class="sd"> .. deprecated:: 3.0</span>
+
+<span class="sd"> number_of_cliques is deprecated and will be removed in v3.2.</span>
+<span class="sd"> Use the result of `find_cliques` directly to compute the number of</span>
+<span class="sd"> cliques containing each node::</span>
+
+<span class="sd"> {n: sum(1 for c in nx.find_cliques(G) if n in c) for n in G}</span>
+
<span class="sd"> Returns a single or list depending on input nodes.</span>
<span class="sd"> Optional list of cliques can be input if already computed.</span>
<span class="sd"> &quot;&quot;&quot;</span>
+ <span class="kn">import</span> <span class="nn">warnings</span>
+
+ <span class="n">warnings</span><span class="o">.</span><span class="n">warn</span><span class="p">(</span>
+ <span class="p">(</span>
+ <span class="s2">&quot;</span><span class="se">\n\n</span><span class="s2">number_of_cliques is deprecated and will be removed.</span><span class="se">\n</span><span class="s2">&quot;</span>
+ <span class="s2">&quot;Use the result of find_cliques directly to compute the number</span><span class="se">\n</span><span class="s2">&quot;</span>
+ <span class="s2">&quot;of cliques containing each node:</span><span class="se">\n\n</span><span class="s2">&quot;</span>
+ <span class="s2">&quot; {n: sum(1 for c in nx.find_cliques(G) if n in c) for n in G}</span><span class="se">\n\n</span><span class="s2">&quot;</span>
+ <span class="p">),</span>
+ <span class="ne">DeprecationWarning</span><span class="p">,</span>
+ <span class="n">stacklevel</span><span class="o">=</span><span class="mi">2</span><span class="p">,</span>
+ <span class="p">)</span>
<span class="k">if</span> <span class="n">cliques</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
<span class="n">cliques</span> <span class="o">=</span> <span class="nb">list</span><span class="p">(</span><span class="n">find_cliques</span><span class="p">(</span><span class="n">G</span><span class="p">))</span>
@@ -1062,9 +1190,29 @@
<div class="viewcode-block" id="cliques_containing_node"><a class="viewcode-back" href="../../../reference/algorithms/generated/networkx.algorithms.clique.cliques_containing_node.html#networkx.algorithms.clique.cliques_containing_node">[docs]</a><span class="k">def</span> <span class="nf">cliques_containing_node</span><span class="p">(</span><span class="n">G</span><span class="p">,</span> <span class="n">nodes</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span> <span class="n">cliques</span><span class="o">=</span><span class="kc">None</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Returns a list of cliques containing the given node.</span>
+<span class="sd"> .. deprecated:: 3.0</span>
+
+<span class="sd"> cliques_containing_node is deprecated and will be removed in 3.2.</span>
+<span class="sd"> Use the result of `find_cliques` directly to compute the cliques that</span>
+<span class="sd"> contain each node::</span>
+
+<span class="sd"> {n: [c for c in nx.find_cliques(G) if n in c] for n in G}</span>
+
<span class="sd"> Returns a single list or list of lists depending on input nodes.</span>
<span class="sd"> Optional list of cliques can be input if already computed.</span>
<span class="sd"> &quot;&quot;&quot;</span>
+ <span class="kn">import</span> <span class="nn">warnings</span>
+
+ <span class="n">warnings</span><span class="o">.</span><span class="n">warn</span><span class="p">(</span>
+ <span class="p">(</span>
+ <span class="s2">&quot;</span><span class="se">\n\n</span><span class="s2">cliques_containing_node is deprecated and will be removed.</span><span class="se">\n</span><span class="s2">&quot;</span>
+ <span class="s2">&quot;Use the result of find_cliques directly to compute maximal cliques</span><span class="se">\n</span><span class="s2">&quot;</span>
+ <span class="s2">&quot;containing each node:</span><span class="se">\n\n</span><span class="s2">&quot;</span>
+ <span class="s2">&quot; {n: [c for c in nx.find_cliques(G) if n in c] for n in G}</span><span class="se">\n\n</span><span class="s2">&quot;</span>
+ <span class="p">),</span>
+ <span class="ne">DeprecationWarning</span><span class="p">,</span>
+ <span class="n">stacklevel</span><span class="o">=</span><span class="mi">2</span><span class="p">,</span>
+ <span class="p">)</span>
<span class="k">if</span> <span class="n">cliques</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
<span class="n">cliques</span> <span class="o">=</span> <span class="nb">list</span><span class="p">(</span><span class="n">find_cliques</span><span class="p">(</span><span class="n">G</span><span class="p">))</span>
@@ -1251,11 +1399,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/cluster.html b/_modules/networkx/algorithms/cluster.html
index cf2fed2b..ab23f601 100644
--- a/_modules/networkx/algorithms/cluster.html
+++ b/_modules/networkx/algorithms/cluster.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.cluster &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.cluster &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/cluster';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/cluster.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -779,8 +791,7 @@
<span class="sd"> .. math::</span>
-<span class="sd"> c_u = \frac{2}{deg^{tot}(u)(deg^{tot}(u)-1) - 2deg^{\leftrightarrow}(u)}</span>
-<span class="sd"> T(u),</span>
+<span class="sd"> c_u = \frac{T(u)}{2(deg^{tot}(u)(deg^{tot}(u)-1) - 2deg^{\leftrightarrow}(u))},</span>
<span class="sd"> where :math:`T(u)` is the number of directed triangles through node</span>
<span class="sd"> :math:`u`, :math:`deg^{tot}(u)` is the sum of in degree and out degree of</span>
@@ -792,8 +803,10 @@
<span class="sd"> ----------</span>
<span class="sd"> G : graph</span>
-<span class="sd"> nodes : container of nodes, optional (default=all nodes in G)</span>
-<span class="sd"> Compute clustering for nodes in this container.</span>
+<span class="sd"> nodes : node, iterable of nodes, or None (default=None)</span>
+<span class="sd"> If a singleton node, return the number of triangles for that node.</span>
+<span class="sd"> If an iterable, compute the number of triangles for each of those nodes.</span>
+<span class="sd"> If `None` (the default) compute the number of triangles for all nodes in `G`.</span>
<span class="sd"> weight : string or None, optional (default=None)</span>
<span class="sd"> The edge attribute that holds the numerical value used as a weight.</span>
@@ -1016,7 +1029,7 @@
<span class="sd"> Notes</span>
<span class="sd"> -----</span>
-<span class="sd"> In a network of N nodes, the highest triangle multiplicty an edge can have</span>
+<span class="sd"> In a network of N nodes, the highest triangle multiplicity an edge can have</span>
<span class="sd"> is N-2.</span>
<span class="sd"> The return value does not include a `zero` entry if no edges of a</span>
@@ -1050,11 +1063,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/coloring/equitable_coloring.html b/_modules/networkx/algorithms/coloring/equitable_coloring.html
index a5c4df25..99a6cdbd 100644
--- a/_modules/networkx/algorithms/coloring/equitable_coloring.html
+++ b/_modules/networkx/algorithms/coloring/equitable_coloring.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.coloring.equitable_coloring &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.coloring.equitable_coloring &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/coloring/equitable_coloring';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/coloring/equitable_coloring.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -475,10 +487,7 @@
<span class="k">def</span> <span class="nf">is_coloring</span><span class="p">(</span><span class="n">G</span><span class="p">,</span> <span class="n">coloring</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Determine if the coloring is a valid coloring for the graph G.&quot;&quot;&quot;</span>
<span class="c1"># Verify that the coloring is valid.</span>
- <span class="k">for</span> <span class="p">(</span><span class="n">s</span><span class="p">,</span> <span class="n">d</span><span class="p">)</span> <span class="ow">in</span> <span class="n">G</span><span class="o">.</span><span class="n">edges</span><span class="p">:</span>
- <span class="k">if</span> <span class="n">coloring</span><span class="p">[</span><span class="n">s</span><span class="p">]</span> <span class="o">==</span> <span class="n">coloring</span><span class="p">[</span><span class="n">d</span><span class="p">]:</span>
- <span class="k">return</span> <span class="kc">False</span>
- <span class="k">return</span> <span class="kc">True</span>
+ <span class="k">return</span> <span class="nb">all</span><span class="p">(</span><span class="n">coloring</span><span class="p">[</span><span class="n">s</span><span class="p">]</span> <span class="o">!=</span> <span class="n">coloring</span><span class="p">[</span><span class="n">d</span><span class="p">]</span> <span class="k">for</span> <span class="n">s</span><span class="p">,</span> <span class="n">d</span> <span class="ow">in</span> <span class="n">G</span><span class="o">.</span><span class="n">edges</span><span class="p">)</span>
<span class="k">def</span> <span class="nf">is_equitable</span><span class="p">(</span><span class="n">G</span><span class="p">,</span> <span class="n">coloring</span><span class="p">,</span> <span class="n">num_colors</span><span class="o">=</span><span class="kc">None</span><span class="p">):</span>
@@ -512,7 +521,7 @@
<span class="k">def</span> <span class="nf">make_C_from_F</span><span class="p">(</span><span class="n">F</span><span class="p">):</span>
- <span class="n">C</span> <span class="o">=</span> <span class="n">defaultdict</span><span class="p">(</span><span class="k">lambda</span><span class="p">:</span> <span class="p">[])</span>
+ <span class="n">C</span> <span class="o">=</span> <span class="n">defaultdict</span><span class="p">(</span><span class="nb">list</span><span class="p">)</span>
<span class="k">for</span> <span class="n">node</span><span class="p">,</span> <span class="n">color</span> <span class="ow">in</span> <span class="n">F</span><span class="o">.</span><span class="n">items</span><span class="p">():</span>
<span class="n">C</span><span class="p">[</span><span class="n">color</span><span class="p">]</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">node</span><span class="p">)</span>
@@ -531,9 +540,7 @@
<span class="k">def</span> <span class="nf">make_H_from_C_N</span><span class="p">(</span><span class="n">C</span><span class="p">,</span> <span class="n">N</span><span class="p">):</span>
<span class="k">return</span> <span class="p">{</span>
- <span class="p">(</span><span class="n">c1</span><span class="p">,</span> <span class="n">c2</span><span class="p">):</span> <span class="nb">sum</span><span class="p">(</span><span class="mi">1</span> <span class="k">for</span> <span class="n">node</span> <span class="ow">in</span> <span class="n">C</span><span class="p">[</span><span class="n">c1</span><span class="p">]</span> <span class="k">if</span> <span class="n">N</span><span class="p">[(</span><span class="n">node</span><span class="p">,</span> <span class="n">c2</span><span class="p">)]</span> <span class="o">==</span> <span class="mi">0</span><span class="p">)</span>
- <span class="k">for</span> <span class="n">c1</span> <span class="ow">in</span> <span class="n">C</span><span class="o">.</span><span class="n">keys</span><span class="p">()</span>
- <span class="k">for</span> <span class="n">c2</span> <span class="ow">in</span> <span class="n">C</span><span class="o">.</span><span class="n">keys</span><span class="p">()</span>
+ <span class="p">(</span><span class="n">c1</span><span class="p">,</span> <span class="n">c2</span><span class="p">):</span> <span class="nb">sum</span><span class="p">(</span><span class="mi">1</span> <span class="k">for</span> <span class="n">node</span> <span class="ow">in</span> <span class="n">C</span><span class="p">[</span><span class="n">c1</span><span class="p">]</span> <span class="k">if</span> <span class="n">N</span><span class="p">[(</span><span class="n">node</span><span class="p">,</span> <span class="n">c2</span><span class="p">)]</span> <span class="o">==</span> <span class="mi">0</span><span class="p">)</span> <span class="k">for</span> <span class="n">c1</span> <span class="ow">in</span> <span class="n">C</span> <span class="k">for</span> <span class="n">c2</span> <span class="ow">in</span> <span class="n">C</span>
<span class="p">}</span>
@@ -544,7 +551,7 @@
<span class="c1"># Change the class of &#39;u&#39; from X to Y</span>
<span class="n">F</span><span class="p">[</span><span class="n">u</span><span class="p">]</span> <span class="o">=</span> <span class="n">Y</span>
- <span class="k">for</span> <span class="n">k</span> <span class="ow">in</span> <span class="n">C</span><span class="o">.</span><span class="n">keys</span><span class="p">():</span>
+ <span class="k">for</span> <span class="n">k</span> <span class="ow">in</span> <span class="n">C</span><span class="p">:</span>
<span class="c1"># &#39;u&#39; witnesses an edge from k -&gt; Y instead of from k -&gt; X now.</span>
<span class="k">if</span> <span class="n">N</span><span class="p">[</span><span class="n">u</span><span class="p">,</span> <span class="n">k</span><span class="p">]</span> <span class="o">==</span> <span class="mi">0</span><span class="p">:</span>
<span class="n">H</span><span class="p">[(</span><span class="n">X</span><span class="p">,</span> <span class="n">k</span><span class="p">)]</span> <span class="o">-=</span> <span class="mi">1</span>
@@ -629,7 +636,7 @@
<span class="c1"># using a look-up table instead of testing for membership in a set by a</span>
<span class="c1"># logarithmic factor.</span>
<span class="n">next_layer</span> <span class="o">=</span> <span class="p">[]</span>
- <span class="k">for</span> <span class="n">k</span> <span class="ow">in</span> <span class="n">C</span><span class="o">.</span><span class="n">keys</span><span class="p">():</span>
+ <span class="k">for</span> <span class="n">k</span> <span class="ow">in</span> <span class="n">C</span><span class="p">:</span>
<span class="k">if</span> <span class="p">(</span>
<span class="n">H</span><span class="p">[(</span><span class="n">k</span><span class="p">,</span> <span class="n">pop</span><span class="p">)]</span> <span class="o">&gt;</span> <span class="mi">0</span>
<span class="ow">and</span> <span class="n">k</span> <span class="ow">not</span> <span class="ow">in</span> <span class="n">A_cal</span>
@@ -664,11 +671,10 @@
<span class="n">made_equitable</span> <span class="o">=</span> <span class="kc">False</span>
<span class="k">for</span> <span class="n">W_1</span> <span class="ow">in</span> <span class="n">R_cal</span><span class="p">[::</span><span class="o">-</span><span class="mi">1</span><span class="p">]:</span>
-
<span class="k">for</span> <span class="n">v</span> <span class="ow">in</span> <span class="n">C</span><span class="p">[</span><span class="n">W_1</span><span class="p">]:</span>
<span class="n">X</span> <span class="o">=</span> <span class="kc">None</span>
- <span class="k">for</span> <span class="n">U</span> <span class="ow">in</span> <span class="n">C</span><span class="o">.</span><span class="n">keys</span><span class="p">():</span>
+ <span class="k">for</span> <span class="n">U</span> <span class="ow">in</span> <span class="n">C</span><span class="p">:</span>
<span class="k">if</span> <span class="n">N</span><span class="p">[(</span><span class="n">v</span><span class="p">,</span> <span class="n">U</span><span class="p">)]</span> <span class="o">==</span> <span class="mi">0</span> <span class="ow">and</span> <span class="n">U</span> <span class="ow">in</span> <span class="n">A_cal</span> <span class="ow">and</span> <span class="n">U</span> <span class="o">!=</span> <span class="n">W_1</span><span class="p">:</span>
<span class="n">X</span> <span class="o">=</span> <span class="n">U</span>
@@ -676,7 +682,7 @@
<span class="k">if</span> <span class="n">X</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
<span class="k">continue</span>
- <span class="k">for</span> <span class="n">U</span> <span class="ow">in</span> <span class="n">C</span><span class="o">.</span><span class="n">keys</span><span class="p">():</span>
+ <span class="k">for</span> <span class="n">U</span> <span class="ow">in</span> <span class="n">C</span><span class="p">:</span>
<span class="c1"># Note: Departing from the paper here.</span>
<span class="k">if</span> <span class="n">N</span><span class="p">[(</span><span class="n">v</span><span class="p">,</span> <span class="n">U</span><span class="p">)]</span> <span class="o">&gt;=</span> <span class="mi">1</span> <span class="ow">and</span> <span class="n">U</span> <span class="ow">not</span> <span class="ow">in</span> <span class="n">A_cal</span><span class="p">:</span>
<span class="n">X_prime</span> <span class="o">=</span> <span class="n">U</span>
@@ -757,7 +763,7 @@
<span class="c1"># they only exclude colors from A_cal</span>
<span class="n">next_layer</span> <span class="o">=</span> <span class="p">[</span>
<span class="n">k</span>
- <span class="k">for</span> <span class="n">k</span> <span class="ow">in</span> <span class="n">C</span><span class="o">.</span><span class="n">keys</span><span class="p">()</span>
+ <span class="k">for</span> <span class="n">k</span> <span class="ow">in</span> <span class="n">C</span>
<span class="k">if</span> <span class="n">H</span><span class="p">[(</span><span class="n">pop</span><span class="p">,</span> <span class="n">k</span><span class="p">)]</span> <span class="o">&gt;</span> <span class="mi">0</span> <span class="ow">and</span> <span class="n">k</span> <span class="ow">not</span> <span class="ow">in</span> <span class="n">B_cal_prime</span> <span class="ow">and</span> <span class="n">k</span> <span class="ow">not</span> <span class="ow">in</span> <span class="n">marked</span>
<span class="p">]</span>
@@ -781,7 +787,7 @@
<span class="n">I_set</span><span class="o">.</span><span class="n">add</span><span class="p">(</span><span class="n">z</span><span class="p">)</span>
<span class="n">I_covered</span><span class="o">.</span><span class="n">add</span><span class="p">(</span><span class="n">z</span><span class="p">)</span>
- <span class="n">I_covered</span><span class="o">.</span><span class="n">update</span><span class="p">([</span><span class="n">nbr</span> <span class="k">for</span> <span class="n">nbr</span> <span class="ow">in</span> <span class="n">L</span><span class="p">[</span><span class="n">z</span><span class="p">]])</span>
+ <span class="n">I_covered</span><span class="o">.</span><span class="n">update</span><span class="p">(</span><span class="nb">list</span><span class="p">(</span><span class="n">L</span><span class="p">[</span><span class="n">z</span><span class="p">]))</span>
<span class="k">for</span> <span class="n">w</span> <span class="ow">in</span> <span class="n">L</span><span class="p">[</span><span class="n">z</span><span class="p">]:</span>
<span class="k">if</span> <span class="n">F</span><span class="p">[</span><span class="n">w</span><span class="p">]</span> <span class="ow">in</span> <span class="n">A_cal_0</span> <span class="ow">and</span> <span class="n">N</span><span class="p">[(</span><span class="n">z</span><span class="p">,</span> <span class="n">F</span><span class="p">[</span><span class="n">w</span><span class="p">])]</span> <span class="o">==</span> <span class="mi">1</span><span class="p">:</span>
@@ -818,19 +824,13 @@
<span class="c1"># change color of w to some color in B_cal</span>
<span class="n">W_plus</span> <span class="o">=</span> <span class="nb">next</span><span class="p">(</span>
- <span class="n">k</span>
- <span class="k">for</span> <span class="n">k</span> <span class="ow">in</span> <span class="n">C</span><span class="o">.</span><span class="n">keys</span><span class="p">()</span>
- <span class="k">if</span> <span class="n">N</span><span class="p">[(</span><span class="n">w</span><span class="p">,</span> <span class="n">k</span><span class="p">)]</span> <span class="o">==</span> <span class="mi">0</span> <span class="ow">and</span> <span class="n">k</span> <span class="ow">not</span> <span class="ow">in</span> <span class="n">A_cal</span>
+ <span class="n">k</span> <span class="k">for</span> <span class="n">k</span> <span class="ow">in</span> <span class="n">C</span> <span class="k">if</span> <span class="n">N</span><span class="p">[(</span><span class="n">w</span><span class="p">,</span> <span class="n">k</span><span class="p">)]</span> <span class="o">==</span> <span class="mi">0</span> <span class="ow">and</span> <span class="n">k</span> <span class="ow">not</span> <span class="ow">in</span> <span class="n">A_cal</span>
<span class="p">)</span>
<span class="n">change_color</span><span class="p">(</span><span class="n">w</span><span class="p">,</span> <span class="n">W</span><span class="p">,</span> <span class="n">W_plus</span><span class="p">,</span> <span class="n">N</span><span class="o">=</span><span class="n">N</span><span class="p">,</span> <span class="n">H</span><span class="o">=</span><span class="n">H</span><span class="p">,</span> <span class="n">F</span><span class="o">=</span><span class="n">F</span><span class="p">,</span> <span class="n">C</span><span class="o">=</span><span class="n">C</span><span class="p">,</span> <span class="n">L</span><span class="o">=</span><span class="n">L</span><span class="p">)</span>
<span class="c1"># recurse with G[B \cup W*]</span>
<span class="n">excluded_colors</span><span class="o">.</span><span class="n">update</span><span class="p">(</span>
- <span class="p">[</span>
- <span class="n">k</span>
- <span class="k">for</span> <span class="n">k</span> <span class="ow">in</span> <span class="n">C</span><span class="o">.</span><span class="n">keys</span><span class="p">()</span>
- <span class="k">if</span> <span class="n">k</span> <span class="o">!=</span> <span class="n">W</span> <span class="ow">and</span> <span class="n">k</span> <span class="ow">not</span> <span class="ow">in</span> <span class="n">B_cal_prime</span>
- <span class="p">]</span>
+ <span class="p">[</span><span class="n">k</span> <span class="k">for</span> <span class="n">k</span> <span class="ow">in</span> <span class="n">C</span> <span class="k">if</span> <span class="n">k</span> <span class="o">!=</span> <span class="n">W</span> <span class="ow">and</span> <span class="n">k</span> <span class="ow">not</span> <span class="ow">in</span> <span class="n">B_cal_prime</span><span class="p">]</span>
<span class="p">)</span>
<span class="n">procedure_P</span><span class="p">(</span>
<span class="n">V_minus</span><span class="o">=</span><span class="n">W</span><span class="p">,</span>
@@ -945,7 +945,6 @@
<span class="k">for</span> <span class="n">u</span> <span class="ow">in</span> <span class="nb">sorted</span><span class="p">(</span><span class="n">G</span><span class="o">.</span><span class="n">nodes</span><span class="p">):</span>
<span class="k">for</span> <span class="n">v</span> <span class="ow">in</span> <span class="nb">sorted</span><span class="p">(</span><span class="n">G</span><span class="o">.</span><span class="n">neighbors</span><span class="p">(</span><span class="n">u</span><span class="p">)):</span>
-
<span class="c1"># Do not double count edges if (v, u) has already been seen.</span>
<span class="k">if</span> <span class="p">(</span><span class="n">v</span><span class="p">,</span> <span class="n">u</span><span class="p">)</span> <span class="ow">in</span> <span class="n">edges_seen</span><span class="p">:</span>
<span class="k">continue</span>
@@ -968,7 +967,7 @@
<span class="k">if</span> <span class="n">N</span><span class="p">[(</span><span class="n">u</span><span class="p">,</span> <span class="n">F</span><span class="p">[</span><span class="n">u</span><span class="p">])]</span> <span class="o">!=</span> <span class="mi">0</span><span class="p">:</span>
<span class="c1"># Find the first color where &#39;u&#39; does not have any neighbors.</span>
- <span class="n">Y</span> <span class="o">=</span> <span class="nb">next</span><span class="p">(</span><span class="n">k</span> <span class="k">for</span> <span class="n">k</span> <span class="ow">in</span> <span class="n">C</span><span class="o">.</span><span class="n">keys</span><span class="p">()</span> <span class="k">if</span> <span class="n">N</span><span class="p">[(</span><span class="n">u</span><span class="p">,</span> <span class="n">k</span><span class="p">)]</span> <span class="o">==</span> <span class="mi">0</span><span class="p">)</span>
+ <span class="n">Y</span> <span class="o">=</span> <span class="nb">next</span><span class="p">(</span><span class="n">k</span> <span class="k">for</span> <span class="n">k</span> <span class="ow">in</span> <span class="n">C</span> <span class="k">if</span> <span class="n">N</span><span class="p">[(</span><span class="n">u</span><span class="p">,</span> <span class="n">k</span><span class="p">)]</span> <span class="o">==</span> <span class="mi">0</span><span class="p">)</span>
<span class="n">X</span> <span class="o">=</span> <span class="n">F</span><span class="p">[</span><span class="n">u</span><span class="p">]</span>
<span class="n">change_color</span><span class="p">(</span><span class="n">u</span><span class="p">,</span> <span class="n">X</span><span class="p">,</span> <span class="n">Y</span><span class="p">,</span> <span class="n">N</span><span class="o">=</span><span class="n">N</span><span class="p">,</span> <span class="n">H</span><span class="o">=</span><span class="n">H</span><span class="p">,</span> <span class="n">F</span><span class="o">=</span><span class="n">F</span><span class="p">,</span> <span class="n">C</span><span class="o">=</span><span class="n">C</span><span class="p">,</span> <span class="n">L</span><span class="o">=</span><span class="n">L_</span><span class="p">)</span>
@@ -990,11 +989,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/coloring/greedy_coloring.html b/_modules/networkx/algorithms/coloring/greedy_coloring.html
index 56f93c01..e471de37 100644
--- a/_modules/networkx/algorithms/coloring/greedy_coloring.html
+++ b/_modules/networkx/algorithms/coloring/greedy_coloring.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.coloring.greedy_coloring &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.coloring.greedy_coloring &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/coloring/greedy_coloring';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/coloring/greedy_coloring.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -659,7 +671,7 @@
<span class="c1"># Yield the source node, then all the nodes in the specified</span>
<span class="c1"># traversal order.</span>
<span class="k">yield</span> <span class="n">source</span>
- <span class="k">for</span> <span class="p">(</span><span class="n">_</span><span class="p">,</span> <span class="n">end</span><span class="p">)</span> <span class="ow">in</span> <span class="n">traverse</span><span class="p">(</span><span class="n">G</span><span class="o">.</span><span class="n">subgraph</span><span class="p">(</span><span class="n">component</span><span class="p">),</span> <span class="n">source</span><span class="p">):</span>
+ <span class="k">for</span> <span class="n">_</span><span class="p">,</span> <span class="n">end</span> <span class="ow">in</span> <span class="n">traverse</span><span class="p">(</span><span class="n">G</span><span class="o">.</span><span class="n">subgraph</span><span class="p">(</span><span class="n">component</span><span class="p">),</span> <span class="n">source</span><span class="p">):</span>
<span class="k">yield</span> <span class="n">end</span></div>
@@ -695,7 +707,7 @@
<span class="k">for</span> <span class="n">v</span> <span class="ow">in</span> <span class="n">G</span><span class="p">[</span><span class="n">node</span><span class="p">]:</span>
<span class="n">distinct_colors</span><span class="p">[</span><span class="n">v</span><span class="p">]</span><span class="o">.</span><span class="n">add</span><span class="p">(</span><span class="mi">0</span><span class="p">)</span>
- <span class="k">while</span> <span class="ow">not</span> <span class="nb">len</span><span class="p">(</span><span class="n">G</span><span class="p">)</span> <span class="o">==</span> <span class="nb">len</span><span class="p">(</span><span class="n">colors</span><span class="p">):</span>
+ <span class="k">while</span> <span class="nb">len</span><span class="p">(</span><span class="n">G</span><span class="p">)</span> <span class="o">!=</span> <span class="nb">len</span><span class="p">(</span><span class="n">colors</span><span class="p">):</span>
<span class="c1"># Update the distinct color sets for the neighbors.</span>
<span class="k">for</span> <span class="n">node</span><span class="p">,</span> <span class="n">color</span> <span class="ow">in</span> <span class="n">colors</span><span class="o">.</span><span class="n">items</span><span class="p">():</span>
<span class="k">for</span> <span class="n">neighbor</span> <span class="ow">in</span> <span class="n">G</span><span class="p">[</span><span class="n">node</span><span class="p">]:</span>
@@ -933,7 +945,7 @@
<span class="n">graph</span> <span class="o">=</span> <span class="p">{</span><span class="n">node</span><span class="p">:</span> <span class="n">_Node</span><span class="p">(</span><span class="n">node</span><span class="p">,</span> <span class="n">n</span><span class="p">)</span> <span class="k">for</span> <span class="n">node</span> <span class="ow">in</span> <span class="n">G</span><span class="p">}</span>
- <span class="k">for</span> <span class="p">(</span><span class="n">node1</span><span class="p">,</span> <span class="n">node2</span><span class="p">)</span> <span class="ow">in</span> <span class="n">G</span><span class="o">.</span><span class="n">edges</span><span class="p">():</span>
+ <span class="k">for</span> <span class="n">node1</span><span class="p">,</span> <span class="n">node2</span> <span class="ow">in</span> <span class="n">G</span><span class="o">.</span><span class="n">edges</span><span class="p">():</span>
<span class="n">adj_entry1</span> <span class="o">=</span> <span class="n">_AdjEntry</span><span class="p">(</span><span class="n">node2</span><span class="p">)</span>
<span class="n">adj_entry2</span> <span class="o">=</span> <span class="n">_AdjEntry</span><span class="p">(</span><span class="n">node1</span><span class="p">)</span>
<span class="n">adj_entry1</span><span class="o">.</span><span class="n">mate</span> <span class="o">=</span> <span class="n">adj_entry2</span>
@@ -962,7 +974,7 @@
<span class="k">while</span> <span class="n">connected</span> <span class="ow">and</span> <span class="n">col1</span> <span class="o">&lt;</span> <span class="n">k</span><span class="p">:</span>
<span class="n">col1</span> <span class="o">+=</span> <span class="mi">1</span>
<span class="n">neighbor_cols</span> <span class="o">=</span> <span class="n">graph</span><span class="p">[</span><span class="n">node</span><span class="p">]</span><span class="o">.</span><span class="n">iter_neighbors_color</span><span class="p">(</span><span class="n">col1</span><span class="p">)</span>
- <span class="n">col1_adj</span> <span class="o">=</span> <span class="p">[</span><span class="n">it</span> <span class="k">for</span> <span class="n">it</span> <span class="ow">in</span> <span class="n">neighbor_cols</span><span class="p">]</span>
+ <span class="n">col1_adj</span> <span class="o">=</span> <span class="nb">list</span><span class="p">(</span><span class="n">neighbor_cols</span><span class="p">)</span>
<span class="n">col2</span> <span class="o">=</span> <span class="n">col1</span>
<span class="k">while</span> <span class="n">connected</span> <span class="ow">and</span> <span class="n">col2</span> <span class="o">&lt;</span> <span class="n">k</span><span class="p">:</span>
@@ -1038,11 +1050,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/communicability_alg.html b/_modules/networkx/algorithms/communicability_alg.html
index 1dfc1f31..07ead247 100644
--- a/_modules/networkx/algorithms/communicability_alg.html
+++ b/_modules/networkx/algorithms/communicability_alg.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.communicability_alg &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.communicability_alg &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/communicability_alg';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/communicability_alg.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -499,7 +511,7 @@
<span class="sd"> Communicability between all pairs of nodes in G using spectral</span>
<span class="sd"> decomposition.</span>
<span class="sd"> communicability_betweenness_centrality:</span>
-<span class="sd"> Communicability betweeness centrality for each node in G.</span>
+<span class="sd"> Communicability betweenness centrality for each node in G.</span>
<span class="sd"> Notes</span>
<span class="sd"> -----</span>
@@ -579,7 +591,7 @@
<span class="sd"> communicability:</span>
<span class="sd"> Communicability between pairs of nodes in G.</span>
<span class="sd"> communicability_betweenness_centrality:</span>
-<span class="sd"> Communicability betweeness centrality for each node in G.</span>
+<span class="sd"> Communicability betweenness centrality for each node in G.</span>
<span class="sd"> Notes</span>
<span class="sd"> -----</span>
@@ -636,11 +648,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/community/asyn_fluid.html b/_modules/networkx/algorithms/community/asyn_fluid.html
index 20e96907..899a97f3 100644
--- a/_modules/networkx/algorithms/community/asyn_fluid.html
+++ b/_modules/networkx/algorithms/community/asyn_fluid.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.community.asyn_fluid &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.community.asyn_fluid &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/community/asyn_fluid';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/community/asyn_fluid.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -542,7 +554,7 @@
<span class="n">communities</span> <span class="o">=</span> <span class="p">{</span><span class="n">n</span><span class="p">:</span> <span class="n">i</span> <span class="k">for</span> <span class="n">i</span><span class="p">,</span> <span class="n">n</span> <span class="ow">in</span> <span class="nb">enumerate</span><span class="p">(</span><span class="n">vertices</span><span class="p">[:</span><span class="n">k</span><span class="p">])}</span>
<span class="n">density</span> <span class="o">=</span> <span class="p">{}</span>
<span class="n">com_to_numvertices</span> <span class="o">=</span> <span class="p">{}</span>
- <span class="k">for</span> <span class="n">vertex</span> <span class="ow">in</span> <span class="n">communities</span><span class="o">.</span><span class="n">keys</span><span class="p">():</span>
+ <span class="k">for</span> <span class="n">vertex</span> <span class="ow">in</span> <span class="n">communities</span><span class="p">:</span>
<span class="n">com_to_numvertices</span><span class="p">[</span><span class="n">communities</span><span class="p">[</span><span class="n">vertex</span><span class="p">]]</span> <span class="o">=</span> <span class="mi">1</span>
<span class="n">density</span><span class="p">[</span><span class="n">communities</span><span class="p">[</span><span class="n">vertex</span><span class="p">]]</span> <span class="o">=</span> <span class="n">max_density</span>
<span class="c1"># Set up control variables and start iterating</span>
@@ -622,11 +634,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/community/centrality.html b/_modules/networkx/algorithms/community/centrality.html
index 9b254f8f..38390274 100644
--- a/_modules/networkx/algorithms/community/centrality.html
+++ b/_modules/networkx/algorithms/community/centrality.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.community.centrality &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.community.centrality &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/community/centrality';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/community/centrality.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -645,11 +657,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/community/community_utils.html b/_modules/networkx/algorithms/community/community_utils.html
index 6fd1f51c..6f8b6696 100644
--- a/_modules/networkx/algorithms/community/community_utils.html
+++ b/_modules/networkx/algorithms/community/community_utils.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.community.community_utils &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.community.community_utils &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/community/community_utils';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/community/community_utils.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -502,11 +514,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/community/kclique.html b/_modules/networkx/algorithms/community/kclique.html
index 22546db6..85ae7f2b 100644
--- a/_modules/networkx/algorithms/community/kclique.html
+++ b/_modules/networkx/algorithms/community/kclique.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.community.kclique &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.community.kclique &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/community/kclique';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/community/kclique.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -554,11 +566,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/community/kernighan_lin.html b/_modules/networkx/algorithms/community/kernighan_lin.html
index 19f3c947..1f5a62fe 100644
--- a/_modules/networkx/algorithms/community/kernighan_lin.html
+++ b/_modules/networkx/algorithms/community/kernighan_lin.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.community.kernighan_lin &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.community.kernighan_lin &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/community/kernighan_lin';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/community/kernighan_lin.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -612,11 +624,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/community/label_propagation.html b/_modules/networkx/algorithms/community/label_propagation.html
index 31376342..ec65c8ac 100644
--- a/_modules/networkx/algorithms/community/label_propagation.html
+++ b/_modules/networkx/algorithms/community/label_propagation.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.community.label_propagation &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.community.label_propagation &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/community/label_propagation';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/community/label_propagation.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -532,7 +544,6 @@
<span class="n">seed</span><span class="o">.</span><span class="n">shuffle</span><span class="p">(</span><span class="n">nodes</span><span class="p">)</span>
<span class="k">for</span> <span class="n">node</span> <span class="ow">in</span> <span class="n">nodes</span><span class="p">:</span>
-
<span class="k">if</span> <span class="ow">not</span> <span class="n">G</span><span class="p">[</span><span class="n">node</span><span class="p">]:</span>
<span class="k">continue</span>
@@ -618,7 +629,7 @@
<span class="sd"> Returns a dict keyed by color to a set of nodes with that color.</span>
<span class="sd"> &quot;&quot;&quot;</span>
- <span class="n">coloring</span> <span class="o">=</span> <span class="nb">dict</span><span class="p">()</span> <span class="c1"># color =&gt; set(node)</span>
+ <span class="n">coloring</span> <span class="o">=</span> <span class="p">{}</span> <span class="c1"># color =&gt; set(node)</span>
<span class="n">colors</span> <span class="o">=</span> <span class="n">nx</span><span class="o">.</span><span class="n">coloring</span><span class="o">.</span><span class="n">greedy_color</span><span class="p">(</span><span class="n">G</span><span class="p">)</span>
<span class="k">for</span> <span class="n">node</span><span class="p">,</span> <span class="n">color</span> <span class="ow">in</span> <span class="n">colors</span><span class="o">.</span><span class="n">items</span><span class="p">():</span>
<span class="k">if</span> <span class="n">color</span> <span class="ow">in</span> <span class="n">coloring</span><span class="p">:</span>
@@ -684,11 +695,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/community/louvain.html b/_modules/networkx/algorithms/community/louvain.html
index 89674161..7b2225c3 100644
--- a/_modules/networkx/algorithms/community/louvain.html
+++ b/_modules/networkx/algorithms/community/louvain.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.community.louvain &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.community.louvain &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/community/louvain';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/community/louvain.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -588,7 +600,7 @@
<span class="sd"> A dendrogram is a diagram representing a tree and each level represents</span>
<span class="sd"> a partition of the G graph. The top level contains the smallest communities</span>
<span class="sd"> and as you traverse to the bottom of the tree the communities get bigger</span>
-<span class="sd"> and the overal modularity increases making the partition better.</span>
+<span class="sd"> and the overall modularity increases making the partition better.</span>
<span class="sd"> Each level is generated by executing the two phases of the Louvain Community</span>
<span class="sd"> Detection Algorithm.</span>
@@ -681,8 +693,8 @@
<span class="k">if</span> <span class="n">is_directed</span><span class="p">:</span>
<span class="n">in_degrees</span> <span class="o">=</span> <span class="nb">dict</span><span class="p">(</span><span class="n">G</span><span class="o">.</span><span class="n">in_degree</span><span class="p">(</span><span class="n">weight</span><span class="o">=</span><span class="s2">&quot;weight&quot;</span><span class="p">))</span>
<span class="n">out_degrees</span> <span class="o">=</span> <span class="nb">dict</span><span class="p">(</span><span class="n">G</span><span class="o">.</span><span class="n">out_degree</span><span class="p">(</span><span class="n">weight</span><span class="o">=</span><span class="s2">&quot;weight&quot;</span><span class="p">))</span>
- <span class="n">Stot_in</span> <span class="o">=</span> <span class="p">[</span><span class="n">deg</span> <span class="k">for</span> <span class="n">deg</span> <span class="ow">in</span> <span class="n">in_degrees</span><span class="o">.</span><span class="n">values</span><span class="p">()]</span>
- <span class="n">Stot_out</span> <span class="o">=</span> <span class="p">[</span><span class="n">deg</span> <span class="k">for</span> <span class="n">deg</span> <span class="ow">in</span> <span class="n">out_degrees</span><span class="o">.</span><span class="n">values</span><span class="p">()]</span>
+ <span class="n">Stot_in</span> <span class="o">=</span> <span class="nb">list</span><span class="p">(</span><span class="n">in_degrees</span><span class="o">.</span><span class="n">values</span><span class="p">())</span>
+ <span class="n">Stot_out</span> <span class="o">=</span> <span class="nb">list</span><span class="p">(</span><span class="n">out_degrees</span><span class="o">.</span><span class="n">values</span><span class="p">())</span>
<span class="c1"># Calculate weights for both in and out neighbours</span>
<span class="n">nbrs</span> <span class="o">=</span> <span class="p">{}</span>
<span class="k">for</span> <span class="n">u</span> <span class="ow">in</span> <span class="n">G</span><span class="p">:</span>
@@ -693,7 +705,7 @@
<span class="n">nbrs</span><span class="p">[</span><span class="n">u</span><span class="p">][</span><span class="n">n</span><span class="p">]</span> <span class="o">+=</span> <span class="n">wt</span>
<span class="k">else</span><span class="p">:</span>
<span class="n">degrees</span> <span class="o">=</span> <span class="nb">dict</span><span class="p">(</span><span class="n">G</span><span class="o">.</span><span class="n">degree</span><span class="p">(</span><span class="n">weight</span><span class="o">=</span><span class="s2">&quot;weight&quot;</span><span class="p">))</span>
- <span class="n">Stot</span> <span class="o">=</span> <span class="p">[</span><span class="n">deg</span> <span class="k">for</span> <span class="n">deg</span> <span class="ow">in</span> <span class="n">degrees</span><span class="o">.</span><span class="n">values</span><span class="p">()]</span>
+ <span class="n">Stot</span> <span class="o">=</span> <span class="nb">list</span><span class="p">(</span><span class="n">degrees</span><span class="o">.</span><span class="n">values</span><span class="p">())</span>
<span class="n">nbrs</span> <span class="o">=</span> <span class="p">{</span><span class="n">u</span><span class="p">:</span> <span class="p">{</span><span class="n">v</span><span class="p">:</span> <span class="n">data</span><span class="p">[</span><span class="s2">&quot;weight&quot;</span><span class="p">]</span> <span class="k">for</span> <span class="n">v</span><span class="p">,</span> <span class="n">data</span> <span class="ow">in</span> <span class="n">G</span><span class="p">[</span><span class="n">u</span><span class="p">]</span><span class="o">.</span><span class="n">items</span><span class="p">()</span> <span class="k">if</span> <span class="n">v</span> <span class="o">!=</span> <span class="n">u</span><span class="p">}</span> <span class="k">for</span> <span class="n">u</span> <span class="ow">in</span> <span class="n">G</span><span class="p">}</span>
<span class="n">rand_nodes</span> <span class="o">=</span> <span class="nb">list</span><span class="p">(</span><span class="n">G</span><span class="o">.</span><span class="n">nodes</span><span class="p">)</span>
<span class="n">seed</span><span class="o">.</span><span class="n">shuffle</span><span class="p">(</span><span class="n">rand_nodes</span><span class="p">)</span>
@@ -795,7 +807,7 @@
<span class="n">com1</span> <span class="o">=</span> <span class="n">node2com</span><span class="p">[</span><span class="n">node1</span><span class="p">]</span>
<span class="n">com2</span> <span class="o">=</span> <span class="n">node2com</span><span class="p">[</span><span class="n">node2</span><span class="p">]</span>
<span class="n">temp</span> <span class="o">=</span> <span class="n">H</span><span class="o">.</span><span class="n">get_edge_data</span><span class="p">(</span><span class="n">com1</span><span class="p">,</span> <span class="n">com2</span><span class="p">,</span> <span class="p">{</span><span class="s2">&quot;weight&quot;</span><span class="p">:</span> <span class="mi">0</span><span class="p">})[</span><span class="s2">&quot;weight&quot;</span><span class="p">]</span>
- <span class="n">H</span><span class="o">.</span><span class="n">add_edge</span><span class="p">(</span><span class="n">com1</span><span class="p">,</span> <span class="n">com2</span><span class="p">,</span> <span class="o">**</span><span class="p">{</span><span class="s2">&quot;weight&quot;</span><span class="p">:</span> <span class="n">wt</span> <span class="o">+</span> <span class="n">temp</span><span class="p">})</span>
+ <span class="n">H</span><span class="o">.</span><span class="n">add_edge</span><span class="p">(</span><span class="n">com1</span><span class="p">,</span> <span class="n">com2</span><span class="p">,</span> <span class="n">weight</span><span class="o">=</span><span class="n">wt</span> <span class="o">+</span> <span class="n">temp</span><span class="p">)</span>
<span class="k">return</span> <span class="n">H</span>
@@ -826,11 +838,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/community/lukes.html b/_modules/networkx/algorithms/community/lukes.html
index a5912a24..5e3d74db 100644
--- a/_modules/networkx/algorithms/community/lukes.html
+++ b/_modules/networkx/algorithms/community/lukes.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.community.lukes &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.community.lukes &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/community/lukes';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/community/lukes.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -489,7 +501,6 @@
<div class="viewcode-block" id="lukes_partitioning"><a class="viewcode-back" href="../../../../reference/algorithms/generated/networkx.algorithms.community.lukes.lukes_partitioning.html#networkx.algorithms.community.lukes.lukes_partitioning">[docs]</a><span class="k">def</span> <span class="nf">lukes_partitioning</span><span class="p">(</span><span class="n">G</span><span class="p">,</span> <span class="n">max_size</span><span class="p">,</span> <span class="n">node_weight</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span> <span class="n">edge_weight</span><span class="o">=</span><span class="kc">None</span><span class="p">):</span>
-
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Optimal partitioning of a weighted tree using the Lukes algorithm.</span>
<span class="sd"> This algorithm partitions a connected, acyclic graph featuring integer</span>
@@ -610,7 +621,6 @@
<span class="k">return</span> <span class="n">ccx</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span>
<span class="k">def</span> <span class="nf">_concatenate_or_merge</span><span class="p">(</span><span class="n">partition_1</span><span class="p">,</span> <span class="n">partition_2</span><span class="p">,</span> <span class="n">x</span><span class="p">,</span> <span class="n">i</span><span class="p">,</span> <span class="n">ref_weigth</span><span class="p">):</span>
-
<span class="n">ccx</span> <span class="o">=</span> <span class="n">_pivot</span><span class="p">(</span><span class="n">partition_1</span><span class="p">,</span> <span class="n">x</span><span class="p">)</span>
<span class="n">cci</span> <span class="o">=</span> <span class="n">_pivot</span><span class="p">(</span><span class="n">partition_2</span><span class="p">,</span> <span class="n">i</span><span class="p">)</span>
<span class="n">merged_xi</span> <span class="o">=</span> <span class="n">ccx</span><span class="o">.</span><span class="n">union</span><span class="p">(</span><span class="n">cci</span><span class="p">)</span>
@@ -630,13 +640,13 @@
<span class="c1"># INITIALIZATION -----------------------</span>
<span class="n">leaves</span> <span class="o">=</span> <span class="nb">set</span><span class="p">(</span><span class="n">_leaves</span><span class="p">(</span><span class="n">t_G</span><span class="p">))</span>
<span class="k">for</span> <span class="n">lv</span> <span class="ow">in</span> <span class="n">leaves</span><span class="p">:</span>
- <span class="n">t_G</span><span class="o">.</span><span class="n">nodes</span><span class="p">[</span><span class="n">lv</span><span class="p">][</span><span class="n">PKEY</span><span class="p">]</span> <span class="o">=</span> <span class="nb">dict</span><span class="p">()</span>
+ <span class="n">t_G</span><span class="o">.</span><span class="n">nodes</span><span class="p">[</span><span class="n">lv</span><span class="p">][</span><span class="n">PKEY</span><span class="p">]</span> <span class="o">=</span> <span class="p">{}</span>
<span class="n">slot</span> <span class="o">=</span> <span class="n">safe_G</span><span class="o">.</span><span class="n">nodes</span><span class="p">[</span><span class="n">lv</span><span class="p">][</span><span class="n">node_weight</span><span class="p">]</span>
<span class="n">t_G</span><span class="o">.</span><span class="n">nodes</span><span class="p">[</span><span class="n">lv</span><span class="p">][</span><span class="n">PKEY</span><span class="p">][</span><span class="n">slot</span><span class="p">]</span> <span class="o">=</span> <span class="p">[{</span><span class="n">lv</span><span class="p">}]</span>
<span class="n">t_G</span><span class="o">.</span><span class="n">nodes</span><span class="p">[</span><span class="n">lv</span><span class="p">][</span><span class="n">PKEY</span><span class="p">][</span><span class="mi">0</span><span class="p">]</span> <span class="o">=</span> <span class="p">[{</span><span class="n">lv</span><span class="p">}]</span>
<span class="k">for</span> <span class="n">inner</span> <span class="ow">in</span> <span class="p">[</span><span class="n">x</span> <span class="k">for</span> <span class="n">x</span> <span class="ow">in</span> <span class="n">t_G</span><span class="o">.</span><span class="n">nodes</span> <span class="k">if</span> <span class="n">x</span> <span class="ow">not</span> <span class="ow">in</span> <span class="n">leaves</span><span class="p">]:</span>
- <span class="n">t_G</span><span class="o">.</span><span class="n">nodes</span><span class="p">[</span><span class="n">inner</span><span class="p">][</span><span class="n">PKEY</span><span class="p">]</span> <span class="o">=</span> <span class="nb">dict</span><span class="p">()</span>
+ <span class="n">t_G</span><span class="o">.</span><span class="n">nodes</span><span class="p">[</span><span class="n">inner</span><span class="p">][</span><span class="n">PKEY</span><span class="p">]</span> <span class="o">=</span> <span class="p">{}</span>
<span class="n">slot</span> <span class="o">=</span> <span class="n">safe_G</span><span class="o">.</span><span class="n">nodes</span><span class="p">[</span><span class="n">inner</span><span class="p">][</span><span class="n">node_weight</span><span class="p">]</span>
<span class="n">t_G</span><span class="o">.</span><span class="n">nodes</span><span class="p">[</span><span class="n">inner</span><span class="p">][</span><span class="n">PKEY</span><span class="p">][</span><span class="n">slot</span><span class="p">]</span> <span class="o">=</span> <span class="p">[{</span><span class="n">inner</span><span class="p">}]</span>
@@ -646,7 +656,7 @@
<span class="n">weight_of_x</span> <span class="o">=</span> <span class="n">safe_G</span><span class="o">.</span><span class="n">nodes</span><span class="p">[</span><span class="n">x_node</span><span class="p">][</span><span class="n">node_weight</span><span class="p">]</span>
<span class="n">best_value</span> <span class="o">=</span> <span class="mi">0</span>
<span class="n">best_partition</span> <span class="o">=</span> <span class="kc">None</span>
- <span class="n">bp_buffer</span> <span class="o">=</span> <span class="nb">dict</span><span class="p">()</span>
+ <span class="n">bp_buffer</span> <span class="o">=</span> <span class="p">{}</span>
<span class="n">x_descendants</span> <span class="o">=</span> <span class="n">nx</span><span class="o">.</span><span class="n">descendants</span><span class="p">(</span><span class="n">t_G</span><span class="p">,</span> <span class="n">x_node</span><span class="p">)</span>
<span class="k">for</span> <span class="n">i_node</span> <span class="ow">in</span> <span class="n">x_descendants</span><span class="p">:</span>
<span class="k">for</span> <span class="n">j</span> <span class="ow">in</span> <span class="nb">range</span><span class="p">(</span><span class="n">weight_of_x</span><span class="p">,</span> <span class="n">max_size</span> <span class="o">+</span> <span class="mi">1</span><span class="p">):</span>
@@ -702,11 +712,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/community/modularity_max.html b/_modules/networkx/algorithms/community/modularity_max.html
index 5d49fa9a..24e38cb6 100644
--- a/_modules/networkx/algorithms/community/modularity_max.html
+++ b/_modules/networkx/algorithms/community/modularity_max.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.community.modularity_max &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.community.modularity_max &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/community/modularity_max';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/community/modularity_max.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -700,7 +712,7 @@
<span class="sd"> Greedy modularity maximization begins with each node in its own community</span>
<span class="sd"> and repeatedly joins the pair of communities that lead to the largest</span>
-<span class="sd"> modularity until no futher increase in modularity is possible (a maximum).</span>
+<span class="sd"> modularity until no further increase in modularity is possible (a maximum).</span>
<span class="sd"> Two keyword arguments adjust the stopping condition. `cutoff` is a lower</span>
<span class="sd"> limit on the number of communities so you can stop the process before</span>
<span class="sd"> reaching a maximum (used to save computation time). `best_n` is an upper</span>
@@ -864,7 +876,7 @@
<span class="sd"> modularity</span>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="c1"># First create one community for each node</span>
- <span class="n">communities</span> <span class="o">=</span> <span class="nb">list</span><span class="p">(</span><span class="nb">frozenset</span><span class="p">([</span><span class="n">u</span><span class="p">])</span> <span class="k">for</span> <span class="n">u</span> <span class="ow">in</span> <span class="n">G</span><span class="o">.</span><span class="n">nodes</span><span class="p">())</span>
+ <span class="n">communities</span> <span class="o">=</span> <span class="p">[</span><span class="nb">frozenset</span><span class="p">([</span><span class="n">u</span><span class="p">])</span> <span class="k">for</span> <span class="n">u</span> <span class="ow">in</span> <span class="n">G</span><span class="o">.</span><span class="n">nodes</span><span class="p">()]</span>
<span class="c1"># Track merges</span>
<span class="n">merges</span> <span class="o">=</span> <span class="p">[]</span>
<span class="c1"># Greedily merge communities until no improvement is possible</span>
@@ -923,11 +935,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/community/quality.html b/_modules/networkx/algorithms/community/quality.html
index 42b8008b..8f3e2cfb 100644
--- a/_modules/networkx/algorithms/community/quality.html
+++ b/_modules/networkx/algorithms/community/quality.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.community.quality &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.community.quality &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/community/quality';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/community/quality.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -656,7 +668,7 @@
<span class="sd"> Returns</span>
<span class="sd"> -------</span>
<span class="sd"> Q : float</span>
-<span class="sd"> The modularity of the paritition.</span>
+<span class="sd"> The modularity of the partition.</span>
<span class="sd"> Raises</span>
<span class="sd"> ------</span>
@@ -817,11 +829,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/components/attracting.html b/_modules/networkx/algorithms/components/attracting.html
index d994b60b..d28002e2 100644
--- a/_modules/networkx/algorithms/components/attracting.html
+++ b/_modules/networkx/algorithms/components/attracting.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.components.attracting &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.components.attracting &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/components/attracting';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/components/attracting.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -586,11 +598,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/components/biconnected.html b/_modules/networkx/algorithms/components/biconnected.html
index 61be38ad..2cc460cb 100644
--- a/_modules/networkx/algorithms/components/biconnected.html
+++ b/_modules/networkx/algorithms/components/biconnected.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.components.biconnected &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.components.biconnected &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/components/biconnected';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/components/biconnected.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -863,11 +875,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/components/connected.html b/_modules/networkx/algorithms/components/connected.html
index 59ae2a4d..57fb7690 100644
--- a/_modules/networkx/algorithms/components/connected.html
+++ b/_modules/networkx/algorithms/components/connected.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.components.connected &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.components.connected &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/components/connected';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/components/connected.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -676,11 +688,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/components/semiconnected.html b/_modules/networkx/algorithms/components/semiconnected.html
index 8ceab779..c9200a41 100644
--- a/_modules/networkx/algorithms/components/semiconnected.html
+++ b/_modules/networkx/algorithms/components/semiconnected.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.components.semiconnected &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.components.semiconnected &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/components/semiconnected';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/components/semiconnected.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -539,11 +551,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/components/strongly_connected.html b/_modules/networkx/algorithms/components/strongly_connected.html
index 1232f536..b5819c99 100644
--- a/_modules/networkx/algorithms/components/strongly_connected.html
+++ b/_modules/networkx/algorithms/components/strongly_connected.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.components.strongly_connected &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.components.strongly_connected &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/components/strongly_connected';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/components/strongly_connected.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -913,11 +925,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/components/weakly_connected.html b/_modules/networkx/algorithms/components/weakly_connected.html
index 3e1b4d94..1a2a71c5 100644
--- a/_modules/networkx/algorithms/components/weakly_connected.html
+++ b/_modules/networkx/algorithms/components/weakly_connected.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.components.weakly_connected &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.components.weakly_connected &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/components/weakly_connected';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/components/weakly_connected.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -660,11 +672,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/connectivity/connectivity.html b/_modules/networkx/algorithms/connectivity/connectivity.html
index 0d39d855..6a2bd211 100644
--- a/_modules/networkx/algorithms/connectivity/connectivity.html
+++ b/_modules/networkx/algorithms/connectivity/connectivity.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.connectivity.connectivity &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.connectivity.connectivity &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/connectivity/connectivity';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/connectivity/connectivity.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -658,7 +670,7 @@
<span class="k">if</span> <span class="n">mapping</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
<span class="k">raise</span> <span class="n">nx</span><span class="o">.</span><span class="n">NetworkXError</span><span class="p">(</span><span class="s2">&quot;Invalid auxiliary digraph.&quot;</span><span class="p">)</span>
- <span class="n">kwargs</span> <span class="o">=</span> <span class="nb">dict</span><span class="p">(</span><span class="n">flow_func</span><span class="o">=</span><span class="n">flow_func</span><span class="p">,</span> <span class="n">residual</span><span class="o">=</span><span class="n">residual</span><span class="p">)</span>
+ <span class="n">kwargs</span> <span class="o">=</span> <span class="p">{</span><span class="s2">&quot;flow_func&quot;</span><span class="p">:</span> <span class="n">flow_func</span><span class="p">,</span> <span class="s2">&quot;residual&quot;</span><span class="p">:</span> <span class="n">residual</span><span class="p">}</span>
<span class="k">if</span> <span class="n">flow_func</span> <span class="ow">is</span> <span class="n">shortest_augmenting_path</span><span class="p">:</span>
<span class="n">kwargs</span><span class="p">[</span><span class="s2">&quot;cutoff&quot;</span><span class="p">]</span> <span class="o">=</span> <span class="n">cutoff</span>
<span class="n">kwargs</span><span class="p">[</span><span class="s2">&quot;two_phase&quot;</span><span class="p">]</span> <span class="o">=</span> <span class="kc">True</span>
@@ -793,7 +805,7 @@
<span class="c1"># Reuse the auxiliary digraph and the residual network</span>
<span class="n">H</span> <span class="o">=</span> <span class="n">build_auxiliary_node_connectivity</span><span class="p">(</span><span class="n">G</span><span class="p">)</span>
<span class="n">R</span> <span class="o">=</span> <span class="n">build_residual_network</span><span class="p">(</span><span class="n">H</span><span class="p">,</span> <span class="s2">&quot;capacity&quot;</span><span class="p">)</span>
- <span class="n">kwargs</span> <span class="o">=</span> <span class="nb">dict</span><span class="p">(</span><span class="n">flow_func</span><span class="o">=</span><span class="n">flow_func</span><span class="p">,</span> <span class="n">auxiliary</span><span class="o">=</span><span class="n">H</span><span class="p">,</span> <span class="n">residual</span><span class="o">=</span><span class="n">R</span><span class="p">)</span>
+ <span class="n">kwargs</span> <span class="o">=</span> <span class="p">{</span><span class="s2">&quot;flow_func&quot;</span><span class="p">:</span> <span class="n">flow_func</span><span class="p">,</span> <span class="s2">&quot;auxiliary&quot;</span><span class="p">:</span> <span class="n">H</span><span class="p">,</span> <span class="s2">&quot;residual&quot;</span><span class="p">:</span> <span class="n">R</span><span class="p">}</span>
<span class="c1"># Pick a node with minimum degree</span>
<span class="c1"># Node connectivity is bounded by degree.</span>
@@ -868,7 +880,7 @@
<span class="c1"># Reuse the auxiliary digraph and the residual network</span>
<span class="n">H</span> <span class="o">=</span> <span class="n">build_auxiliary_node_connectivity</span><span class="p">(</span><span class="n">G</span><span class="p">)</span>
<span class="n">R</span> <span class="o">=</span> <span class="n">build_residual_network</span><span class="p">(</span><span class="n">H</span><span class="p">,</span> <span class="s2">&quot;capacity&quot;</span><span class="p">)</span>
- <span class="n">kwargs</span> <span class="o">=</span> <span class="nb">dict</span><span class="p">(</span><span class="n">flow_func</span><span class="o">=</span><span class="n">flow_func</span><span class="p">,</span> <span class="n">auxiliary</span><span class="o">=</span><span class="n">H</span><span class="p">,</span> <span class="n">residual</span><span class="o">=</span><span class="n">R</span><span class="p">)</span>
+ <span class="n">kwargs</span> <span class="o">=</span> <span class="p">{</span><span class="s2">&quot;flow_func&quot;</span><span class="p">:</span> <span class="n">flow_func</span><span class="p">,</span> <span class="s2">&quot;auxiliary&quot;</span><span class="p">:</span> <span class="n">H</span><span class="p">,</span> <span class="s2">&quot;residual&quot;</span><span class="p">:</span> <span class="n">R</span><span class="p">}</span>
<span class="n">num</span><span class="p">,</span> <span class="n">den</span> <span class="o">=</span> <span class="mi">0</span><span class="p">,</span> <span class="mi">0</span>
<span class="k">for</span> <span class="n">u</span><span class="p">,</span> <span class="n">v</span> <span class="ow">in</span> <span class="n">iter_func</span><span class="p">(</span><span class="n">G</span><span class="p">,</span> <span class="mi">2</span><span class="p">):</span>
@@ -936,7 +948,7 @@
<span class="n">H</span> <span class="o">=</span> <span class="n">build_auxiliary_node_connectivity</span><span class="p">(</span><span class="n">G</span><span class="p">)</span>
<span class="n">mapping</span> <span class="o">=</span> <span class="n">H</span><span class="o">.</span><span class="n">graph</span><span class="p">[</span><span class="s2">&quot;mapping&quot;</span><span class="p">]</span>
<span class="n">R</span> <span class="o">=</span> <span class="n">build_residual_network</span><span class="p">(</span><span class="n">H</span><span class="p">,</span> <span class="s2">&quot;capacity&quot;</span><span class="p">)</span>
- <span class="n">kwargs</span> <span class="o">=</span> <span class="nb">dict</span><span class="p">(</span><span class="n">flow_func</span><span class="o">=</span><span class="n">flow_func</span><span class="p">,</span> <span class="n">auxiliary</span><span class="o">=</span><span class="n">H</span><span class="p">,</span> <span class="n">residual</span><span class="o">=</span><span class="n">R</span><span class="p">)</span>
+ <span class="n">kwargs</span> <span class="o">=</span> <span class="p">{</span><span class="s2">&quot;flow_func&quot;</span><span class="p">:</span> <span class="n">flow_func</span><span class="p">,</span> <span class="s2">&quot;auxiliary&quot;</span><span class="p">:</span> <span class="n">H</span><span class="p">,</span> <span class="s2">&quot;residual&quot;</span><span class="p">:</span> <span class="n">R</span><span class="p">}</span>
<span class="k">for</span> <span class="n">u</span><span class="p">,</span> <span class="n">v</span> <span class="ow">in</span> <span class="n">iter_func</span><span class="p">(</span><span class="n">nbunch</span><span class="p">,</span> <span class="mi">2</span><span class="p">):</span>
<span class="n">K</span> <span class="o">=</span> <span class="n">local_node_connectivity</span><span class="p">(</span><span class="n">G</span><span class="p">,</span> <span class="n">u</span><span class="p">,</span> <span class="n">v</span><span class="p">,</span> <span class="o">**</span><span class="n">kwargs</span><span class="p">)</span>
@@ -1094,7 +1106,7 @@
<span class="k">else</span><span class="p">:</span>
<span class="n">H</span> <span class="o">=</span> <span class="n">auxiliary</span>
- <span class="n">kwargs</span> <span class="o">=</span> <span class="nb">dict</span><span class="p">(</span><span class="n">flow_func</span><span class="o">=</span><span class="n">flow_func</span><span class="p">,</span> <span class="n">residual</span><span class="o">=</span><span class="n">residual</span><span class="p">)</span>
+ <span class="n">kwargs</span> <span class="o">=</span> <span class="p">{</span><span class="s2">&quot;flow_func&quot;</span><span class="p">:</span> <span class="n">flow_func</span><span class="p">,</span> <span class="s2">&quot;residual&quot;</span><span class="p">:</span> <span class="n">residual</span><span class="p">}</span>
<span class="k">if</span> <span class="n">flow_func</span> <span class="ow">is</span> <span class="n">shortest_augmenting_path</span><span class="p">:</span>
<span class="n">kwargs</span><span class="p">[</span><span class="s2">&quot;cutoff&quot;</span><span class="p">]</span> <span class="o">=</span> <span class="n">cutoff</span>
<span class="n">kwargs</span><span class="p">[</span><span class="s2">&quot;two_phase&quot;</span><span class="p">]</span> <span class="o">=</span> <span class="kc">True</span>
@@ -1223,7 +1235,7 @@
<span class="c1"># reuse auxiliary digraph and residual network</span>
<span class="n">H</span> <span class="o">=</span> <span class="n">build_auxiliary_edge_connectivity</span><span class="p">(</span><span class="n">G</span><span class="p">)</span>
<span class="n">R</span> <span class="o">=</span> <span class="n">build_residual_network</span><span class="p">(</span><span class="n">H</span><span class="p">,</span> <span class="s2">&quot;capacity&quot;</span><span class="p">)</span>
- <span class="n">kwargs</span> <span class="o">=</span> <span class="nb">dict</span><span class="p">(</span><span class="n">flow_func</span><span class="o">=</span><span class="n">flow_func</span><span class="p">,</span> <span class="n">auxiliary</span><span class="o">=</span><span class="n">H</span><span class="p">,</span> <span class="n">residual</span><span class="o">=</span><span class="n">R</span><span class="p">)</span>
+ <span class="n">kwargs</span> <span class="o">=</span> <span class="p">{</span><span class="s2">&quot;flow_func&quot;</span><span class="p">:</span> <span class="n">flow_func</span><span class="p">,</span> <span class="s2">&quot;auxiliary&quot;</span><span class="p">:</span> <span class="n">H</span><span class="p">,</span> <span class="s2">&quot;residual&quot;</span><span class="p">:</span> <span class="n">R</span><span class="p">}</span>
<span class="k">if</span> <span class="n">G</span><span class="o">.</span><span class="n">is_directed</span><span class="p">():</span>
<span class="c1"># Algorithm 8 in [1]</span>
@@ -1287,11 +1299,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/connectivity/cuts.html b/_modules/networkx/algorithms/connectivity/cuts.html
index 56616899..c1de8916 100644
--- a/_modules/networkx/algorithms/connectivity/cuts.html
+++ b/_modules/networkx/algorithms/connectivity/cuts.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.connectivity.cuts &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.connectivity.cuts &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/connectivity/cuts';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/connectivity/cuts.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -603,7 +615,7 @@
<span class="k">else</span><span class="p">:</span>
<span class="n">H</span> <span class="o">=</span> <span class="n">auxiliary</span>
- <span class="n">kwargs</span> <span class="o">=</span> <span class="nb">dict</span><span class="p">(</span><span class="n">capacity</span><span class="o">=</span><span class="s2">&quot;capacity&quot;</span><span class="p">,</span> <span class="n">flow_func</span><span class="o">=</span><span class="n">flow_func</span><span class="p">,</span> <span class="n">residual</span><span class="o">=</span><span class="n">residual</span><span class="p">)</span>
+ <span class="n">kwargs</span> <span class="o">=</span> <span class="p">{</span><span class="s2">&quot;capacity&quot;</span><span class="p">:</span> <span class="s2">&quot;capacity&quot;</span><span class="p">,</span> <span class="s2">&quot;flow_func&quot;</span><span class="p">:</span> <span class="n">flow_func</span><span class="p">,</span> <span class="s2">&quot;residual&quot;</span><span class="p">:</span> <span class="n">residual</span><span class="p">}</span>
<span class="n">cut_value</span><span class="p">,</span> <span class="n">partition</span> <span class="o">=</span> <span class="n">nx</span><span class="o">.</span><span class="n">minimum_cut</span><span class="p">(</span><span class="n">H</span><span class="p">,</span> <span class="n">s</span><span class="p">,</span> <span class="n">t</span><span class="p">,</span> <span class="o">**</span><span class="n">kwargs</span><span class="p">)</span>
<span class="n">reachable</span><span class="p">,</span> <span class="n">non_reachable</span> <span class="o">=</span> <span class="n">partition</span>
@@ -744,7 +756,7 @@
<span class="k">raise</span> <span class="n">nx</span><span class="o">.</span><span class="n">NetworkXError</span><span class="p">(</span><span class="s2">&quot;Invalid auxiliary digraph.&quot;</span><span class="p">)</span>
<span class="k">if</span> <span class="n">G</span><span class="o">.</span><span class="n">has_edge</span><span class="p">(</span><span class="n">s</span><span class="p">,</span> <span class="n">t</span><span class="p">)</span> <span class="ow">or</span> <span class="n">G</span><span class="o">.</span><span class="n">has_edge</span><span class="p">(</span><span class="n">t</span><span class="p">,</span> <span class="n">s</span><span class="p">):</span>
<span class="k">return</span> <span class="p">{}</span>
- <span class="n">kwargs</span> <span class="o">=</span> <span class="nb">dict</span><span class="p">(</span><span class="n">flow_func</span><span class="o">=</span><span class="n">flow_func</span><span class="p">,</span> <span class="n">residual</span><span class="o">=</span><span class="n">residual</span><span class="p">,</span> <span class="n">auxiliary</span><span class="o">=</span><span class="n">H</span><span class="p">)</span>
+ <span class="n">kwargs</span> <span class="o">=</span> <span class="p">{</span><span class="s2">&quot;flow_func&quot;</span><span class="p">:</span> <span class="n">flow_func</span><span class="p">,</span> <span class="s2">&quot;residual&quot;</span><span class="p">:</span> <span class="n">residual</span><span class="p">,</span> <span class="s2">&quot;auxiliary&quot;</span><span class="p">:</span> <span class="n">H</span><span class="p">}</span>
<span class="c1"># The edge cut in the auxiliary digraph corresponds to the node cut in the</span>
<span class="c1"># original graph.</span>
@@ -877,7 +889,7 @@
<span class="c1"># Reuse the auxiliary digraph and the residual network.</span>
<span class="n">H</span> <span class="o">=</span> <span class="n">build_auxiliary_node_connectivity</span><span class="p">(</span><span class="n">G</span><span class="p">)</span>
<span class="n">R</span> <span class="o">=</span> <span class="n">build_residual_network</span><span class="p">(</span><span class="n">H</span><span class="p">,</span> <span class="s2">&quot;capacity&quot;</span><span class="p">)</span>
- <span class="n">kwargs</span> <span class="o">=</span> <span class="nb">dict</span><span class="p">(</span><span class="n">flow_func</span><span class="o">=</span><span class="n">flow_func</span><span class="p">,</span> <span class="n">auxiliary</span><span class="o">=</span><span class="n">H</span><span class="p">,</span> <span class="n">residual</span><span class="o">=</span><span class="n">R</span><span class="p">)</span>
+ <span class="n">kwargs</span> <span class="o">=</span> <span class="p">{</span><span class="s2">&quot;flow_func&quot;</span><span class="p">:</span> <span class="n">flow_func</span><span class="p">,</span> <span class="s2">&quot;auxiliary&quot;</span><span class="p">:</span> <span class="n">H</span><span class="p">,</span> <span class="s2">&quot;residual&quot;</span><span class="p">:</span> <span class="n">R</span><span class="p">}</span>
<span class="c1"># Choose a node with minimum degree.</span>
<span class="n">v</span> <span class="o">=</span> <span class="nb">min</span><span class="p">(</span><span class="n">G</span><span class="p">,</span> <span class="n">key</span><span class="o">=</span><span class="n">G</span><span class="o">.</span><span class="n">degree</span><span class="p">)</span>
@@ -1000,7 +1012,7 @@
<span class="c1"># reuse auxiliary digraph and residual network</span>
<span class="n">H</span> <span class="o">=</span> <span class="n">build_auxiliary_edge_connectivity</span><span class="p">(</span><span class="n">G</span><span class="p">)</span>
<span class="n">R</span> <span class="o">=</span> <span class="n">build_residual_network</span><span class="p">(</span><span class="n">H</span><span class="p">,</span> <span class="s2">&quot;capacity&quot;</span><span class="p">)</span>
- <span class="n">kwargs</span> <span class="o">=</span> <span class="nb">dict</span><span class="p">(</span><span class="n">flow_func</span><span class="o">=</span><span class="n">flow_func</span><span class="p">,</span> <span class="n">residual</span><span class="o">=</span><span class="n">R</span><span class="p">,</span> <span class="n">auxiliary</span><span class="o">=</span><span class="n">H</span><span class="p">)</span>
+ <span class="n">kwargs</span> <span class="o">=</span> <span class="p">{</span><span class="s2">&quot;flow_func&quot;</span><span class="p">:</span> <span class="n">flow_func</span><span class="p">,</span> <span class="s2">&quot;residual&quot;</span><span class="p">:</span> <span class="n">R</span><span class="p">,</span> <span class="s2">&quot;auxiliary&quot;</span><span class="p">:</span> <span class="n">H</span><span class="p">}</span>
<span class="c1"># Local minimum edge cut if s and t are not None</span>
<span class="k">if</span> <span class="n">s</span> <span class="ow">is</span> <span class="ow">not</span> <span class="kc">None</span> <span class="ow">and</span> <span class="n">t</span> <span class="ow">is</span> <span class="ow">not</span> <span class="kc">None</span><span class="p">:</span>
@@ -1074,11 +1086,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/connectivity/disjoint_paths.html b/_modules/networkx/algorithms/connectivity/disjoint_paths.html
index 9c0471c4..bd7a7c8a 100644
--- a/_modules/networkx/algorithms/connectivity/disjoint_paths.html
+++ b/_modules/networkx/algorithms/connectivity/disjoint_paths.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.connectivity.disjoint_paths &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.connectivity.disjoint_paths &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/connectivity/disjoint_paths';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/connectivity/disjoint_paths.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -464,7 +476,7 @@
<span></span><span class="sd">&quot;&quot;&quot;Flow based node and edge disjoint paths.&quot;&quot;&quot;</span>
<span class="kn">import</span> <span class="nn">networkx</span> <span class="k">as</span> <span class="nn">nx</span>
-<span class="c1"># Define the default maximum flow function to use for the undelying</span>
+<span class="c1"># Define the default maximum flow function to use for the underlying</span>
<span class="c1"># maximum flow computations</span>
<span class="kn">from</span> <span class="nn">networkx.algorithms.flow</span> <span class="kn">import</span> <span class="p">(</span>
<span class="n">edmonds_karp</span><span class="p">,</span>
@@ -636,9 +648,12 @@
<span class="c1"># Compute maximum flow between source and target. Flow functions in</span>
<span class="c1"># NetworkX return a residual network.</span>
- <span class="n">kwargs</span> <span class="o">=</span> <span class="nb">dict</span><span class="p">(</span>
- <span class="n">capacity</span><span class="o">=</span><span class="s2">&quot;capacity&quot;</span><span class="p">,</span> <span class="n">residual</span><span class="o">=</span><span class="n">residual</span><span class="p">,</span> <span class="n">cutoff</span><span class="o">=</span><span class="n">cutoff</span><span class="p">,</span> <span class="n">value_only</span><span class="o">=</span><span class="kc">True</span>
- <span class="p">)</span>
+ <span class="n">kwargs</span> <span class="o">=</span> <span class="p">{</span>
+ <span class="s2">&quot;capacity&quot;</span><span class="p">:</span> <span class="s2">&quot;capacity&quot;</span><span class="p">,</span>
+ <span class="s2">&quot;residual&quot;</span><span class="p">:</span> <span class="n">residual</span><span class="p">,</span>
+ <span class="s2">&quot;cutoff&quot;</span><span class="p">:</span> <span class="n">cutoff</span><span class="p">,</span>
+ <span class="s2">&quot;value_only&quot;</span><span class="p">:</span> <span class="kc">True</span><span class="p">,</span>
+ <span class="p">}</span>
<span class="k">if</span> <span class="n">flow_func</span> <span class="ow">is</span> <span class="n">preflow_push</span><span class="p">:</span>
<span class="k">del</span> <span class="n">kwargs</span><span class="p">[</span><span class="s2">&quot;cutoff&quot;</span><span class="p">]</span>
<span class="k">if</span> <span class="n">flow_func</span> <span class="ow">is</span> <span class="n">shortest_augmenting_path</span><span class="p">:</span>
@@ -832,7 +847,12 @@
<span class="k">else</span><span class="p">:</span>
<span class="n">cutoff</span> <span class="o">=</span> <span class="nb">min</span><span class="p">(</span><span class="n">cutoff</span><span class="p">,</span> <span class="n">possible</span><span class="p">)</span>
- <span class="n">kwargs</span> <span class="o">=</span> <span class="nb">dict</span><span class="p">(</span><span class="n">flow_func</span><span class="o">=</span><span class="n">flow_func</span><span class="p">,</span> <span class="n">residual</span><span class="o">=</span><span class="n">residual</span><span class="p">,</span> <span class="n">auxiliary</span><span class="o">=</span><span class="n">H</span><span class="p">,</span> <span class="n">cutoff</span><span class="o">=</span><span class="n">cutoff</span><span class="p">)</span>
+ <span class="n">kwargs</span> <span class="o">=</span> <span class="p">{</span>
+ <span class="s2">&quot;flow_func&quot;</span><span class="p">:</span> <span class="n">flow_func</span><span class="p">,</span>
+ <span class="s2">&quot;residual&quot;</span><span class="p">:</span> <span class="n">residual</span><span class="p">,</span>
+ <span class="s2">&quot;auxiliary&quot;</span><span class="p">:</span> <span class="n">H</span><span class="p">,</span>
+ <span class="s2">&quot;cutoff&quot;</span><span class="p">:</span> <span class="n">cutoff</span><span class="p">,</span>
+ <span class="p">}</span>
<span class="c1"># The edge disjoint paths in the auxiliary digraph correspond to the node</span>
<span class="c1"># disjoint paths in the original graph.</span>
@@ -865,11 +885,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/connectivity/edge_augmentation.html b/_modules/networkx/algorithms/connectivity/edge_augmentation.html
index 84d8553c..20630df2 100644
--- a/_modules/networkx/algorithms/connectivity/edge_augmentation.html
+++ b/_modules/networkx/algorithms/connectivity/edge_augmentation.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.connectivity.edge_augmentation &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.connectivity.edge_augmentation &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/connectivity/edge_augmentation';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/connectivity/edge_augmentation.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -725,7 +737,7 @@
<span class="n">aug_edges</span> <span class="o">=</span> <span class="n">greedy_k_edge_augmentation</span><span class="p">(</span>
<span class="n">G</span><span class="p">,</span> <span class="n">k</span><span class="o">=</span><span class="n">k</span><span class="p">,</span> <span class="n">avail</span><span class="o">=</span><span class="n">avail</span><span class="p">,</span> <span class="n">weight</span><span class="o">=</span><span class="n">weight</span><span class="p">,</span> <span class="n">seed</span><span class="o">=</span><span class="mi">0</span>
<span class="p">)</span>
- <span class="c1"># Do eager evaulation so we can catch any exceptions</span>
+ <span class="c1"># Do eager evaluation so we can catch any exceptions</span>
<span class="c1"># Before executing partial code.</span>
<span class="k">yield from</span> <span class="nb">list</span><span class="p">(</span><span class="n">aug_edges</span><span class="p">)</span>
<span class="k">except</span> <span class="n">nx</span><span class="o">.</span><span class="n">NetworkXUnfeasible</span><span class="p">:</span>
@@ -831,13 +843,13 @@
<span class="p">}</span>
<span class="c1"># Remove potential augmenting edges</span>
<span class="n">C</span><span class="o">.</span><span class="n">remove_edges_from</span><span class="p">(</span><span class="n">sub_avail</span><span class="o">.</span><span class="n">keys</span><span class="p">())</span>
- <span class="c1"># Find a subset of these edges that makes the compoment</span>
+ <span class="c1"># Find a subset of these edges that makes the component</span>
<span class="c1"># k-edge-connected and ignore the rest</span>
<span class="k">yield from</span> <span class="n">nx</span><span class="o">.</span><span class="n">k_edge_augmentation</span><span class="p">(</span><span class="n">C</span><span class="p">,</span> <span class="n">k</span><span class="o">=</span><span class="n">k</span><span class="p">,</span> <span class="n">avail</span><span class="o">=</span><span class="n">sub_avail</span><span class="p">)</span>
<span class="c1"># Generate all edges between CCs that could not be k-edge-connected</span>
<span class="k">for</span> <span class="n">cc1</span><span class="p">,</span> <span class="n">cc2</span> <span class="ow">in</span> <span class="n">it</span><span class="o">.</span><span class="n">combinations</span><span class="p">(</span><span class="n">k_edge_subgraphs</span><span class="p">,</span> <span class="mi">2</span><span class="p">):</span>
- <span class="k">for</span> <span class="p">(</span><span class="n">u</span><span class="p">,</span> <span class="n">v</span><span class="p">)</span> <span class="ow">in</span> <span class="n">_edges_between_disjoint</span><span class="p">(</span><span class="n">H</span><span class="p">,</span> <span class="n">cc1</span><span class="p">,</span> <span class="n">cc2</span><span class="p">):</span>
+ <span class="k">for</span> <span class="n">u</span><span class="p">,</span> <span class="n">v</span> <span class="ow">in</span> <span class="n">_edges_between_disjoint</span><span class="p">(</span><span class="n">H</span><span class="p">,</span> <span class="n">cc1</span><span class="p">,</span> <span class="n">cc2</span><span class="p">):</span>
<span class="n">d</span> <span class="o">=</span> <span class="n">H</span><span class="o">.</span><span class="n">get_edge_data</span><span class="p">(</span><span class="n">u</span><span class="p">,</span> <span class="n">v</span><span class="p">)</span>
<span class="n">edge</span> <span class="o">=</span> <span class="n">d</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="s2">&quot;generator&quot;</span><span class="p">,</span> <span class="kc">None</span><span class="p">)</span>
<span class="k">if</span> <span class="n">edge</span> <span class="ow">is</span> <span class="ow">not</span> <span class="kc">None</span><span class="p">:</span>
@@ -1005,7 +1017,7 @@
<span class="sd"> -----</span>
<span class="sd"> Each node in the metagraph is a k-edge-connected component in the original</span>
<span class="sd"> graph. We don&#39;t care about any edge within the same k-edge-connected</span>
-<span class="sd"> component, so we ignore self edges. We also are only intereseted in the</span>
+<span class="sd"> component, so we ignore self edges. We also are only interested in the</span>
<span class="sd"> minimum weight edge bridging each k-edge-connected component so, we group</span>
<span class="sd"> the edges by meta-edge and take the lightest in each group.</span>
@@ -1686,7 +1698,7 @@
<span class="c1"># Incrementally add edges in until we are k-connected</span>
<span class="n">H</span> <span class="o">=</span> <span class="n">G</span><span class="o">.</span><span class="n">copy</span><span class="p">()</span>
- <span class="k">for</span> <span class="p">(</span><span class="n">u</span><span class="p">,</span> <span class="n">v</span><span class="p">)</span> <span class="ow">in</span> <span class="n">avail_uv</span><span class="p">:</span>
+ <span class="k">for</span> <span class="n">u</span><span class="p">,</span> <span class="n">v</span> <span class="ow">in</span> <span class="n">avail_uv</span><span class="p">:</span>
<span class="n">done</span> <span class="o">=</span> <span class="kc">False</span>
<span class="k">if</span> <span class="ow">not</span> <span class="n">is_locally_k_edge_connected</span><span class="p">(</span><span class="n">H</span><span class="p">,</span> <span class="n">u</span><span class="p">,</span> <span class="n">v</span><span class="p">,</span> <span class="n">k</span><span class="o">=</span><span class="n">k</span><span class="p">):</span>
<span class="c1"># Only add edges in parts that are not yet locally k-edge-connected</span>
@@ -1704,7 +1716,7 @@
<span class="c1"># Randomized attempt to reduce the size of the solution</span>
<span class="n">_compat_shuffle</span><span class="p">(</span><span class="n">seed</span><span class="p">,</span> <span class="n">aug_edges</span><span class="p">)</span>
- <span class="k">for</span> <span class="p">(</span><span class="n">u</span><span class="p">,</span> <span class="n">v</span><span class="p">)</span> <span class="ow">in</span> <span class="nb">list</span><span class="p">(</span><span class="n">aug_edges</span><span class="p">):</span>
+ <span class="k">for</span> <span class="n">u</span><span class="p">,</span> <span class="n">v</span> <span class="ow">in</span> <span class="nb">list</span><span class="p">(</span><span class="n">aug_edges</span><span class="p">):</span>
<span class="c1"># Don&#39;t remove if we know it would break connectivity</span>
<span class="k">if</span> <span class="n">H</span><span class="o">.</span><span class="n">degree</span><span class="p">(</span><span class="n">u</span><span class="p">)</span> <span class="o">&lt;=</span> <span class="n">k</span> <span class="ow">or</span> <span class="n">H</span><span class="o">.</span><span class="n">degree</span><span class="p">(</span><span class="n">v</span><span class="p">)</span> <span class="o">&lt;=</span> <span class="n">k</span><span class="p">:</span>
<span class="k">continue</span>
@@ -1731,11 +1743,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/connectivity/edge_kcomponents.html b/_modules/networkx/algorithms/connectivity/edge_kcomponents.html
index e8794442..28060411 100644
--- a/_modules/networkx/algorithms/connectivity/edge_kcomponents.html
+++ b/_modules/networkx/algorithms/connectivity/edge_kcomponents.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.connectivity.edge_kcomponents &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.connectivity.edge_kcomponents &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/connectivity/edge_kcomponents';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/connectivity/edge_kcomponents.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -1056,11 +1068,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/connectivity/kcomponents.html b/_modules/networkx/algorithms/connectivity/kcomponents.html
index 193495fe..045c87f7 100644
--- a/_modules/networkx/algorithms/connectivity/kcomponents.html
+++ b/_modules/networkx/algorithms/connectivity/kcomponents.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.connectivity.kcomponents &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.connectivity.kcomponents &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/connectivity/kcomponents';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/connectivity/kcomponents.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -641,10 +653,7 @@
<span class="k">def</span> <span class="nf">_generate_partition</span><span class="p">(</span><span class="n">G</span><span class="p">,</span> <span class="n">cuts</span><span class="p">,</span> <span class="n">k</span><span class="p">):</span>
<span class="k">def</span> <span class="nf">has_nbrs_in_partition</span><span class="p">(</span><span class="n">G</span><span class="p">,</span> <span class="n">node</span><span class="p">,</span> <span class="n">partition</span><span class="p">):</span>
- <span class="k">for</span> <span class="n">n</span> <span class="ow">in</span> <span class="n">G</span><span class="p">[</span><span class="n">node</span><span class="p">]:</span>
- <span class="k">if</span> <span class="n">n</span> <span class="ow">in</span> <span class="n">partition</span><span class="p">:</span>
- <span class="k">return</span> <span class="kc">True</span>
- <span class="k">return</span> <span class="kc">False</span>
+ <span class="k">return</span> <span class="nb">any</span><span class="p">(</span><span class="n">n</span> <span class="ow">in</span> <span class="n">partition</span> <span class="k">for</span> <span class="n">n</span> <span class="ow">in</span> <span class="n">G</span><span class="p">[</span><span class="n">node</span><span class="p">])</span>
<span class="n">components</span> <span class="o">=</span> <span class="p">[]</span>
<span class="n">nodes</span> <span class="o">=</span> <span class="p">{</span><span class="n">n</span> <span class="k">for</span> <span class="n">n</span><span class="p">,</span> <span class="n">d</span> <span class="ow">in</span> <span class="n">G</span><span class="o">.</span><span class="n">degree</span><span class="p">()</span> <span class="k">if</span> <span class="n">d</span> <span class="o">&gt;</span> <span class="n">k</span><span class="p">}</span> <span class="o">-</span> <span class="p">{</span><span class="n">n</span> <span class="k">for</span> <span class="n">cut</span> <span class="ow">in</span> <span class="n">cuts</span> <span class="k">for</span> <span class="n">n</span> <span class="ow">in</span> <span class="n">cut</span><span class="p">}</span>
@@ -661,7 +670,7 @@
<span class="k">def</span> <span class="nf">_reconstruct_k_components</span><span class="p">(</span><span class="n">k_comps</span><span class="p">):</span>
- <span class="n">result</span> <span class="o">=</span> <span class="nb">dict</span><span class="p">()</span>
+ <span class="n">result</span> <span class="o">=</span> <span class="p">{}</span>
<span class="n">max_k</span> <span class="o">=</span> <span class="nb">max</span><span class="p">(</span><span class="n">k_comps</span><span class="p">)</span>
<span class="k">for</span> <span class="n">k</span> <span class="ow">in</span> <span class="nb">reversed</span><span class="p">(</span><span class="nb">range</span><span class="p">(</span><span class="mi">1</span><span class="p">,</span> <span class="n">max_k</span> <span class="o">+</span> <span class="mi">1</span><span class="p">)):</span>
<span class="k">if</span> <span class="n">k</span> <span class="o">==</span> <span class="n">max_k</span><span class="p">:</span>
@@ -699,11 +708,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/connectivity/kcutsets.html b/_modules/networkx/algorithms/connectivity/kcutsets.html
index c9190cb6..6d17298c 100644
--- a/_modules/networkx/algorithms/connectivity/kcutsets.html
+++ b/_modules/networkx/algorithms/connectivity/kcutsets.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.connectivity.kcutsets &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.connectivity.kcutsets &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/connectivity/kcutsets';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/connectivity/kcutsets.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -571,7 +583,7 @@
<span class="c1"># Shallow copy is enough.</span>
<span class="n">original_H_pred</span> <span class="o">=</span> <span class="n">copy</span><span class="o">.</span><span class="n">copy</span><span class="p">(</span><span class="n">H</span><span class="o">.</span><span class="n">_pred</span><span class="p">)</span>
<span class="n">R</span> <span class="o">=</span> <span class="n">build_residual_network</span><span class="p">(</span><span class="n">H</span><span class="p">,</span> <span class="s2">&quot;capacity&quot;</span><span class="p">)</span>
- <span class="n">kwargs</span> <span class="o">=</span> <span class="nb">dict</span><span class="p">(</span><span class="n">capacity</span><span class="o">=</span><span class="s2">&quot;capacity&quot;</span><span class="p">,</span> <span class="n">residual</span><span class="o">=</span><span class="n">R</span><span class="p">)</span>
+ <span class="n">kwargs</span> <span class="o">=</span> <span class="p">{</span><span class="s2">&quot;capacity&quot;</span><span class="p">:</span> <span class="s2">&quot;capacity&quot;</span><span class="p">,</span> <span class="s2">&quot;residual&quot;</span><span class="p">:</span> <span class="n">R</span><span class="p">}</span>
<span class="c1"># Define default flow function</span>
<span class="k">if</span> <span class="n">flow_func</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
<span class="n">flow_func</span> <span class="o">=</span> <span class="n">default_flow_func</span>
@@ -707,11 +719,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/connectivity/stoerwagner.html b/_modules/networkx/algorithms/connectivity/stoerwagner.html
index f46c1ec0..dc71fff0 100644
--- a/_modules/networkx/algorithms/connectivity/stoerwagner.html
+++ b/_modules/networkx/algorithms/connectivity/stoerwagner.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.connectivity.stoerwagner &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.connectivity.stoerwagner &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/connectivity/stoerwagner';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/connectivity/stoerwagner.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -624,11 +636,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/connectivity/utils.html b/_modules/networkx/algorithms/connectivity/utils.html
index a1a59b07..80647d80 100644
--- a/_modules/networkx/algorithms/connectivity/utils.html
+++ b/_modules/networkx/algorithms/connectivity/utils.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.connectivity.utils &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.connectivity.utils &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/connectivity/utils';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/connectivity/utils.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -510,7 +522,7 @@
<span class="n">H</span><span class="o">.</span><span class="n">add_edge</span><span class="p">(</span><span class="sa">f</span><span class="s2">&quot;</span><span class="si">{</span><span class="n">i</span><span class="si">}</span><span class="s2">A&quot;</span><span class="p">,</span> <span class="sa">f</span><span class="s2">&quot;</span><span class="si">{</span><span class="n">i</span><span class="si">}</span><span class="s2">B&quot;</span><span class="p">,</span> <span class="n">capacity</span><span class="o">=</span><span class="mi">1</span><span class="p">)</span>
<span class="n">edges</span> <span class="o">=</span> <span class="p">[]</span>
- <span class="k">for</span> <span class="p">(</span><span class="n">source</span><span class="p">,</span> <span class="n">target</span><span class="p">)</span> <span class="ow">in</span> <span class="n">G</span><span class="o">.</span><span class="n">edges</span><span class="p">():</span>
+ <span class="k">for</span> <span class="n">source</span><span class="p">,</span> <span class="n">target</span> <span class="ow">in</span> <span class="n">G</span><span class="o">.</span><span class="n">edges</span><span class="p">():</span>
<span class="n">edges</span><span class="o">.</span><span class="n">append</span><span class="p">((</span><span class="sa">f</span><span class="s2">&quot;</span><span class="si">{</span><span class="n">mapping</span><span class="p">[</span><span class="n">source</span><span class="p">]</span><span class="si">}</span><span class="s2">B&quot;</span><span class="p">,</span> <span class="sa">f</span><span class="s2">&quot;</span><span class="si">{</span><span class="n">mapping</span><span class="p">[</span><span class="n">target</span><span class="p">]</span><span class="si">}</span><span class="s2">A&quot;</span><span class="p">))</span>
<span class="k">if</span> <span class="ow">not</span> <span class="n">directed</span><span class="p">:</span>
<span class="n">edges</span><span class="o">.</span><span class="n">append</span><span class="p">((</span><span class="sa">f</span><span class="s2">&quot;</span><span class="si">{</span><span class="n">mapping</span><span class="p">[</span><span class="n">target</span><span class="p">]</span><span class="si">}</span><span class="s2">B&quot;</span><span class="p">,</span> <span class="sa">f</span><span class="s2">&quot;</span><span class="si">{</span><span class="n">mapping</span><span class="p">[</span><span class="n">source</span><span class="p">]</span><span class="si">}</span><span class="s2">A&quot;</span><span class="p">))</span>
@@ -543,7 +555,7 @@
<span class="k">else</span><span class="p">:</span>
<span class="n">H</span> <span class="o">=</span> <span class="n">nx</span><span class="o">.</span><span class="n">DiGraph</span><span class="p">()</span>
<span class="n">H</span><span class="o">.</span><span class="n">add_nodes_from</span><span class="p">(</span><span class="n">G</span><span class="o">.</span><span class="n">nodes</span><span class="p">())</span>
- <span class="k">for</span> <span class="p">(</span><span class="n">source</span><span class="p">,</span> <span class="n">target</span><span class="p">)</span> <span class="ow">in</span> <span class="n">G</span><span class="o">.</span><span class="n">edges</span><span class="p">():</span>
+ <span class="k">for</span> <span class="n">source</span><span class="p">,</span> <span class="n">target</span> <span class="ow">in</span> <span class="n">G</span><span class="o">.</span><span class="n">edges</span><span class="p">():</span>
<span class="n">H</span><span class="o">.</span><span class="n">add_edges_from</span><span class="p">([(</span><span class="n">source</span><span class="p">,</span> <span class="n">target</span><span class="p">),</span> <span class="p">(</span><span class="n">target</span><span class="p">,</span> <span class="n">source</span><span class="p">)],</span> <span class="n">capacity</span><span class="o">=</span><span class="mi">1</span><span class="p">)</span>
<span class="k">return</span> <span class="n">H</span></div>
</pre></div>
@@ -560,11 +572,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/core.html b/_modules/networkx/algorithms/core.html
index 68607fce..744e681a 100644
--- a/_modules/networkx/algorithms/core.html
+++ b/_modules/networkx/algorithms/core.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.core &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.core &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/core';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/core.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -964,7 +976,7 @@
<span class="n">current_core</span> <span class="o">=</span> <span class="mi">1</span>
<span class="n">current_layer</span> <span class="o">=</span> <span class="mi">1</span>
<span class="c1"># Sets vertices of degree 0 to layer 1, if any.</span>
- <span class="n">isolated_nodes</span> <span class="o">=</span> <span class="p">[</span><span class="n">v</span> <span class="k">for</span> <span class="n">v</span> <span class="ow">in</span> <span class="n">nx</span><span class="o">.</span><span class="n">isolates</span><span class="p">(</span><span class="n">G</span><span class="p">)]</span>
+ <span class="n">isolated_nodes</span> <span class="o">=</span> <span class="nb">list</span><span class="p">(</span><span class="n">nx</span><span class="o">.</span><span class="n">isolates</span><span class="p">(</span><span class="n">G</span><span class="p">))</span>
<span class="k">if</span> <span class="nb">len</span><span class="p">(</span><span class="n">isolated_nodes</span><span class="p">)</span> <span class="o">&gt;</span> <span class="mi">0</span><span class="p">:</span>
<span class="k">for</span> <span class="n">v</span> <span class="ow">in</span> <span class="n">isolated_nodes</span><span class="p">:</span>
<span class="n">od_layers</span><span class="p">[</span><span class="n">v</span><span class="p">]</span> <span class="o">=</span> <span class="n">current_layer</span>
@@ -1009,11 +1021,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/covering.html b/_modules/networkx/algorithms/covering.html
index e8efd5fe..30aef4ec 100644
--- a/_modules/networkx/algorithms/covering.html
+++ b/_modules/networkx/algorithms/covering.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.covering &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.covering &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/covering';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/covering.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -615,11 +627,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/cuts.html b/_modules/networkx/algorithms/cuts.html
index 1dfbeef8..ab64bfd1 100644
--- a/_modules/networkx/algorithms/cuts.html
+++ b/_modules/networkx/algorithms/cuts.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.cuts &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.cuts &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/cuts';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/cuts.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -875,11 +887,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/cycles.html b/_modules/networkx/algorithms/cycles.html
index 591aa56e..a645326c 100644
--- a/_modules/networkx/algorithms/cycles.html
+++ b/_modules/networkx/algorithms/cycles.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.cycles &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.cycles &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/cycles';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/cycles.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -732,6 +744,7 @@
<span class="sd"> --------</span>
<span class="sd"> simple_cycles, cycle_basis</span>
<span class="sd"> &quot;&quot;&quot;</span>
+
<span class="c1"># Jon Olav Vik, 2010-08-09</span>
<span class="k">def</span> <span class="nf">_unblock</span><span class="p">(</span><span class="n">thisnode</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Recursively unblock and remove nodes from B[thisnode].&quot;&quot;&quot;</span>
@@ -992,7 +1005,7 @@
<span class="sd"> --------</span>
<span class="sd"> simple_cycles, cycle_basis</span>
<span class="sd"> &quot;&quot;&quot;</span>
- <span class="c1"># We first split the graph in commected subgraphs</span>
+ <span class="c1"># We first split the graph in connected subgraphs</span>
<span class="k">return</span> <span class="nb">sum</span><span class="p">(</span>
<span class="p">(</span><span class="n">_min_cycle_basis</span><span class="p">(</span><span class="n">G</span><span class="o">.</span><span class="n">subgraph</span><span class="p">(</span><span class="n">c</span><span class="p">),</span> <span class="n">weight</span><span class="p">)</span> <span class="k">for</span> <span class="n">c</span> <span class="ow">in</span> <span class="n">nx</span><span class="o">.</span><span class="n">connected_components</span><span class="p">(</span><span class="n">G</span><span class="p">)),</span>
<span class="p">[],</span>
@@ -1092,11 +1105,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/d_separation.html b/_modules/networkx/algorithms/d_separation.html
index f95c23cb..f9120206 100644
--- a/_modules/networkx/algorithms/d_separation.html
+++ b/_modules/networkx/algorithms/d_separation.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.d_separation &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.d_separation &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/d_separation';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/d_separation.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -882,7 +894,7 @@
<span class="sd"> marked : set</span>
<span class="sd"> A set of nodes that were marked.</span>
<span class="sd"> &quot;&quot;&quot;</span>
- <span class="n">visited</span> <span class="o">=</span> <span class="nb">dict</span><span class="p">()</span>
+ <span class="n">visited</span> <span class="o">=</span> <span class="p">{}</span>
<span class="n">marked</span> <span class="o">=</span> <span class="nb">set</span><span class="p">()</span>
<span class="n">queue</span> <span class="o">=</span> <span class="p">[]</span>
@@ -916,11 +928,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/dag.html b/_modules/networkx/algorithms/dag.html
index 6cf6ed34..2ae88154 100644
--- a/_modules/networkx/algorithms/dag.html
+++ b/_modules/networkx/algorithms/dag.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.dag &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.dag &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/dag';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/dag.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -1546,7 +1558,7 @@
<span class="n">i</span> <span class="o">=</span> <span class="nb">max</span><span class="p">(</span><span class="n">G</span><span class="p">[</span><span class="n">u</span><span class="p">][</span><span class="n">v</span><span class="p">],</span> <span class="n">key</span><span class="o">=</span><span class="k">lambda</span> <span class="n">x</span><span class="p">:</span> <span class="n">G</span><span class="p">[</span><span class="n">u</span><span class="p">][</span><span class="n">v</span><span class="p">][</span><span class="n">x</span><span class="p">]</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="n">weight</span><span class="p">,</span> <span class="n">default_weight</span><span class="p">))</span>
<span class="n">path_length</span> <span class="o">+=</span> <span class="n">G</span><span class="p">[</span><span class="n">u</span><span class="p">][</span><span class="n">v</span><span class="p">][</span><span class="n">i</span><span class="p">]</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="n">weight</span><span class="p">,</span> <span class="n">default_weight</span><span class="p">)</span>
<span class="k">else</span><span class="p">:</span>
- <span class="k">for</span> <span class="p">(</span><span class="n">u</span><span class="p">,</span> <span class="n">v</span><span class="p">)</span> <span class="ow">in</span> <span class="n">pairwise</span><span class="p">(</span><span class="n">path</span><span class="p">):</span>
+ <span class="k">for</span> <span class="n">u</span><span class="p">,</span> <span class="n">v</span> <span class="ow">in</span> <span class="n">pairwise</span><span class="p">(</span><span class="n">path</span><span class="p">):</span>
<span class="n">path_length</span> <span class="o">+=</span> <span class="n">G</span><span class="p">[</span><span class="n">u</span><span class="p">][</span><span class="n">v</span><span class="p">]</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="n">weight</span><span class="p">,</span> <span class="n">default_weight</span><span class="p">)</span>
<span class="k">return</span> <span class="n">path_length</span></div>
@@ -1710,11 +1722,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/distance_measures.html b/_modules/networkx/algorithms/distance_measures.html
index b67c0356..b720b931 100644
--- a/_modules/networkx/algorithms/distance_measures.html
+++ b/_modules/networkx/algorithms/distance_measures.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.distance_measures &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.distance_measures &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/distance_measures';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/distance_measures.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -1184,15 +1196,15 @@
<span class="k">if</span> <span class="n">invert_weight</span> <span class="ow">and</span> <span class="n">weight</span> <span class="ow">is</span> <span class="ow">not</span> <span class="kc">None</span><span class="p">:</span>
<span class="k">if</span> <span class="n">G</span><span class="o">.</span><span class="n">is_multigraph</span><span class="p">():</span>
- <span class="k">for</span> <span class="p">(</span><span class="n">u</span><span class="p">,</span> <span class="n">v</span><span class="p">,</span> <span class="n">k</span><span class="p">,</span> <span class="n">d</span><span class="p">)</span> <span class="ow">in</span> <span class="n">G</span><span class="o">.</span><span class="n">edges</span><span class="p">(</span><span class="n">keys</span><span class="o">=</span><span class="kc">True</span><span class="p">,</span> <span class="n">data</span><span class="o">=</span><span class="kc">True</span><span class="p">):</span>
+ <span class="k">for</span> <span class="n">u</span><span class="p">,</span> <span class="n">v</span><span class="p">,</span> <span class="n">k</span><span class="p">,</span> <span class="n">d</span> <span class="ow">in</span> <span class="n">G</span><span class="o">.</span><span class="n">edges</span><span class="p">(</span><span class="n">keys</span><span class="o">=</span><span class="kc">True</span><span class="p">,</span> <span class="n">data</span><span class="o">=</span><span class="kc">True</span><span class="p">):</span>
<span class="n">d</span><span class="p">[</span><span class="n">weight</span><span class="p">]</span> <span class="o">=</span> <span class="mi">1</span> <span class="o">/</span> <span class="n">d</span><span class="p">[</span><span class="n">weight</span><span class="p">]</span>
<span class="k">else</span><span class="p">:</span>
- <span class="k">for</span> <span class="p">(</span><span class="n">u</span><span class="p">,</span> <span class="n">v</span><span class="p">,</span> <span class="n">d</span><span class="p">)</span> <span class="ow">in</span> <span class="n">G</span><span class="o">.</span><span class="n">edges</span><span class="p">(</span><span class="n">data</span><span class="o">=</span><span class="kc">True</span><span class="p">):</span>
+ <span class="k">for</span> <span class="n">u</span><span class="p">,</span> <span class="n">v</span><span class="p">,</span> <span class="n">d</span> <span class="ow">in</span> <span class="n">G</span><span class="o">.</span><span class="n">edges</span><span class="p">(</span><span class="n">data</span><span class="o">=</span><span class="kc">True</span><span class="p">):</span>
<span class="n">d</span><span class="p">[</span><span class="n">weight</span><span class="p">]</span> <span class="o">=</span> <span class="mi">1</span> <span class="o">/</span> <span class="n">d</span><span class="p">[</span><span class="n">weight</span><span class="p">]</span>
<span class="c1"># Replace with collapsing topology or approximated zero?</span>
<span class="c1"># Using determinants to compute the effective resistance is more memory</span>
- <span class="c1"># efficent than directly calculating the psuedo-inverse</span>
+ <span class="c1"># efficient than directly calculating the psuedo-inverse</span>
<span class="n">L</span> <span class="o">=</span> <span class="n">nx</span><span class="o">.</span><span class="n">laplacian_matrix</span><span class="p">(</span><span class="n">G</span><span class="p">,</span> <span class="n">node_list</span><span class="p">,</span> <span class="n">weight</span><span class="o">=</span><span class="n">weight</span><span class="p">)</span><span class="o">.</span><span class="n">asformat</span><span class="p">(</span><span class="s2">&quot;csc&quot;</span><span class="p">)</span>
<span class="n">indices</span> <span class="o">=</span> <span class="nb">list</span><span class="p">(</span><span class="nb">range</span><span class="p">(</span><span class="n">L</span><span class="o">.</span><span class="n">shape</span><span class="p">[</span><span class="mi">0</span><span class="p">]))</span>
<span class="c1"># w/ nodeA removed</span>
@@ -1205,7 +1217,7 @@
<span class="c1"># Factorize Laplacian submatrixes and extract diagonals</span>
<span class="c1"># Order the diagonals to minimize the likelihood over overflows</span>
<span class="c1"># during computing the determinant</span>
- <span class="n">lu_a</span> <span class="o">=</span> <span class="n">sp</span><span class="o">.</span><span class="n">sparse</span><span class="o">.</span><span class="n">linalg</span><span class="o">.</span><span class="n">splu</span><span class="p">(</span><span class="n">L_a</span><span class="p">,</span> <span class="n">options</span><span class="o">=</span><span class="nb">dict</span><span class="p">(</span><span class="n">SymmetricMode</span><span class="o">=</span><span class="kc">True</span><span class="p">))</span>
+ <span class="n">lu_a</span> <span class="o">=</span> <span class="n">sp</span><span class="o">.</span><span class="n">sparse</span><span class="o">.</span><span class="n">linalg</span><span class="o">.</span><span class="n">splu</span><span class="p">(</span><span class="n">L_a</span><span class="p">,</span> <span class="n">options</span><span class="o">=</span><span class="p">{</span><span class="s2">&quot;SymmetricMode&quot;</span><span class="p">:</span> <span class="kc">True</span><span class="p">})</span>
<span class="n">LdiagA</span> <span class="o">=</span> <span class="n">lu_a</span><span class="o">.</span><span class="n">U</span><span class="o">.</span><span class="n">diagonal</span><span class="p">()</span>
<span class="n">LdiagA_s</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">product</span><span class="p">(</span><span class="n">np</span><span class="o">.</span><span class="n">sign</span><span class="p">(</span><span class="n">LdiagA</span><span class="p">))</span> <span class="o">*</span> <span class="n">np</span><span class="o">.</span><span class="n">product</span><span class="p">(</span><span class="n">lu_a</span><span class="o">.</span><span class="n">L</span><span class="o">.</span><span class="n">diagonal</span><span class="p">())</span>
<span class="n">LdiagA_s</span> <span class="o">*=</span> <span class="p">(</span><span class="o">-</span><span class="mi">1</span><span class="p">)</span> <span class="o">**</span> <span class="n">_count_lu_permutations</span><span class="p">(</span><span class="n">lu_a</span><span class="o">.</span><span class="n">perm_r</span><span class="p">)</span>
@@ -1213,7 +1225,7 @@
<span class="n">LdiagA</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">absolute</span><span class="p">(</span><span class="n">LdiagA</span><span class="p">)</span>
<span class="n">LdiagA</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">sort</span><span class="p">(</span><span class="n">LdiagA</span><span class="p">)</span>
- <span class="n">lu_ab</span> <span class="o">=</span> <span class="n">sp</span><span class="o">.</span><span class="n">sparse</span><span class="o">.</span><span class="n">linalg</span><span class="o">.</span><span class="n">splu</span><span class="p">(</span><span class="n">L_ab</span><span class="p">,</span> <span class="n">options</span><span class="o">=</span><span class="nb">dict</span><span class="p">(</span><span class="n">SymmetricMode</span><span class="o">=</span><span class="kc">True</span><span class="p">))</span>
+ <span class="n">lu_ab</span> <span class="o">=</span> <span class="n">sp</span><span class="o">.</span><span class="n">sparse</span><span class="o">.</span><span class="n">linalg</span><span class="o">.</span><span class="n">splu</span><span class="p">(</span><span class="n">L_ab</span><span class="p">,</span> <span class="n">options</span><span class="o">=</span><span class="p">{</span><span class="s2">&quot;SymmetricMode&quot;</span><span class="p">:</span> <span class="kc">True</span><span class="p">})</span>
<span class="n">LdiagAB</span> <span class="o">=</span> <span class="n">lu_ab</span><span class="o">.</span><span class="n">U</span><span class="o">.</span><span class="n">diagonal</span><span class="p">()</span>
<span class="n">LdiagAB_s</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">product</span><span class="p">(</span><span class="n">np</span><span class="o">.</span><span class="n">sign</span><span class="p">(</span><span class="n">LdiagAB</span><span class="p">))</span> <span class="o">*</span> <span class="n">np</span><span class="o">.</span><span class="n">product</span><span class="p">(</span><span class="n">lu_ab</span><span class="o">.</span><span class="n">L</span><span class="o">.</span><span class="n">diagonal</span><span class="p">())</span>
<span class="n">LdiagAB_s</span> <span class="o">*=</span> <span class="p">(</span><span class="o">-</span><span class="mi">1</span><span class="p">)</span> <span class="o">**</span> <span class="n">_count_lu_permutations</span><span class="p">(</span><span class="n">lu_ab</span><span class="o">.</span><span class="n">perm_r</span><span class="p">)</span>
@@ -1240,11 +1252,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/distance_regular.html b/_modules/networkx/algorithms/distance_regular.html
index d4909128..e9e66922 100644
--- a/_modules/networkx/algorithms/distance_regular.html
+++ b/_modules/networkx/algorithms/distance_regular.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.distance_regular &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.distance_regular &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/distance_regular';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/distance_regular.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -706,11 +718,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/dominance.html b/_modules/networkx/algorithms/dominance.html
index 9085730b..cf295b95 100644
--- a/_modules/networkx/algorithms/dominance.html
+++ b/_modules/networkx/algorithms/dominance.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.dominance &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.dominance &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/dominance';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/dominance.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -608,11 +620,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/dominating.html b/_modules/networkx/algorithms/dominating.html
index 123655a1..e31d68b6 100644
--- a/_modules/networkx/algorithms/dominating.html
+++ b/_modules/networkx/algorithms/dominating.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.dominating &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.dominating &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/dominating';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/dominating.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -568,11 +580,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/efficiency_measures.html b/_modules/networkx/algorithms/efficiency_measures.html
index 652ce0b2..fb74eaf3 100644
--- a/_modules/networkx/algorithms/efficiency_measures.html
+++ b/_modules/networkx/algorithms/efficiency_measures.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.efficiency_measures &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.efficiency_measures &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/efficiency_measures';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/efficiency_measures.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -640,11 +652,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/euler.html b/_modules/networkx/algorithms/euler.html
index 0afa0b74..3a935c9d 100644
--- a/_modules/networkx/algorithms/euler.html
+++ b/_modules/networkx/algorithms/euler.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.euler &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.euler &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/euler';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/euler.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -938,11 +950,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/flow/boykovkolmogorov.html b/_modules/networkx/algorithms/flow/boykovkolmogorov.html
index f456aad0..fc8379b4 100644
--- a/_modules/networkx/algorithms/flow/boykovkolmogorov.html
+++ b/_modules/networkx/algorithms/flow/boykovkolmogorov.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.flow.boykovkolmogorov &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.flow.boykovkolmogorov &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/flow/boykovkolmogorov';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/flow/boykovkolmogorov.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -780,7 +792,7 @@
<span class="n">v</span> <span class="o">=</span> <span class="n">n</span>
<span class="k">while</span> <span class="n">v</span> <span class="ow">is</span> <span class="ow">not</span> <span class="kc">None</span><span class="p">:</span>
<span class="n">path</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">v</span><span class="p">)</span>
- <span class="k">if</span> <span class="n">v</span> <span class="o">==</span> <span class="n">s</span> <span class="ow">or</span> <span class="n">v</span> <span class="o">==</span> <span class="n">t</span><span class="p">:</span>
+ <span class="k">if</span> <span class="n">v</span> <span class="ow">in</span> <span class="p">(</span><span class="n">s</span><span class="p">,</span> <span class="n">t</span><span class="p">):</span>
<span class="n">base_dist</span> <span class="o">=</span> <span class="mi">0</span>
<span class="k">break</span>
<span class="k">elif</span> <span class="n">timestamp</span><span class="p">[</span><span class="n">v</span><span class="p">]</span> <span class="o">==</span> <span class="n">time</span><span class="p">:</span>
@@ -842,11 +854,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/flow/capacityscaling.html b/_modules/networkx/algorithms/flow/capacityscaling.html
index dbf60083..648c58ed 100644
--- a/_modules/networkx/algorithms/flow/capacityscaling.html
+++ b/_modules/networkx/algorithms/flow/capacityscaling.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.flow.capacityscaling &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.flow.capacityscaling &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/flow/capacityscaling';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/flow/capacityscaling.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -753,7 +765,7 @@
<span class="k">for</span> <span class="n">u</span><span class="p">,</span> <span class="n">v</span><span class="p">,</span> <span class="n">e</span> <span class="ow">in</span> <span class="n">nx</span><span class="o">.</span><span class="n">selfloop_edges</span><span class="p">(</span><span class="n">G</span><span class="p">,</span> <span class="n">data</span><span class="o">=</span><span class="kc">True</span><span class="p">)</span>
<span class="p">)</span>
- <span class="c1"># Determine the maxmimum edge capacity.</span>
+ <span class="c1"># Determine the maximum edge capacity.</span>
<span class="n">wmax</span> <span class="o">=</span> <span class="nb">max</span><span class="p">(</span><span class="n">chain</span><span class="p">([</span><span class="o">-</span><span class="n">inf</span><span class="p">],</span> <span class="p">(</span><span class="n">e</span><span class="p">[</span><span class="s2">&quot;capacity&quot;</span><span class="p">]</span> <span class="k">for</span> <span class="n">u</span><span class="p">,</span> <span class="n">v</span><span class="p">,</span> <span class="n">e</span> <span class="ow">in</span> <span class="n">R</span><span class="o">.</span><span class="n">edges</span><span class="p">(</span><span class="n">data</span><span class="o">=</span><span class="kc">True</span><span class="p">))))</span>
<span class="k">if</span> <span class="n">wmax</span> <span class="o">==</span> <span class="o">-</span><span class="n">inf</span><span class="p">:</span>
<span class="c1"># Residual network has no edges.</span>
@@ -879,11 +891,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/flow/dinitz_alg.html b/_modules/networkx/algorithms/flow/dinitz_alg.html
index 28f39557..8ef4f744 100644
--- a/_modules/networkx/algorithms/flow/dinitz_alg.html
+++ b/_modules/networkx/algorithms/flow/dinitz_alg.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.flow.dinitz_alg &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.flow.dinitz_alg &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/flow/dinitz_alg';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/flow/dinitz_alg.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -686,11 +698,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/flow/edmondskarp.html b/_modules/networkx/algorithms/flow/edmondskarp.html
index 8c2ee927..f686d9f8 100644
--- a/_modules/networkx/algorithms/flow/edmondskarp.html
+++ b/_modules/networkx/algorithms/flow/edmondskarp.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.flow.edmondskarp &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.flow.edmondskarp &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/flow/edmondskarp';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/flow/edmondskarp.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -714,11 +726,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/flow/gomory_hu.html b/_modules/networkx/algorithms/flow/gomory_hu.html
index 03d2775a..268e531d 100644
--- a/_modules/networkx/algorithms/flow/gomory_hu.html
+++ b/_modules/networkx/algorithms/flow/gomory_hu.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.flow.gomory_hu &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.flow.gomory_hu &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/flow/gomory_hu';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/flow/gomory_hu.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -651,11 +663,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/flow/maxflow.html b/_modules/networkx/algorithms/flow/maxflow.html
index 7c1a0fdc..8dcc91ee 100644
--- a/_modules/networkx/algorithms/flow/maxflow.html
+++ b/_modules/networkx/algorithms/flow/maxflow.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.flow.maxflow &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.flow.maxflow &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/flow/maxflow';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/flow/maxflow.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -1078,11 +1090,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/flow/mincost.html b/_modules/networkx/algorithms/flow/mincost.html
index 8bfc9daf..c57bf299 100644
--- a/_modules/networkx/algorithms/flow/mincost.html
+++ b/_modules/networkx/algorithms/flow/mincost.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.flow.mincost &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.flow.mincost &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/flow/mincost';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/flow/mincost.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -806,11 +818,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/flow/networksimplex.html b/_modules/networkx/algorithms/flow/networksimplex.html
index e125a490..0fe5e2f3 100644
--- a/_modules/networkx/algorithms/flow/networksimplex.html
+++ b/_modules/networkx/algorithms/flow/networksimplex.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.flow.networksimplex &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.flow.networksimplex &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/flow/networksimplex';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/flow/networksimplex.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -478,7 +490,6 @@
<span class="k">def</span> <span class="fm">__init__</span><span class="p">(</span>
<span class="bp">self</span><span class="p">,</span> <span class="n">G</span><span class="p">,</span> <span class="n">multigraph</span><span class="p">,</span> <span class="n">demand</span><span class="o">=</span><span class="s2">&quot;demand&quot;</span><span class="p">,</span> <span class="n">capacity</span><span class="o">=</span><span class="s2">&quot;capacity&quot;</span><span class="p">,</span> <span class="n">weight</span><span class="o">=</span><span class="s2">&quot;weight&quot;</span>
<span class="p">):</span>
-
<span class="c1"># Number all nodes and edges and hereafter reference them using ONLY their numbers</span>
<span class="bp">self</span><span class="o">.</span><span class="n">node_list</span> <span class="o">=</span> <span class="nb">list</span><span class="p">(</span><span class="n">G</span><span class="p">)</span> <span class="c1"># nodes</span>
<span class="bp">self</span><span class="o">.</span><span class="n">node_indices</span> <span class="o">=</span> <span class="p">{</span><span class="n">u</span><span class="p">:</span> <span class="n">i</span> <span class="k">for</span> <span class="n">i</span><span class="p">,</span> <span class="n">u</span> <span class="ow">in</span> <span class="nb">enumerate</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">node_list</span><span class="p">)}</span> <span class="c1"># node indices</span>
@@ -1139,11 +1150,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/flow/preflowpush.html b/_modules/networkx/algorithms/flow/preflowpush.html
index eac762cc..12d6a9d6 100644
--- a/_modules/networkx/algorithms/flow/preflowpush.html
+++ b/_modules/networkx/algorithms/flow/preflowpush.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.flow.preflowpush &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.flow.preflowpush &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/flow/preflowpush';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/flow/preflowpush.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -898,11 +910,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/flow/shortestaugmentingpath.html b/_modules/networkx/algorithms/flow/shortestaugmentingpath.html
index d66305e1..ab7822b6 100644
--- a/_modules/networkx/algorithms/flow/shortestaugmentingpath.html
+++ b/_modules/networkx/algorithms/flow/shortestaugmentingpath.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.flow.shortestaugmentingpath &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.flow.shortestaugmentingpath &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/flow/shortestaugmentingpath';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/flow/shortestaugmentingpath.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -773,11 +785,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/flow/utils.html b/_modules/networkx/algorithms/flow/utils.html
index 5d37c97e..56d7f30e 100644
--- a/_modules/networkx/algorithms/flow/utils.html
+++ b/_modules/networkx/algorithms/flow/utils.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.flow.utils &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.flow.utils &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/flow/utils';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/flow/utils.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -656,11 +668,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/graph_hashing.html b/_modules/networkx/algorithms/graph_hashing.html
index b94e024d..04740b3b 100644
--- a/_modules/networkx/algorithms/graph_hashing.html
+++ b/_modules/networkx/algorithms/graph_hashing.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.graph_hashing &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.graph_hashing &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/graph_hashing';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/graph_hashing.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -779,11 +791,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/graphical.html b/_modules/networkx/algorithms/graphical.html
index b7fce3d7..f186a519 100644
--- a/_modules/networkx/algorithms/graphical.html
+++ b/_modules/networkx/algorithms/graphical.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.graphical &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.graphical &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/graphical';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/graphical.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -880,11 +892,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/hierarchy.html b/_modules/networkx/algorithms/hierarchy.html
index 48a0787f..72be687c 100644
--- a/_modules/networkx/algorithms/hierarchy.html
+++ b/_modules/networkx/algorithms/hierarchy.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.hierarchy &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.hierarchy &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/hierarchy';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/hierarchy.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -522,11 +534,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/hybrid.html b/_modules/networkx/algorithms/hybrid.html
index 71d62f62..882a5ed6 100644
--- a/_modules/networkx/algorithms/hybrid.html
+++ b/_modules/networkx/algorithms/hybrid.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.hybrid &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.hybrid &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/hybrid';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/hybrid.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -668,11 +680,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/isolate.html b/_modules/networkx/algorithms/isolate.html
index 6df3744c..1060b46a 100644
--- a/_modules/networkx/algorithms/isolate.html
+++ b/_modules/networkx/algorithms/isolate.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.isolate &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.isolate &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/isolate';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/isolate.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -582,11 +594,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/isomorphism/ismags.html b/_modules/networkx/algorithms/isomorphism/ismags.html
index 475e53d7..ce8cc55c 100644
--- a/_modules/networkx/algorithms/isomorphism/ismags.html
+++ b/_modules/networkx/algorithms/isomorphism/ismags.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.isomorphism.ismags &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.isomorphism.ismags &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/isomorphism/ismags';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/isomorphism/ismags.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -599,7 +611,7 @@
<span class="k">pass</span>
<span class="k">else</span><span class="p">:</span>
<span class="k">if</span> <span class="nb">len</span><span class="p">(</span><span class="n">shape</span><span class="p">)</span> <span class="o">&gt;</span> <span class="mi">1</span><span class="p">:</span>
- <span class="n">message</span> <span class="o">=</span> <span class="s2">&quot;The function does not works on multidimension arrays.&quot;</span>
+ <span class="n">message</span> <span class="o">=</span> <span class="s2">&quot;The function does not works on multidimensional arrays.&quot;</span>
<span class="k">raise</span> <span class="ne">NotImplementedError</span><span class="p">(</span><span class="n">message</span><span class="p">)</span> <span class="kn">from</span> <span class="bp">None</span>
<span class="n">iterator</span> <span class="o">=</span> <span class="nb">iter</span><span class="p">(</span><span class="n">iterable</span><span class="p">)</span>
@@ -659,7 +671,7 @@
<span class="sd"> -------</span>
<span class="sd"> dict</span>
<span class="sd"> &quot;&quot;&quot;</span>
- <span class="n">colors</span> <span class="o">=</span> <span class="nb">dict</span><span class="p">()</span>
+ <span class="n">colors</span> <span class="o">=</span> <span class="p">{}</span>
<span class="k">for</span> <span class="n">color</span><span class="p">,</span> <span class="n">keys</span> <span class="ow">in</span> <span class="nb">enumerate</span><span class="p">(</span><span class="n">partitions</span><span class="p">):</span>
<span class="k">for</span> <span class="n">key</span> <span class="ow">in</span> <span class="n">keys</span><span class="p">:</span>
<span class="n">colors</span><span class="p">[</span><span class="n">key</span><span class="p">]</span> <span class="o">=</span> <span class="n">color</span>
@@ -689,7 +701,7 @@
<div class="viewcode-block" id="ISMAGS"><a class="viewcode-back" href="../../../../reference/algorithms/generated/networkx.algorithms.isomorphism.ISMAGS.html#networkx.algorithms.isomorphism.ISMAGS">[docs]</a><span class="k">class</span> <span class="nc">ISMAGS</span><span class="p">:</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
-<span class="sd"> Implements the ISMAGS subgraph matching algorith. [1]_ ISMAGS stands for</span>
+<span class="sd"> Implements the ISMAGS subgraph matching algorithm. [1]_ ISMAGS stands for</span>
<span class="sd"> &quot;Index-based Subgraph Matching Algorithm with General Symmetries&quot;. As the</span>
<span class="sd"> name implies, it is symmetry aware and will only generate non-symmetric</span>
<span class="sd"> isomorphisms.</span>
@@ -1050,7 +1062,7 @@
<span class="sd"> graph : networkx.Graph</span>
<span class="sd"> The graph whose symmetry should be analyzed.</span>
<span class="sd"> node_partitions : list of sets</span>
-<span class="sd"> A list of sets containining node keys. Node keys in the same set</span>
+<span class="sd"> A list of sets containing node keys. Node keys in the same set</span>
<span class="sd"> are considered equivalent. Every node key in `graph` should be in</span>
<span class="sd"> exactly one of the sets. If all nodes are equivalent, this should</span>
<span class="sd"> be ``[set(graph.nodes)]``.</span>
@@ -1183,7 +1195,7 @@
<span class="n">counts</span><span class="p">[</span><span class="n">node1</span><span class="p">][</span><span class="n">ecolor</span><span class="p">,</span> <span class="n">node_colors</span><span class="p">[</span><span class="n">node2</span><span class="p">]]</span> <span class="o">+=</span> <span class="mi">1</span>
<span class="n">counts</span><span class="p">[</span><span class="n">node2</span><span class="p">][</span><span class="n">ecolor</span><span class="p">,</span> <span class="n">node_colors</span><span class="p">[</span><span class="n">node1</span><span class="p">]]</span> <span class="o">+=</span> <span class="mi">1</span>
- <span class="n">node_edge_colors</span> <span class="o">=</span> <span class="nb">dict</span><span class="p">()</span>
+ <span class="n">node_edge_colors</span> <span class="o">=</span> <span class="p">{}</span>
<span class="k">for</span> <span class="n">node</span> <span class="ow">in</span> <span class="n">graph</span><span class="o">.</span><span class="n">nodes</span><span class="p">:</span>
<span class="n">node_edge_colors</span><span class="p">[</span><span class="n">node</span><span class="p">]</span> <span class="o">=</span> <span class="n">node_colors</span><span class="p">[</span><span class="n">node</span><span class="p">],</span> <span class="nb">set</span><span class="p">(</span><span class="n">counts</span><span class="p">[</span><span class="n">node</span><span class="p">]</span><span class="o">.</span><span class="n">items</span><span class="p">())</span>
@@ -1373,7 +1385,7 @@
<span class="c1"># &quot;part of&quot; the subgraph in to_be_mapped, and we make it a little</span>
<span class="c1"># smaller every iteration.</span>
- <span class="c1"># pylint disable becuase it&#39;s guarded against by default value</span>
+ <span class="c1"># pylint disable because it&#39;s guarded against by default value</span>
<span class="n">current_size</span> <span class="o">=</span> <span class="nb">len</span><span class="p">(</span>
<span class="nb">next</span><span class="p">(</span><span class="nb">iter</span><span class="p">(</span><span class="n">to_be_mapped</span><span class="p">),</span> <span class="p">[])</span>
<span class="p">)</span> <span class="c1"># pylint: disable=stop-iteration-return</span>
@@ -1645,11 +1657,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/isomorphism/isomorph.html b/_modules/networkx/algorithms/isomorphism/isomorph.html
index 10747814..c12c2a37 100644
--- a/_modules/networkx/algorithms/isomorphism/isomorph.html
+++ b/_modules/networkx/algorithms/isomorphism/isomorph.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.isomorphism.isomorph &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.isomorphism.isomorph &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/isomorphism/isomorph';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/isomorphism/isomorph.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -500,13 +512,15 @@
<span class="c1"># Check local properties</span>
<span class="n">d1</span> <span class="o">=</span> <span class="n">G1</span><span class="o">.</span><span class="n">degree</span><span class="p">()</span>
<span class="n">t1</span> <span class="o">=</span> <span class="n">nx</span><span class="o">.</span><span class="n">triangles</span><span class="p">(</span><span class="n">G1</span><span class="p">)</span>
- <span class="n">c1</span> <span class="o">=</span> <span class="n">nx</span><span class="o">.</span><span class="n">number_of_cliques</span><span class="p">(</span><span class="n">G1</span><span class="p">)</span>
+ <span class="n">clqs_1</span> <span class="o">=</span> <span class="nb">list</span><span class="p">(</span><span class="n">nx</span><span class="o">.</span><span class="n">find_cliques</span><span class="p">(</span><span class="n">G1</span><span class="p">))</span>
+ <span class="n">c1</span> <span class="o">=</span> <span class="p">{</span><span class="n">n</span><span class="p">:</span> <span class="nb">sum</span><span class="p">(</span><span class="mi">1</span> <span class="k">for</span> <span class="n">c</span> <span class="ow">in</span> <span class="n">clqs_1</span> <span class="k">if</span> <span class="n">n</span> <span class="ow">in</span> <span class="n">c</span><span class="p">)</span> <span class="k">for</span> <span class="n">n</span> <span class="ow">in</span> <span class="n">G1</span><span class="p">}</span> <span class="c1"># number of cliques</span>
<span class="n">props1</span> <span class="o">=</span> <span class="p">[[</span><span class="n">d</span><span class="p">,</span> <span class="n">t1</span><span class="p">[</span><span class="n">v</span><span class="p">],</span> <span class="n">c1</span><span class="p">[</span><span class="n">v</span><span class="p">]]</span> <span class="k">for</span> <span class="n">v</span><span class="p">,</span> <span class="n">d</span> <span class="ow">in</span> <span class="n">d1</span><span class="p">]</span>
<span class="n">props1</span><span class="o">.</span><span class="n">sort</span><span class="p">()</span>
<span class="n">d2</span> <span class="o">=</span> <span class="n">G2</span><span class="o">.</span><span class="n">degree</span><span class="p">()</span>
<span class="n">t2</span> <span class="o">=</span> <span class="n">nx</span><span class="o">.</span><span class="n">triangles</span><span class="p">(</span><span class="n">G2</span><span class="p">)</span>
- <span class="n">c2</span> <span class="o">=</span> <span class="n">nx</span><span class="o">.</span><span class="n">number_of_cliques</span><span class="p">(</span><span class="n">G2</span><span class="p">)</span>
+ <span class="n">clqs_2</span> <span class="o">=</span> <span class="nb">list</span><span class="p">(</span><span class="n">nx</span><span class="o">.</span><span class="n">find_cliques</span><span class="p">(</span><span class="n">G2</span><span class="p">))</span>
+ <span class="n">c2</span> <span class="o">=</span> <span class="p">{</span><span class="n">n</span><span class="p">:</span> <span class="nb">sum</span><span class="p">(</span><span class="mi">1</span> <span class="k">for</span> <span class="n">c</span> <span class="ow">in</span> <span class="n">clqs_2</span> <span class="k">if</span> <span class="n">n</span> <span class="ow">in</span> <span class="n">c</span><span class="p">)</span> <span class="k">for</span> <span class="n">n</span> <span class="ow">in</span> <span class="n">G2</span><span class="p">}</span> <span class="c1"># number of cliques</span>
<span class="n">props2</span> <span class="o">=</span> <span class="p">[[</span><span class="n">d</span><span class="p">,</span> <span class="n">t2</span><span class="p">[</span><span class="n">v</span><span class="p">],</span> <span class="n">c2</span><span class="p">[</span><span class="n">v</span><span class="p">]]</span> <span class="k">for</span> <span class="n">v</span><span class="p">,</span> <span class="n">d</span> <span class="ow">in</span> <span class="n">d2</span><span class="p">]</span>
<span class="n">props2</span><span class="o">.</span><span class="n">sort</span><span class="p">()</span>
@@ -713,11 +727,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/isomorphism/isomorphvf2.html b/_modules/networkx/algorithms/isomorphism/isomorphvf2.html
index 0166cdd5..a64cf4e7 100644
--- a/_modules/networkx/algorithms/isomorphism/isomorphvf2.html
+++ b/_modules/networkx/algorithms/isomorphism/isomorphvf2.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.isomorphism.isomorphvf2 &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.isomorphism.isomorphvf2 &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/isomorphism/isomorphvf2';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/isomorphism/isomorphvf2.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -579,7 +591,7 @@
<span class="sd"> Algorithm for Matching Large Graphs&quot;, 3rd IAPR-TC15 Workshop</span>
<span class="sd"> on Graph-based Representations in Pattern Recognition, Cuen,</span>
<span class="sd"> pp. 149-159, 2001.</span>
-<span class="sd"> https://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.101.5342</span>
+<span class="sd"> https://www.researchgate.net/publication/200034365_An_Improved_Algorithm_for_Matching_Large_Graphs</span>
<span class="sd">See Also</span>
<span class="sd">--------</span>
@@ -910,7 +922,7 @@
<span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">test</span> <span class="o">!=</span> <span class="s2">&quot;mono&quot;</span><span class="p">:</span>
<span class="k">for</span> <span class="n">neighbor</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">G1</span><span class="p">[</span><span class="n">G1_node</span><span class="p">]:</span>
<span class="k">if</span> <span class="n">neighbor</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">core_1</span><span class="p">:</span>
- <span class="k">if</span> <span class="ow">not</span> <span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">core_1</span><span class="p">[</span><span class="n">neighbor</span><span class="p">]</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">G2</span><span class="p">[</span><span class="n">G2_node</span><span class="p">]):</span>
+ <span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">core_1</span><span class="p">[</span><span class="n">neighbor</span><span class="p">]</span> <span class="ow">not</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">G2</span><span class="p">[</span><span class="n">G2_node</span><span class="p">]:</span>
<span class="k">return</span> <span class="kc">False</span>
<span class="k">elif</span> <span class="bp">self</span><span class="o">.</span><span class="n">G1</span><span class="o">.</span><span class="n">number_of_edges</span><span class="p">(</span>
<span class="n">neighbor</span><span class="p">,</span> <span class="n">G1_node</span>
@@ -919,7 +931,7 @@
<span class="k">for</span> <span class="n">neighbor</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">G2</span><span class="p">[</span><span class="n">G2_node</span><span class="p">]:</span>
<span class="k">if</span> <span class="n">neighbor</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">core_2</span><span class="p">:</span>
- <span class="k">if</span> <span class="ow">not</span> <span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">core_2</span><span class="p">[</span><span class="n">neighbor</span><span class="p">]</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">G1</span><span class="p">[</span><span class="n">G1_node</span><span class="p">]):</span>
+ <span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">core_2</span><span class="p">[</span><span class="n">neighbor</span><span class="p">]</span> <span class="ow">not</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">G1</span><span class="p">[</span><span class="n">G1_node</span><span class="p">]:</span>
<span class="k">return</span> <span class="kc">False</span>
<span class="k">elif</span> <span class="bp">self</span><span class="o">.</span><span class="n">test</span> <span class="o">==</span> <span class="s2">&quot;mono&quot;</span><span class="p">:</span>
<span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">G1</span><span class="o">.</span><span class="n">number_of_edges</span><span class="p">(</span>
@@ -947,7 +959,7 @@
<span class="k">if</span> <span class="p">(</span><span class="n">neighbor</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">inout_2</span><span class="p">)</span> <span class="ow">and</span> <span class="p">(</span><span class="n">neighbor</span> <span class="ow">not</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">core_2</span><span class="p">):</span>
<span class="n">num2</span> <span class="o">+=</span> <span class="mi">1</span>
<span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">test</span> <span class="o">==</span> <span class="s2">&quot;graph&quot;</span><span class="p">:</span>
- <span class="k">if</span> <span class="ow">not</span> <span class="p">(</span><span class="n">num1</span> <span class="o">==</span> <span class="n">num2</span><span class="p">):</span>
+ <span class="k">if</span> <span class="n">num1</span> <span class="o">!=</span> <span class="n">num2</span><span class="p">:</span>
<span class="k">return</span> <span class="kc">False</span>
<span class="k">else</span><span class="p">:</span> <span class="c1"># self.test == &#39;subgraph&#39;</span>
<span class="k">if</span> <span class="ow">not</span> <span class="p">(</span><span class="n">num1</span> <span class="o">&gt;=</span> <span class="n">num2</span><span class="p">):</span>
@@ -969,7 +981,7 @@
<span class="k">if</span> <span class="n">neighbor</span> <span class="ow">not</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">inout_2</span><span class="p">:</span>
<span class="n">num2</span> <span class="o">+=</span> <span class="mi">1</span>
<span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">test</span> <span class="o">==</span> <span class="s2">&quot;graph&quot;</span><span class="p">:</span>
- <span class="k">if</span> <span class="ow">not</span> <span class="p">(</span><span class="n">num1</span> <span class="o">==</span> <span class="n">num2</span><span class="p">):</span>
+ <span class="k">if</span> <span class="n">num1</span> <span class="o">!=</span> <span class="n">num2</span><span class="p">:</span>
<span class="k">return</span> <span class="kc">False</span>
<span class="k">else</span><span class="p">:</span> <span class="c1"># self.test == &#39;subgraph&#39;</span>
<span class="k">if</span> <span class="ow">not</span> <span class="p">(</span><span class="n">num1</span> <span class="o">&gt;=</span> <span class="n">num2</span><span class="p">):</span>
@@ -1135,7 +1147,7 @@
<span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">test</span> <span class="o">!=</span> <span class="s2">&quot;mono&quot;</span><span class="p">:</span>
<span class="k">for</span> <span class="n">predecessor</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">G1</span><span class="o">.</span><span class="n">pred</span><span class="p">[</span><span class="n">G1_node</span><span class="p">]:</span>
<span class="k">if</span> <span class="n">predecessor</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">core_1</span><span class="p">:</span>
- <span class="k">if</span> <span class="ow">not</span> <span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">core_1</span><span class="p">[</span><span class="n">predecessor</span><span class="p">]</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">G2</span><span class="o">.</span><span class="n">pred</span><span class="p">[</span><span class="n">G2_node</span><span class="p">]):</span>
+ <span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">core_1</span><span class="p">[</span><span class="n">predecessor</span><span class="p">]</span> <span class="ow">not</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">G2</span><span class="o">.</span><span class="n">pred</span><span class="p">[</span><span class="n">G2_node</span><span class="p">]:</span>
<span class="k">return</span> <span class="kc">False</span>
<span class="k">elif</span> <span class="bp">self</span><span class="o">.</span><span class="n">G1</span><span class="o">.</span><span class="n">number_of_edges</span><span class="p">(</span>
<span class="n">predecessor</span><span class="p">,</span> <span class="n">G1_node</span>
@@ -1144,7 +1156,7 @@
<span class="k">for</span> <span class="n">predecessor</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">G2</span><span class="o">.</span><span class="n">pred</span><span class="p">[</span><span class="n">G2_node</span><span class="p">]:</span>
<span class="k">if</span> <span class="n">predecessor</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">core_2</span><span class="p">:</span>
- <span class="k">if</span> <span class="ow">not</span> <span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">core_2</span><span class="p">[</span><span class="n">predecessor</span><span class="p">]</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">G1</span><span class="o">.</span><span class="n">pred</span><span class="p">[</span><span class="n">G1_node</span><span class="p">]):</span>
+ <span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">core_2</span><span class="p">[</span><span class="n">predecessor</span><span class="p">]</span> <span class="ow">not</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">G1</span><span class="o">.</span><span class="n">pred</span><span class="p">[</span><span class="n">G1_node</span><span class="p">]:</span>
<span class="k">return</span> <span class="kc">False</span>
<span class="k">elif</span> <span class="bp">self</span><span class="o">.</span><span class="n">test</span> <span class="o">==</span> <span class="s2">&quot;mono&quot;</span><span class="p">:</span>
<span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">G1</span><span class="o">.</span><span class="n">number_of_edges</span><span class="p">(</span>
@@ -1165,7 +1177,7 @@
<span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">test</span> <span class="o">!=</span> <span class="s2">&quot;mono&quot;</span><span class="p">:</span>
<span class="k">for</span> <span class="n">successor</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">G1</span><span class="p">[</span><span class="n">G1_node</span><span class="p">]:</span>
<span class="k">if</span> <span class="n">successor</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">core_1</span><span class="p">:</span>
- <span class="k">if</span> <span class="ow">not</span> <span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">core_1</span><span class="p">[</span><span class="n">successor</span><span class="p">]</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">G2</span><span class="p">[</span><span class="n">G2_node</span><span class="p">]):</span>
+ <span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">core_1</span><span class="p">[</span><span class="n">successor</span><span class="p">]</span> <span class="ow">not</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">G2</span><span class="p">[</span><span class="n">G2_node</span><span class="p">]:</span>
<span class="k">return</span> <span class="kc">False</span>
<span class="k">elif</span> <span class="bp">self</span><span class="o">.</span><span class="n">G1</span><span class="o">.</span><span class="n">number_of_edges</span><span class="p">(</span>
<span class="n">G1_node</span><span class="p">,</span> <span class="n">successor</span>
@@ -1174,7 +1186,7 @@
<span class="k">for</span> <span class="n">successor</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">G2</span><span class="p">[</span><span class="n">G2_node</span><span class="p">]:</span>
<span class="k">if</span> <span class="n">successor</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">core_2</span><span class="p">:</span>
- <span class="k">if</span> <span class="ow">not</span> <span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">core_2</span><span class="p">[</span><span class="n">successor</span><span class="p">]</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">G1</span><span class="p">[</span><span class="n">G1_node</span><span class="p">]):</span>
+ <span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">core_2</span><span class="p">[</span><span class="n">successor</span><span class="p">]</span> <span class="ow">not</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">G1</span><span class="p">[</span><span class="n">G1_node</span><span class="p">]:</span>
<span class="k">return</span> <span class="kc">False</span>
<span class="k">elif</span> <span class="bp">self</span><span class="o">.</span><span class="n">test</span> <span class="o">==</span> <span class="s2">&quot;mono&quot;</span><span class="p">:</span>
<span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">G1</span><span class="o">.</span><span class="n">number_of_edges</span><span class="p">(</span>
@@ -1188,7 +1200,6 @@
<span class="k">return</span> <span class="kc">False</span>
<span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">test</span> <span class="o">!=</span> <span class="s2">&quot;mono&quot;</span><span class="p">:</span>
-
<span class="c1"># Look ahead 1</span>
<span class="c1"># R_termin</span>
@@ -1203,7 +1214,7 @@
<span class="k">if</span> <span class="p">(</span><span class="n">predecessor</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">in_2</span><span class="p">)</span> <span class="ow">and</span> <span class="p">(</span><span class="n">predecessor</span> <span class="ow">not</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">core_2</span><span class="p">):</span>
<span class="n">num2</span> <span class="o">+=</span> <span class="mi">1</span>
<span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">test</span> <span class="o">==</span> <span class="s2">&quot;graph&quot;</span><span class="p">:</span>
- <span class="k">if</span> <span class="ow">not</span> <span class="p">(</span><span class="n">num1</span> <span class="o">==</span> <span class="n">num2</span><span class="p">):</span>
+ <span class="k">if</span> <span class="n">num1</span> <span class="o">!=</span> <span class="n">num2</span><span class="p">:</span>
<span class="k">return</span> <span class="kc">False</span>
<span class="k">else</span><span class="p">:</span> <span class="c1"># self.test == &#39;subgraph&#39;</span>
<span class="k">if</span> <span class="ow">not</span> <span class="p">(</span><span class="n">num1</span> <span class="o">&gt;=</span> <span class="n">num2</span><span class="p">):</span>
@@ -1220,7 +1231,7 @@
<span class="k">if</span> <span class="p">(</span><span class="n">successor</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">in_2</span><span class="p">)</span> <span class="ow">and</span> <span class="p">(</span><span class="n">successor</span> <span class="ow">not</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">core_2</span><span class="p">):</span>
<span class="n">num2</span> <span class="o">+=</span> <span class="mi">1</span>
<span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">test</span> <span class="o">==</span> <span class="s2">&quot;graph&quot;</span><span class="p">:</span>
- <span class="k">if</span> <span class="ow">not</span> <span class="p">(</span><span class="n">num1</span> <span class="o">==</span> <span class="n">num2</span><span class="p">):</span>
+ <span class="k">if</span> <span class="n">num1</span> <span class="o">!=</span> <span class="n">num2</span><span class="p">:</span>
<span class="k">return</span> <span class="kc">False</span>
<span class="k">else</span><span class="p">:</span> <span class="c1"># self.test == &#39;subgraph&#39;</span>
<span class="k">if</span> <span class="ow">not</span> <span class="p">(</span><span class="n">num1</span> <span class="o">&gt;=</span> <span class="n">num2</span><span class="p">):</span>
@@ -1239,7 +1250,7 @@
<span class="k">if</span> <span class="p">(</span><span class="n">predecessor</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">out_2</span><span class="p">)</span> <span class="ow">and</span> <span class="p">(</span><span class="n">predecessor</span> <span class="ow">not</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">core_2</span><span class="p">):</span>
<span class="n">num2</span> <span class="o">+=</span> <span class="mi">1</span>
<span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">test</span> <span class="o">==</span> <span class="s2">&quot;graph&quot;</span><span class="p">:</span>
- <span class="k">if</span> <span class="ow">not</span> <span class="p">(</span><span class="n">num1</span> <span class="o">==</span> <span class="n">num2</span><span class="p">):</span>
+ <span class="k">if</span> <span class="n">num1</span> <span class="o">!=</span> <span class="n">num2</span><span class="p">:</span>
<span class="k">return</span> <span class="kc">False</span>
<span class="k">else</span><span class="p">:</span> <span class="c1"># self.test == &#39;subgraph&#39;</span>
<span class="k">if</span> <span class="ow">not</span> <span class="p">(</span><span class="n">num1</span> <span class="o">&gt;=</span> <span class="n">num2</span><span class="p">):</span>
@@ -1256,7 +1267,7 @@
<span class="k">if</span> <span class="p">(</span><span class="n">successor</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">out_2</span><span class="p">)</span> <span class="ow">and</span> <span class="p">(</span><span class="n">successor</span> <span class="ow">not</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">core_2</span><span class="p">):</span>
<span class="n">num2</span> <span class="o">+=</span> <span class="mi">1</span>
<span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">test</span> <span class="o">==</span> <span class="s2">&quot;graph&quot;</span><span class="p">:</span>
- <span class="k">if</span> <span class="ow">not</span> <span class="p">(</span><span class="n">num1</span> <span class="o">==</span> <span class="n">num2</span><span class="p">):</span>
+ <span class="k">if</span> <span class="n">num1</span> <span class="o">!=</span> <span class="n">num2</span><span class="p">:</span>
<span class="k">return</span> <span class="kc">False</span>
<span class="k">else</span><span class="p">:</span> <span class="c1"># self.test == &#39;subgraph&#39;</span>
<span class="k">if</span> <span class="ow">not</span> <span class="p">(</span><span class="n">num1</span> <span class="o">&gt;=</span> <span class="n">num2</span><span class="p">):</span>
@@ -1278,7 +1289,7 @@
<span class="k">if</span> <span class="p">(</span><span class="n">predecessor</span> <span class="ow">not</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">in_2</span><span class="p">)</span> <span class="ow">and</span> <span class="p">(</span><span class="n">predecessor</span> <span class="ow">not</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">out_2</span><span class="p">):</span>
<span class="n">num2</span> <span class="o">+=</span> <span class="mi">1</span>
<span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">test</span> <span class="o">==</span> <span class="s2">&quot;graph&quot;</span><span class="p">:</span>
- <span class="k">if</span> <span class="ow">not</span> <span class="p">(</span><span class="n">num1</span> <span class="o">==</span> <span class="n">num2</span><span class="p">):</span>
+ <span class="k">if</span> <span class="n">num1</span> <span class="o">!=</span> <span class="n">num2</span><span class="p">:</span>
<span class="k">return</span> <span class="kc">False</span>
<span class="k">else</span><span class="p">:</span> <span class="c1"># self.test == &#39;subgraph&#39;</span>
<span class="k">if</span> <span class="ow">not</span> <span class="p">(</span><span class="n">num1</span> <span class="o">&gt;=</span> <span class="n">num2</span><span class="p">):</span>
@@ -1296,7 +1307,7 @@
<span class="k">if</span> <span class="p">(</span><span class="n">successor</span> <span class="ow">not</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">in_2</span><span class="p">)</span> <span class="ow">and</span> <span class="p">(</span><span class="n">successor</span> <span class="ow">not</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">out_2</span><span class="p">):</span>
<span class="n">num2</span> <span class="o">+=</span> <span class="mi">1</span>
<span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">test</span> <span class="o">==</span> <span class="s2">&quot;graph&quot;</span><span class="p">:</span>
- <span class="k">if</span> <span class="ow">not</span> <span class="p">(</span><span class="n">num1</span> <span class="o">==</span> <span class="n">num2</span><span class="p">):</span>
+ <span class="k">if</span> <span class="n">num1</span> <span class="o">!=</span> <span class="n">num2</span><span class="p">:</span>
<span class="k">return</span> <span class="kc">False</span>
<span class="k">else</span><span class="p">:</span> <span class="c1"># self.test == &#39;subgraph&#39;</span>
<span class="k">if</span> <span class="ow">not</span> <span class="p">(</span><span class="n">num1</span> <span class="o">&gt;=</span> <span class="n">num2</span><span class="p">):</span>
@@ -1536,11 +1547,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/isomorphism/matchhelpers.html b/_modules/networkx/algorithms/isomorphism/matchhelpers.html
index dca838b0..3fa28587 100644
--- a/_modules/networkx/algorithms/isomorphism/matchhelpers.html
+++ b/_modules/networkx/algorithms/isomorphism/matchhelpers.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.isomorphism.matchhelpers &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.isomorphism.matchhelpers &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/isomorphism/matchhelpers';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/isomorphism/matchhelpers.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -500,10 +512,7 @@
<span class="sd"> &quot;&quot;&quot;</span>
<span class="c1"># assume finite weights, see numpy.allclose() for reference</span>
- <span class="k">for</span> <span class="n">xi</span><span class="p">,</span> <span class="n">yi</span> <span class="ow">in</span> <span class="nb">zip</span><span class="p">(</span><span class="n">x</span><span class="p">,</span> <span class="n">y</span><span class="p">):</span>
- <span class="k">if</span> <span class="ow">not</span> <span class="n">math</span><span class="o">.</span><span class="n">isclose</span><span class="p">(</span><span class="n">xi</span><span class="p">,</span> <span class="n">yi</span><span class="p">,</span> <span class="n">rel_tol</span><span class="o">=</span><span class="n">rtol</span><span class="p">,</span> <span class="n">abs_tol</span><span class="o">=</span><span class="n">atol</span><span class="p">):</span>
- <span class="k">return</span> <span class="kc">False</span>
- <span class="k">return</span> <span class="kc">True</span>
+ <span class="k">return</span> <span class="nb">all</span><span class="p">(</span><span class="n">math</span><span class="o">.</span><span class="n">isclose</span><span class="p">(</span><span class="n">xi</span><span class="p">,</span> <span class="n">yi</span><span class="p">,</span> <span class="n">rel_tol</span><span class="o">=</span><span class="n">rtol</span><span class="p">,</span> <span class="n">abs_tol</span><span class="o">=</span><span class="n">atol</span><span class="p">)</span> <span class="k">for</span> <span class="n">xi</span><span class="p">,</span> <span class="n">yi</span> <span class="ow">in</span> <span class="nb">zip</span><span class="p">(</span><span class="n">x</span><span class="p">,</span> <span class="n">y</span><span class="p">))</span>
<span class="n">categorical_doc</span> <span class="o">=</span> <span class="s2">&quot;&quot;&quot;</span>
@@ -830,11 +839,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/isomorphism/tree_isomorphism.html b/_modules/networkx/algorithms/isomorphism/tree_isomorphism.html
index bddf86ea..60d8ee17 100644
--- a/_modules/networkx/algorithms/isomorphism/tree_isomorphism.html
+++ b/_modules/networkx/algorithms/isomorphism/tree_isomorphism.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.isomorphism.tree_isomorphism &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.isomorphism.tree_isomorphism &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/isomorphism/tree_isomorphism';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/isomorphism/tree_isomorphism.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -537,7 +549,7 @@
<span class="k">def</span> <span class="nf">assign_levels</span><span class="p">(</span><span class="n">G</span><span class="p">,</span> <span class="n">root</span><span class="p">):</span>
<span class="n">level</span> <span class="o">=</span> <span class="p">{}</span>
<span class="n">level</span><span class="p">[</span><span class="n">root</span><span class="p">]</span> <span class="o">=</span> <span class="mi">0</span>
- <span class="k">for</span> <span class="p">(</span><span class="n">v1</span><span class="p">,</span> <span class="n">v2</span><span class="p">)</span> <span class="ow">in</span> <span class="n">nx</span><span class="o">.</span><span class="n">bfs_edges</span><span class="p">(</span><span class="n">G</span><span class="p">,</span> <span class="n">root</span><span class="p">):</span>
+ <span class="k">for</span> <span class="n">v1</span><span class="p">,</span> <span class="n">v2</span> <span class="ow">in</span> <span class="n">nx</span><span class="o">.</span><span class="n">bfs_edges</span><span class="p">(</span><span class="n">G</span><span class="p">,</span> <span class="n">root</span><span class="p">):</span>
<span class="n">level</span><span class="p">[</span><span class="n">v2</span><span class="p">]</span> <span class="o">=</span> <span class="n">level</span><span class="p">[</span><span class="n">v1</span><span class="p">]</span> <span class="o">+</span> <span class="mi">1</span>
<span class="k">return</span> <span class="n">level</span>
@@ -546,7 +558,7 @@
<span class="c1"># now group the nodes at each level</span>
<span class="k">def</span> <span class="nf">group_by_levels</span><span class="p">(</span><span class="n">levels</span><span class="p">):</span>
<span class="n">L</span> <span class="o">=</span> <span class="p">{}</span>
- <span class="k">for</span> <span class="p">(</span><span class="n">n</span><span class="p">,</span> <span class="n">lev</span><span class="p">)</span> <span class="ow">in</span> <span class="n">levels</span><span class="o">.</span><span class="n">items</span><span class="p">():</span>
+ <span class="k">for</span> <span class="n">n</span><span class="p">,</span> <span class="n">lev</span> <span class="ow">in</span> <span class="n">levels</span><span class="o">.</span><span class="n">items</span><span class="p">():</span>
<span class="k">if</span> <span class="n">lev</span> <span class="ow">not</span> <span class="ow">in</span> <span class="n">L</span><span class="p">:</span>
<span class="n">L</span><span class="p">[</span><span class="n">lev</span><span class="p">]</span> <span class="o">=</span> <span class="p">[]</span>
<span class="n">L</span><span class="p">[</span><span class="n">lev</span><span class="p">]</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">n</span><span class="p">)</span>
@@ -566,7 +578,7 @@
<div class="viewcode-block" id="rooted_tree_isomorphism"><a class="viewcode-back" href="../../../../reference/algorithms/generated/networkx.algorithms.isomorphism.tree_isomorphism.rooted_tree_isomorphism.html#networkx.algorithms.isomorphism.tree_isomorphism.rooted_tree_isomorphism">[docs]</a><span class="k">def</span> <span class="nf">rooted_tree_isomorphism</span><span class="p">(</span><span class="n">t1</span><span class="p">,</span> <span class="n">root1</span><span class="p">,</span> <span class="n">t2</span><span class="p">,</span> <span class="n">root2</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> Given two rooted trees `t1` and `t2`,</span>
-<span class="sd"> with roots `root1` and `root2` respectivly</span>
+<span class="sd"> with roots `root1` and `root2` respectively</span>
<span class="sd"> this routine will determine if they are isomorphic.</span>
<span class="sd"> These trees may be either directed or undirected,</span>
@@ -649,7 +661,7 @@
<span class="n">forlabel</span> <span class="o">=</span> <span class="nb">sorted</span><span class="p">((</span><span class="n">ordered_labels</span><span class="p">[</span><span class="n">v</span><span class="p">],</span> <span class="n">v</span><span class="p">)</span> <span class="k">for</span> <span class="n">v</span> <span class="ow">in</span> <span class="n">L</span><span class="p">[</span><span class="n">i</span><span class="p">])</span>
<span class="c1"># now assign labels to these nodes, according to the sorted order</span>
- <span class="c1"># starting from 0, where idential ordered_labels get the same label</span>
+ <span class="c1"># starting from 0, where identical ordered_labels get the same label</span>
<span class="n">current</span> <span class="o">=</span> <span class="mi">0</span>
<span class="k">for</span> <span class="n">i</span><span class="p">,</span> <span class="p">(</span><span class="n">ol</span><span class="p">,</span> <span class="n">v</span><span class="p">)</span> <span class="ow">in</span> <span class="nb">enumerate</span><span class="p">(</span><span class="n">forlabel</span><span class="p">):</span>
<span class="c1"># advance to next label if not 0, and different from previous</span>
@@ -754,11 +766,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/isomorphism/vf2pp.html b/_modules/networkx/algorithms/isomorphism/vf2pp.html
index 8379e377..0179464d 100644
--- a/_modules/networkx/algorithms/isomorphism/vf2pp.html
+++ b/_modules/networkx/algorithms/isomorphism/vf2pp.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.isomorphism.vf2pp &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.isomorphism.vf2pp &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/isomorphism/vf2pp';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/isomorphism/vf2pp.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -466,7 +478,7 @@
<span class="sd">VF2++ Algorithm</span>
<span class="sd">***************</span>
-<span class="sd">An implementation of the VF2++ algorithm for Graph Isomorphism testing.</span>
+<span class="sd">An implementation of the VF2++ algorithm [1]_ for Graph Isomorphism testing.</span>
<span class="sd">The simplest interface to use this module is to call:</span>
@@ -517,16 +529,17 @@
<span class="sd">&gt;&gt;&gt; nx.vf2pp_isomorphism(G1, G2, node_label=&quot;label&quot;)</span>
<span class="sd">{1: 1, 2: 2, 0: 0, 3: 3}</span>
+<span class="sd">References</span>
+<span class="sd">----------</span>
+<span class="sd">.. [1] Jüttner, Alpár &amp; Madarasi, Péter. (2018). &quot;VF2++—An improved subgraph</span>
+<span class="sd"> isomorphism algorithm&quot;. Discrete Applied Mathematics. 242.</span>
+<span class="sd"> https://doi.org/10.1016/j.dam.2018.02.018</span>
+
<span class="sd">&quot;&quot;&quot;</span>
<span class="kn">import</span> <span class="nn">collections</span>
<span class="kn">import</span> <span class="nn">networkx</span> <span class="k">as</span> <span class="nn">nx</span>
-<span class="kn">from</span> <span class="nn">.vf2pp_helpers.candidates</span> <span class="kn">import</span> <span class="n">_find_candidates</span><span class="p">,</span> <span class="n">_find_candidates_Di</span>
-<span class="kn">from</span> <span class="nn">.vf2pp_helpers.feasibility</span> <span class="kn">import</span> <span class="n">_feasibility</span>
-<span class="kn">from</span> <span class="nn">.vf2pp_helpers.node_ordering</span> <span class="kn">import</span> <span class="n">_matching_order</span>
-<span class="kn">from</span> <span class="nn">.vf2pp_helpers.state</span> <span class="kn">import</span> <span class="n">_restore_Tinout</span><span class="p">,</span> <span class="n">_restore_Tinout_Di</span><span class="p">,</span> <span class="n">_update_Tinout</span>
-
<span class="n">__all__</span> <span class="o">=</span> <span class="p">[</span><span class="s2">&quot;vf2pp_isomorphism&quot;</span><span class="p">,</span> <span class="s2">&quot;vf2pp_is_isomorphic&quot;</span><span class="p">,</span> <span class="s2">&quot;vf2pp_all_isomorphisms&quot;</span><span class="p">]</span>
<span class="n">_GraphParameters</span> <span class="o">=</span> <span class="n">collections</span><span class="o">.</span><span class="n">namedtuple</span><span class="p">(</span>
@@ -806,8 +819,8 @@
<span class="n">T2_tilde</span><span class="p">,</span> <span class="n">T2_tilde_in</span> <span class="o">=</span> <span class="nb">set</span><span class="p">(</span><span class="n">G2</span><span class="o">.</span><span class="n">nodes</span><span class="p">()),</span> <span class="nb">set</span><span class="p">()</span>
<span class="n">state_params</span> <span class="o">=</span> <span class="n">_StateParameters</span><span class="p">(</span>
- <span class="nb">dict</span><span class="p">(),</span>
- <span class="nb">dict</span><span class="p">(),</span>
+ <span class="p">{},</span>
+ <span class="p">{},</span>
<span class="n">T1</span><span class="p">,</span>
<span class="n">T1_in</span><span class="p">,</span>
<span class="n">T1_tilde</span><span class="p">,</span>
@@ -819,6 +832,712 @@
<span class="p">)</span>
<span class="k">return</span> <span class="n">graph_params</span><span class="p">,</span> <span class="n">state_params</span>
+
+
+<span class="k">def</span> <span class="nf">_matching_order</span><span class="p">(</span><span class="n">graph_params</span><span class="p">):</span>
+<span class="w"> </span><span class="sd">&quot;&quot;&quot;The node ordering as introduced in VF2++.</span>
+
+<span class="sd"> Notes</span>
+<span class="sd"> -----</span>
+<span class="sd"> Taking into account the structure of the Graph and the node labeling, the nodes are placed in an order such that,</span>
+<span class="sd"> most of the unfruitful/infeasible branches of the search space can be pruned on high levels, significantly</span>
+<span class="sd"> decreasing the number of visited states. The premise is that, the algorithm will be able to recognize</span>
+<span class="sd"> inconsistencies early, proceeding to go deep into the search tree only if it&#39;s needed.</span>
+
+<span class="sd"> Parameters</span>
+<span class="sd"> ----------</span>
+<span class="sd"> graph_params: namedtuple</span>
+<span class="sd"> Contains:</span>
+
+<span class="sd"> G1,G2: NetworkX Graph or MultiGraph instances.</span>
+<span class="sd"> The two graphs to check for isomorphism or monomorphism.</span>
+
+<span class="sd"> G1_labels,G2_labels: dict</span>
+<span class="sd"> The label of every node in G1 and G2 respectively.</span>
+
+<span class="sd"> Returns</span>
+<span class="sd"> -------</span>
+<span class="sd"> node_order: list</span>
+<span class="sd"> The ordering of the nodes.</span>
+<span class="sd"> &quot;&quot;&quot;</span>
+ <span class="n">G1</span><span class="p">,</span> <span class="n">G2</span><span class="p">,</span> <span class="n">G1_labels</span><span class="p">,</span> <span class="n">_</span><span class="p">,</span> <span class="n">_</span><span class="p">,</span> <span class="n">nodes_of_G2Labels</span><span class="p">,</span> <span class="n">_</span> <span class="o">=</span> <span class="n">graph_params</span>
+ <span class="k">if</span> <span class="ow">not</span> <span class="n">G1</span> <span class="ow">and</span> <span class="ow">not</span> <span class="n">G2</span><span class="p">:</span>
+ <span class="k">return</span> <span class="p">{}</span>
+
+ <span class="k">if</span> <span class="n">G1</span><span class="o">.</span><span class="n">is_directed</span><span class="p">():</span>
+ <span class="n">G1</span> <span class="o">=</span> <span class="n">G1</span><span class="o">.</span><span class="n">to_undirected</span><span class="p">(</span><span class="n">as_view</span><span class="o">=</span><span class="kc">True</span><span class="p">)</span>
+
+ <span class="n">V1_unordered</span> <span class="o">=</span> <span class="nb">set</span><span class="p">(</span><span class="n">G1</span><span class="o">.</span><span class="n">nodes</span><span class="p">())</span>
+ <span class="n">label_rarity</span> <span class="o">=</span> <span class="p">{</span><span class="n">label</span><span class="p">:</span> <span class="nb">len</span><span class="p">(</span><span class="n">nodes</span><span class="p">)</span> <span class="k">for</span> <span class="n">label</span><span class="p">,</span> <span class="n">nodes</span> <span class="ow">in</span> <span class="n">nodes_of_G2Labels</span><span class="o">.</span><span class="n">items</span><span class="p">()}</span>
+ <span class="n">used_degrees</span> <span class="o">=</span> <span class="p">{</span><span class="n">node</span><span class="p">:</span> <span class="mi">0</span> <span class="k">for</span> <span class="n">node</span> <span class="ow">in</span> <span class="n">G1</span><span class="p">}</span>
+ <span class="n">node_order</span> <span class="o">=</span> <span class="p">[]</span>
+
+ <span class="k">while</span> <span class="n">V1_unordered</span><span class="p">:</span>
+ <span class="n">max_rarity</span> <span class="o">=</span> <span class="nb">min</span><span class="p">(</span><span class="n">label_rarity</span><span class="p">[</span><span class="n">G1_labels</span><span class="p">[</span><span class="n">x</span><span class="p">]]</span> <span class="k">for</span> <span class="n">x</span> <span class="ow">in</span> <span class="n">V1_unordered</span><span class="p">)</span>
+ <span class="n">rarest_nodes</span> <span class="o">=</span> <span class="p">[</span>
+ <span class="n">n</span> <span class="k">for</span> <span class="n">n</span> <span class="ow">in</span> <span class="n">V1_unordered</span> <span class="k">if</span> <span class="n">label_rarity</span><span class="p">[</span><span class="n">G1_labels</span><span class="p">[</span><span class="n">n</span><span class="p">]]</span> <span class="o">==</span> <span class="n">max_rarity</span>
+ <span class="p">]</span>
+ <span class="n">max_node</span> <span class="o">=</span> <span class="nb">max</span><span class="p">(</span><span class="n">rarest_nodes</span><span class="p">,</span> <span class="n">key</span><span class="o">=</span><span class="n">G1</span><span class="o">.</span><span class="n">degree</span><span class="p">)</span>
+
+ <span class="k">for</span> <span class="n">dlevel_nodes</span> <span class="ow">in</span> <span class="n">nx</span><span class="o">.</span><span class="n">bfs_layers</span><span class="p">(</span><span class="n">G1</span><span class="p">,</span> <span class="n">max_node</span><span class="p">):</span>
+ <span class="n">nodes_to_add</span> <span class="o">=</span> <span class="n">dlevel_nodes</span><span class="o">.</span><span class="n">copy</span><span class="p">()</span>
+ <span class="k">while</span> <span class="n">nodes_to_add</span><span class="p">:</span>
+ <span class="n">max_used_degree</span> <span class="o">=</span> <span class="nb">max</span><span class="p">(</span><span class="n">used_degrees</span><span class="p">[</span><span class="n">n</span><span class="p">]</span> <span class="k">for</span> <span class="n">n</span> <span class="ow">in</span> <span class="n">nodes_to_add</span><span class="p">)</span>
+ <span class="n">max_used_degree_nodes</span> <span class="o">=</span> <span class="p">[</span>
+ <span class="n">n</span> <span class="k">for</span> <span class="n">n</span> <span class="ow">in</span> <span class="n">nodes_to_add</span> <span class="k">if</span> <span class="n">used_degrees</span><span class="p">[</span><span class="n">n</span><span class="p">]</span> <span class="o">==</span> <span class="n">max_used_degree</span>
+ <span class="p">]</span>
+ <span class="n">max_degree</span> <span class="o">=</span> <span class="nb">max</span><span class="p">(</span><span class="n">G1</span><span class="o">.</span><span class="n">degree</span><span class="p">[</span><span class="n">n</span><span class="p">]</span> <span class="k">for</span> <span class="n">n</span> <span class="ow">in</span> <span class="n">max_used_degree_nodes</span><span class="p">)</span>
+ <span class="n">max_degree_nodes</span> <span class="o">=</span> <span class="p">[</span>
+ <span class="n">n</span> <span class="k">for</span> <span class="n">n</span> <span class="ow">in</span> <span class="n">max_used_degree_nodes</span> <span class="k">if</span> <span class="n">G1</span><span class="o">.</span><span class="n">degree</span><span class="p">[</span><span class="n">n</span><span class="p">]</span> <span class="o">==</span> <span class="n">max_degree</span>
+ <span class="p">]</span>
+ <span class="n">next_node</span> <span class="o">=</span> <span class="nb">min</span><span class="p">(</span>
+ <span class="n">max_degree_nodes</span><span class="p">,</span> <span class="n">key</span><span class="o">=</span><span class="k">lambda</span> <span class="n">x</span><span class="p">:</span> <span class="n">label_rarity</span><span class="p">[</span><span class="n">G1_labels</span><span class="p">[</span><span class="n">x</span><span class="p">]]</span>
+ <span class="p">)</span>
+
+ <span class="n">node_order</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">next_node</span><span class="p">)</span>
+ <span class="k">for</span> <span class="n">node</span> <span class="ow">in</span> <span class="n">G1</span><span class="o">.</span><span class="n">neighbors</span><span class="p">(</span><span class="n">next_node</span><span class="p">):</span>
+ <span class="n">used_degrees</span><span class="p">[</span><span class="n">node</span><span class="p">]</span> <span class="o">+=</span> <span class="mi">1</span>
+
+ <span class="n">nodes_to_add</span><span class="o">.</span><span class="n">remove</span><span class="p">(</span><span class="n">next_node</span><span class="p">)</span>
+ <span class="n">label_rarity</span><span class="p">[</span><span class="n">G1_labels</span><span class="p">[</span><span class="n">next_node</span><span class="p">]]</span> <span class="o">-=</span> <span class="mi">1</span>
+ <span class="n">V1_unordered</span><span class="o">.</span><span class="n">discard</span><span class="p">(</span><span class="n">next_node</span><span class="p">)</span>
+
+ <span class="k">return</span> <span class="n">node_order</span>
+
+
+<span class="k">def</span> <span class="nf">_find_candidates</span><span class="p">(</span>
+ <span class="n">u</span><span class="p">,</span> <span class="n">graph_params</span><span class="p">,</span> <span class="n">state_params</span><span class="p">,</span> <span class="n">G1_degree</span>
+<span class="p">):</span> <span class="c1"># todo: make the 4th argument the degree of u</span>
+<span class="w"> </span><span class="sd">&quot;&quot;&quot;Given node u of G1, finds the candidates of u from G2.</span>
+
+<span class="sd"> Parameters</span>
+<span class="sd"> ----------</span>
+<span class="sd"> u: Graph node</span>
+<span class="sd"> The node from G1 for which to find the candidates from G2.</span>
+
+<span class="sd"> graph_params: namedtuple</span>
+<span class="sd"> Contains all the Graph-related parameters:</span>
+
+<span class="sd"> G1,G2: NetworkX Graph or MultiGraph instances.</span>
+<span class="sd"> The two graphs to check for isomorphism or monomorphism</span>
+
+<span class="sd"> G1_labels,G2_labels: dict</span>
+<span class="sd"> The label of every node in G1 and G2 respectively</span>
+
+<span class="sd"> state_params: namedtuple</span>
+<span class="sd"> Contains all the State-related parameters:</span>
+
+<span class="sd"> mapping: dict</span>
+<span class="sd"> The mapping as extended so far. Maps nodes of G1 to nodes of G2</span>
+
+<span class="sd"> reverse_mapping: dict</span>
+<span class="sd"> The reverse mapping as extended so far. Maps nodes from G2 to nodes of G1. It&#39;s basically &quot;mapping&quot; reversed</span>
+
+<span class="sd"> T1, T2: set</span>
+<span class="sd"> Ti contains uncovered neighbors of covered nodes from Gi, i.e. nodes that are not in the mapping, but are</span>
+<span class="sd"> neighbors of nodes that are.</span>
+
+<span class="sd"> T1_tilde, T2_tilde: set</span>
+<span class="sd"> Ti_tilde contains all the nodes from Gi, that are neither in the mapping nor in Ti</span>
+
+<span class="sd"> Returns</span>
+<span class="sd"> -------</span>
+<span class="sd"> candidates: set</span>
+<span class="sd"> The nodes from G2 which are candidates for u.</span>
+<span class="sd"> &quot;&quot;&quot;</span>
+ <span class="n">G1</span><span class="p">,</span> <span class="n">G2</span><span class="p">,</span> <span class="n">G1_labels</span><span class="p">,</span> <span class="n">_</span><span class="p">,</span> <span class="n">_</span><span class="p">,</span> <span class="n">nodes_of_G2Labels</span><span class="p">,</span> <span class="n">G2_nodes_of_degree</span> <span class="o">=</span> <span class="n">graph_params</span>
+ <span class="n">mapping</span><span class="p">,</span> <span class="n">reverse_mapping</span><span class="p">,</span> <span class="n">_</span><span class="p">,</span> <span class="n">_</span><span class="p">,</span> <span class="n">_</span><span class="p">,</span> <span class="n">_</span><span class="p">,</span> <span class="n">_</span><span class="p">,</span> <span class="n">_</span><span class="p">,</span> <span class="n">T2_tilde</span><span class="p">,</span> <span class="n">_</span> <span class="o">=</span> <span class="n">state_params</span>
+
+ <span class="n">covered_neighbors</span> <span class="o">=</span> <span class="p">[</span><span class="n">nbr</span> <span class="k">for</span> <span class="n">nbr</span> <span class="ow">in</span> <span class="n">G1</span><span class="p">[</span><span class="n">u</span><span class="p">]</span> <span class="k">if</span> <span class="n">nbr</span> <span class="ow">in</span> <span class="n">mapping</span><span class="p">]</span>
+ <span class="k">if</span> <span class="ow">not</span> <span class="n">covered_neighbors</span><span class="p">:</span>
+ <span class="n">candidates</span> <span class="o">=</span> <span class="nb">set</span><span class="p">(</span><span class="n">nodes_of_G2Labels</span><span class="p">[</span><span class="n">G1_labels</span><span class="p">[</span><span class="n">u</span><span class="p">]])</span>
+ <span class="n">candidates</span><span class="o">.</span><span class="n">intersection_update</span><span class="p">(</span><span class="n">G2_nodes_of_degree</span><span class="p">[</span><span class="n">G1_degree</span><span class="p">[</span><span class="n">u</span><span class="p">]])</span>
+ <span class="n">candidates</span><span class="o">.</span><span class="n">intersection_update</span><span class="p">(</span><span class="n">T2_tilde</span><span class="p">)</span>
+ <span class="n">candidates</span><span class="o">.</span><span class="n">difference_update</span><span class="p">(</span><span class="n">reverse_mapping</span><span class="p">)</span>
+ <span class="k">if</span> <span class="n">G1</span><span class="o">.</span><span class="n">is_multigraph</span><span class="p">():</span>
+ <span class="n">candidates</span><span class="o">.</span><span class="n">difference_update</span><span class="p">(</span>
+ <span class="p">{</span>
+ <span class="n">node</span>
+ <span class="k">for</span> <span class="n">node</span> <span class="ow">in</span> <span class="n">candidates</span>
+ <span class="k">if</span> <span class="n">G1</span><span class="o">.</span><span class="n">number_of_edges</span><span class="p">(</span><span class="n">u</span><span class="p">,</span> <span class="n">u</span><span class="p">)</span> <span class="o">!=</span> <span class="n">G2</span><span class="o">.</span><span class="n">number_of_edges</span><span class="p">(</span><span class="n">node</span><span class="p">,</span> <span class="n">node</span><span class="p">)</span>
+ <span class="p">}</span>
+ <span class="p">)</span>
+ <span class="k">return</span> <span class="n">candidates</span>
+
+ <span class="n">nbr1</span> <span class="o">=</span> <span class="n">covered_neighbors</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span>
+ <span class="n">common_nodes</span> <span class="o">=</span> <span class="nb">set</span><span class="p">(</span><span class="n">G2</span><span class="p">[</span><span class="n">mapping</span><span class="p">[</span><span class="n">nbr1</span><span class="p">]])</span>
+
+ <span class="k">for</span> <span class="n">nbr1</span> <span class="ow">in</span> <span class="n">covered_neighbors</span><span class="p">[</span><span class="mi">1</span><span class="p">:]:</span>
+ <span class="n">common_nodes</span><span class="o">.</span><span class="n">intersection_update</span><span class="p">(</span><span class="n">G2</span><span class="p">[</span><span class="n">mapping</span><span class="p">[</span><span class="n">nbr1</span><span class="p">]])</span>
+
+ <span class="n">common_nodes</span><span class="o">.</span><span class="n">difference_update</span><span class="p">(</span><span class="n">reverse_mapping</span><span class="p">)</span>
+ <span class="n">common_nodes</span><span class="o">.</span><span class="n">intersection_update</span><span class="p">(</span><span class="n">G2_nodes_of_degree</span><span class="p">[</span><span class="n">G1_degree</span><span class="p">[</span><span class="n">u</span><span class="p">]])</span>
+ <span class="n">common_nodes</span><span class="o">.</span><span class="n">intersection_update</span><span class="p">(</span><span class="n">nodes_of_G2Labels</span><span class="p">[</span><span class="n">G1_labels</span><span class="p">[</span><span class="n">u</span><span class="p">]])</span>
+ <span class="k">if</span> <span class="n">G1</span><span class="o">.</span><span class="n">is_multigraph</span><span class="p">():</span>
+ <span class="n">common_nodes</span><span class="o">.</span><span class="n">difference_update</span><span class="p">(</span>
+ <span class="p">{</span>
+ <span class="n">node</span>
+ <span class="k">for</span> <span class="n">node</span> <span class="ow">in</span> <span class="n">common_nodes</span>
+ <span class="k">if</span> <span class="n">G1</span><span class="o">.</span><span class="n">number_of_edges</span><span class="p">(</span><span class="n">u</span><span class="p">,</span> <span class="n">u</span><span class="p">)</span> <span class="o">!=</span> <span class="n">G2</span><span class="o">.</span><span class="n">number_of_edges</span><span class="p">(</span><span class="n">node</span><span class="p">,</span> <span class="n">node</span><span class="p">)</span>
+ <span class="p">}</span>
+ <span class="p">)</span>
+ <span class="k">return</span> <span class="n">common_nodes</span>
+
+
+<span class="k">def</span> <span class="nf">_find_candidates_Di</span><span class="p">(</span><span class="n">u</span><span class="p">,</span> <span class="n">graph_params</span><span class="p">,</span> <span class="n">state_params</span><span class="p">,</span> <span class="n">G1_degree</span><span class="p">):</span>
+ <span class="n">G1</span><span class="p">,</span> <span class="n">G2</span><span class="p">,</span> <span class="n">G1_labels</span><span class="p">,</span> <span class="n">_</span><span class="p">,</span> <span class="n">_</span><span class="p">,</span> <span class="n">nodes_of_G2Labels</span><span class="p">,</span> <span class="n">G2_nodes_of_degree</span> <span class="o">=</span> <span class="n">graph_params</span>
+ <span class="n">mapping</span><span class="p">,</span> <span class="n">reverse_mapping</span><span class="p">,</span> <span class="n">_</span><span class="p">,</span> <span class="n">_</span><span class="p">,</span> <span class="n">_</span><span class="p">,</span> <span class="n">_</span><span class="p">,</span> <span class="n">_</span><span class="p">,</span> <span class="n">_</span><span class="p">,</span> <span class="n">T2_tilde</span><span class="p">,</span> <span class="n">_</span> <span class="o">=</span> <span class="n">state_params</span>
+
+ <span class="n">covered_successors</span> <span class="o">=</span> <span class="p">[</span><span class="n">succ</span> <span class="k">for</span> <span class="n">succ</span> <span class="ow">in</span> <span class="n">G1</span><span class="p">[</span><span class="n">u</span><span class="p">]</span> <span class="k">if</span> <span class="n">succ</span> <span class="ow">in</span> <span class="n">mapping</span><span class="p">]</span>
+ <span class="n">covered_predecessors</span> <span class="o">=</span> <span class="p">[</span><span class="n">pred</span> <span class="k">for</span> <span class="n">pred</span> <span class="ow">in</span> <span class="n">G1</span><span class="o">.</span><span class="n">pred</span><span class="p">[</span><span class="n">u</span><span class="p">]</span> <span class="k">if</span> <span class="n">pred</span> <span class="ow">in</span> <span class="n">mapping</span><span class="p">]</span>
+
+ <span class="k">if</span> <span class="ow">not</span> <span class="p">(</span><span class="n">covered_successors</span> <span class="ow">or</span> <span class="n">covered_predecessors</span><span class="p">):</span>
+ <span class="n">candidates</span> <span class="o">=</span> <span class="nb">set</span><span class="p">(</span><span class="n">nodes_of_G2Labels</span><span class="p">[</span><span class="n">G1_labels</span><span class="p">[</span><span class="n">u</span><span class="p">]])</span>
+ <span class="n">candidates</span><span class="o">.</span><span class="n">intersection_update</span><span class="p">(</span><span class="n">G2_nodes_of_degree</span><span class="p">[</span><span class="n">G1_degree</span><span class="p">[</span><span class="n">u</span><span class="p">]])</span>
+ <span class="n">candidates</span><span class="o">.</span><span class="n">intersection_update</span><span class="p">(</span><span class="n">T2_tilde</span><span class="p">)</span>
+ <span class="n">candidates</span><span class="o">.</span><span class="n">difference_update</span><span class="p">(</span><span class="n">reverse_mapping</span><span class="p">)</span>
+ <span class="k">if</span> <span class="n">G1</span><span class="o">.</span><span class="n">is_multigraph</span><span class="p">():</span>
+ <span class="n">candidates</span><span class="o">.</span><span class="n">difference_update</span><span class="p">(</span>
+ <span class="p">{</span>
+ <span class="n">node</span>
+ <span class="k">for</span> <span class="n">node</span> <span class="ow">in</span> <span class="n">candidates</span>
+ <span class="k">if</span> <span class="n">G1</span><span class="o">.</span><span class="n">number_of_edges</span><span class="p">(</span><span class="n">u</span><span class="p">,</span> <span class="n">u</span><span class="p">)</span> <span class="o">!=</span> <span class="n">G2</span><span class="o">.</span><span class="n">number_of_edges</span><span class="p">(</span><span class="n">node</span><span class="p">,</span> <span class="n">node</span><span class="p">)</span>
+ <span class="p">}</span>
+ <span class="p">)</span>
+ <span class="k">return</span> <span class="n">candidates</span>
+
+ <span class="k">if</span> <span class="n">covered_successors</span><span class="p">:</span>
+ <span class="n">succ1</span> <span class="o">=</span> <span class="n">covered_successors</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span>
+ <span class="n">common_nodes</span> <span class="o">=</span> <span class="nb">set</span><span class="p">(</span><span class="n">G2</span><span class="o">.</span><span class="n">pred</span><span class="p">[</span><span class="n">mapping</span><span class="p">[</span><span class="n">succ1</span><span class="p">]])</span>
+
+ <span class="k">for</span> <span class="n">succ1</span> <span class="ow">in</span> <span class="n">covered_successors</span><span class="p">[</span><span class="mi">1</span><span class="p">:]:</span>
+ <span class="n">common_nodes</span><span class="o">.</span><span class="n">intersection_update</span><span class="p">(</span><span class="n">G2</span><span class="o">.</span><span class="n">pred</span><span class="p">[</span><span class="n">mapping</span><span class="p">[</span><span class="n">succ1</span><span class="p">]])</span>
+ <span class="k">else</span><span class="p">:</span>
+ <span class="n">pred1</span> <span class="o">=</span> <span class="n">covered_predecessors</span><span class="o">.</span><span class="n">pop</span><span class="p">()</span>
+ <span class="n">common_nodes</span> <span class="o">=</span> <span class="nb">set</span><span class="p">(</span><span class="n">G2</span><span class="p">[</span><span class="n">mapping</span><span class="p">[</span><span class="n">pred1</span><span class="p">]])</span>
+
+ <span class="k">for</span> <span class="n">pred1</span> <span class="ow">in</span> <span class="n">covered_predecessors</span><span class="p">:</span>
+ <span class="n">common_nodes</span><span class="o">.</span><span class="n">intersection_update</span><span class="p">(</span><span class="n">G2</span><span class="p">[</span><span class="n">mapping</span><span class="p">[</span><span class="n">pred1</span><span class="p">]])</span>
+
+ <span class="n">common_nodes</span><span class="o">.</span><span class="n">difference_update</span><span class="p">(</span><span class="n">reverse_mapping</span><span class="p">)</span>
+ <span class="n">common_nodes</span><span class="o">.</span><span class="n">intersection_update</span><span class="p">(</span><span class="n">G2_nodes_of_degree</span><span class="p">[</span><span class="n">G1_degree</span><span class="p">[</span><span class="n">u</span><span class="p">]])</span>
+ <span class="n">common_nodes</span><span class="o">.</span><span class="n">intersection_update</span><span class="p">(</span><span class="n">nodes_of_G2Labels</span><span class="p">[</span><span class="n">G1_labels</span><span class="p">[</span><span class="n">u</span><span class="p">]])</span>
+ <span class="k">if</span> <span class="n">G1</span><span class="o">.</span><span class="n">is_multigraph</span><span class="p">():</span>
+ <span class="n">common_nodes</span><span class="o">.</span><span class="n">difference_update</span><span class="p">(</span>
+ <span class="p">{</span>
+ <span class="n">node</span>
+ <span class="k">for</span> <span class="n">node</span> <span class="ow">in</span> <span class="n">common_nodes</span>
+ <span class="k">if</span> <span class="n">G1</span><span class="o">.</span><span class="n">number_of_edges</span><span class="p">(</span><span class="n">u</span><span class="p">,</span> <span class="n">u</span><span class="p">)</span> <span class="o">!=</span> <span class="n">G2</span><span class="o">.</span><span class="n">number_of_edges</span><span class="p">(</span><span class="n">node</span><span class="p">,</span> <span class="n">node</span><span class="p">)</span>
+ <span class="p">}</span>
+ <span class="p">)</span>
+ <span class="k">return</span> <span class="n">common_nodes</span>
+
+
+<span class="k">def</span> <span class="nf">_feasibility</span><span class="p">(</span><span class="n">node1</span><span class="p">,</span> <span class="n">node2</span><span class="p">,</span> <span class="n">graph_params</span><span class="p">,</span> <span class="n">state_params</span><span class="p">):</span>
+<span class="w"> </span><span class="sd">&quot;&quot;&quot;Given a candidate pair of nodes u and v from G1 and G2 respectively, checks if it&#39;s feasible to extend the</span>
+<span class="sd"> mapping, i.e. if u and v can be matched.</span>
+
+<span class="sd"> Notes</span>
+<span class="sd"> -----</span>
+<span class="sd"> This function performs all the necessary checking by applying both consistency and cutting rules.</span>
+
+<span class="sd"> Parameters</span>
+<span class="sd"> ----------</span>
+<span class="sd"> node1, node2: Graph node</span>
+<span class="sd"> The candidate pair of nodes being checked for matching</span>
+
+<span class="sd"> graph_params: namedtuple</span>
+<span class="sd"> Contains all the Graph-related parameters:</span>
+
+<span class="sd"> G1,G2: NetworkX Graph or MultiGraph instances.</span>
+<span class="sd"> The two graphs to check for isomorphism or monomorphism</span>
+
+<span class="sd"> G1_labels,G2_labels: dict</span>
+<span class="sd"> The label of every node in G1 and G2 respectively</span>
+
+<span class="sd"> state_params: namedtuple</span>
+<span class="sd"> Contains all the State-related parameters:</span>
+
+<span class="sd"> mapping: dict</span>
+<span class="sd"> The mapping as extended so far. Maps nodes of G1 to nodes of G2</span>
+
+<span class="sd"> reverse_mapping: dict</span>
+<span class="sd"> The reverse mapping as extended so far. Maps nodes from G2 to nodes of G1. It&#39;s basically &quot;mapping&quot; reversed</span>
+
+<span class="sd"> T1, T2: set</span>
+<span class="sd"> Ti contains uncovered neighbors of covered nodes from Gi, i.e. nodes that are not in the mapping, but are</span>
+<span class="sd"> neighbors of nodes that are.</span>
+
+<span class="sd"> T1_out, T2_out: set</span>
+<span class="sd"> Ti_out contains all the nodes from Gi, that are neither in the mapping nor in Ti</span>
+
+<span class="sd"> Returns</span>
+<span class="sd"> -------</span>
+<span class="sd"> True if all checks are successful, False otherwise.</span>
+<span class="sd"> &quot;&quot;&quot;</span>
+ <span class="n">G1</span> <span class="o">=</span> <span class="n">graph_params</span><span class="o">.</span><span class="n">G1</span>
+
+ <span class="k">if</span> <span class="n">_cut_PT</span><span class="p">(</span><span class="n">node1</span><span class="p">,</span> <span class="n">node2</span><span class="p">,</span> <span class="n">graph_params</span><span class="p">,</span> <span class="n">state_params</span><span class="p">):</span>
+ <span class="k">return</span> <span class="kc">False</span>
+
+ <span class="k">if</span> <span class="n">G1</span><span class="o">.</span><span class="n">is_multigraph</span><span class="p">():</span>
+ <span class="k">if</span> <span class="ow">not</span> <span class="n">_consistent_PT</span><span class="p">(</span><span class="n">node1</span><span class="p">,</span> <span class="n">node2</span><span class="p">,</span> <span class="n">graph_params</span><span class="p">,</span> <span class="n">state_params</span><span class="p">):</span>
+ <span class="k">return</span> <span class="kc">False</span>
+
+ <span class="k">return</span> <span class="kc">True</span>
+
+
+<span class="k">def</span> <span class="nf">_cut_PT</span><span class="p">(</span><span class="n">u</span><span class="p">,</span> <span class="n">v</span><span class="p">,</span> <span class="n">graph_params</span><span class="p">,</span> <span class="n">state_params</span><span class="p">):</span>
+<span class="w"> </span><span class="sd">&quot;&quot;&quot;Implements the cutting rules for the ISO problem.</span>
+
+<span class="sd"> Parameters</span>
+<span class="sd"> ----------</span>
+<span class="sd"> u, v: Graph node</span>
+<span class="sd"> The two candidate nodes being examined.</span>
+
+<span class="sd"> graph_params: namedtuple</span>
+<span class="sd"> Contains all the Graph-related parameters:</span>
+
+<span class="sd"> G1,G2: NetworkX Graph or MultiGraph instances.</span>
+<span class="sd"> The two graphs to check for isomorphism or monomorphism</span>
+
+<span class="sd"> G1_labels,G2_labels: dict</span>
+<span class="sd"> The label of every node in G1 and G2 respectively</span>
+
+<span class="sd"> state_params: namedtuple</span>
+<span class="sd"> Contains all the State-related parameters:</span>
+
+<span class="sd"> mapping: dict</span>
+<span class="sd"> The mapping as extended so far. Maps nodes of G1 to nodes of G2</span>
+
+<span class="sd"> reverse_mapping: dict</span>
+<span class="sd"> The reverse mapping as extended so far. Maps nodes from G2 to nodes of G1. It&#39;s basically &quot;mapping&quot; reversed</span>
+
+<span class="sd"> T1, T2: set</span>
+<span class="sd"> Ti contains uncovered neighbors of covered nodes from Gi, i.e. nodes that are not in the mapping, but are</span>
+<span class="sd"> neighbors of nodes that are.</span>
+
+<span class="sd"> T1_tilde, T2_tilde: set</span>
+<span class="sd"> Ti_out contains all the nodes from Gi, that are neither in the mapping nor in Ti</span>
+
+<span class="sd"> Returns</span>
+<span class="sd"> -------</span>
+<span class="sd"> True if we should prune this branch, i.e. the node pair failed the cutting checks. False otherwise.</span>
+<span class="sd"> &quot;&quot;&quot;</span>
+ <span class="n">G1</span><span class="p">,</span> <span class="n">G2</span><span class="p">,</span> <span class="n">G1_labels</span><span class="p">,</span> <span class="n">G2_labels</span><span class="p">,</span> <span class="n">_</span><span class="p">,</span> <span class="n">_</span><span class="p">,</span> <span class="n">_</span> <span class="o">=</span> <span class="n">graph_params</span>
+ <span class="p">(</span>
+ <span class="n">_</span><span class="p">,</span>
+ <span class="n">_</span><span class="p">,</span>
+ <span class="n">T1</span><span class="p">,</span>
+ <span class="n">T1_in</span><span class="p">,</span>
+ <span class="n">T1_tilde</span><span class="p">,</span>
+ <span class="n">_</span><span class="p">,</span>
+ <span class="n">T2</span><span class="p">,</span>
+ <span class="n">T2_in</span><span class="p">,</span>
+ <span class="n">T2_tilde</span><span class="p">,</span>
+ <span class="n">_</span><span class="p">,</span>
+ <span class="p">)</span> <span class="o">=</span> <span class="n">state_params</span>
+
+ <span class="n">u_labels_predecessors</span><span class="p">,</span> <span class="n">v_labels_predecessors</span> <span class="o">=</span> <span class="p">{},</span> <span class="p">{}</span>
+ <span class="k">if</span> <span class="n">G1</span><span class="o">.</span><span class="n">is_directed</span><span class="p">():</span>
+ <span class="n">u_labels_predecessors</span> <span class="o">=</span> <span class="n">nx</span><span class="o">.</span><span class="n">utils</span><span class="o">.</span><span class="n">groups</span><span class="p">(</span>
+ <span class="p">{</span><span class="n">n1</span><span class="p">:</span> <span class="n">G1_labels</span><span class="p">[</span><span class="n">n1</span><span class="p">]</span> <span class="k">for</span> <span class="n">n1</span> <span class="ow">in</span> <span class="n">G1</span><span class="o">.</span><span class="n">pred</span><span class="p">[</span><span class="n">u</span><span class="p">]}</span>
+ <span class="p">)</span>
+ <span class="n">v_labels_predecessors</span> <span class="o">=</span> <span class="n">nx</span><span class="o">.</span><span class="n">utils</span><span class="o">.</span><span class="n">groups</span><span class="p">(</span>
+ <span class="p">{</span><span class="n">n2</span><span class="p">:</span> <span class="n">G2_labels</span><span class="p">[</span><span class="n">n2</span><span class="p">]</span> <span class="k">for</span> <span class="n">n2</span> <span class="ow">in</span> <span class="n">G2</span><span class="o">.</span><span class="n">pred</span><span class="p">[</span><span class="n">v</span><span class="p">]}</span>
+ <span class="p">)</span>
+
+ <span class="k">if</span> <span class="nb">set</span><span class="p">(</span><span class="n">u_labels_predecessors</span><span class="o">.</span><span class="n">keys</span><span class="p">())</span> <span class="o">!=</span> <span class="nb">set</span><span class="p">(</span><span class="n">v_labels_predecessors</span><span class="o">.</span><span class="n">keys</span><span class="p">()):</span>
+ <span class="k">return</span> <span class="kc">True</span>
+
+ <span class="n">u_labels_successors</span> <span class="o">=</span> <span class="n">nx</span><span class="o">.</span><span class="n">utils</span><span class="o">.</span><span class="n">groups</span><span class="p">({</span><span class="n">n1</span><span class="p">:</span> <span class="n">G1_labels</span><span class="p">[</span><span class="n">n1</span><span class="p">]</span> <span class="k">for</span> <span class="n">n1</span> <span class="ow">in</span> <span class="n">G1</span><span class="p">[</span><span class="n">u</span><span class="p">]})</span>
+ <span class="n">v_labels_successors</span> <span class="o">=</span> <span class="n">nx</span><span class="o">.</span><span class="n">utils</span><span class="o">.</span><span class="n">groups</span><span class="p">({</span><span class="n">n2</span><span class="p">:</span> <span class="n">G2_labels</span><span class="p">[</span><span class="n">n2</span><span class="p">]</span> <span class="k">for</span> <span class="n">n2</span> <span class="ow">in</span> <span class="n">G2</span><span class="p">[</span><span class="n">v</span><span class="p">]})</span>
+
+ <span class="c1"># if the neighbors of u, do not have the same labels as those of v, NOT feasible.</span>
+ <span class="k">if</span> <span class="nb">set</span><span class="p">(</span><span class="n">u_labels_successors</span><span class="o">.</span><span class="n">keys</span><span class="p">())</span> <span class="o">!=</span> <span class="nb">set</span><span class="p">(</span><span class="n">v_labels_successors</span><span class="o">.</span><span class="n">keys</span><span class="p">()):</span>
+ <span class="k">return</span> <span class="kc">True</span>
+
+ <span class="k">for</span> <span class="n">label</span><span class="p">,</span> <span class="n">G1_nbh</span> <span class="ow">in</span> <span class="n">u_labels_successors</span><span class="o">.</span><span class="n">items</span><span class="p">():</span>
+ <span class="n">G2_nbh</span> <span class="o">=</span> <span class="n">v_labels_successors</span><span class="p">[</span><span class="n">label</span><span class="p">]</span>
+
+ <span class="k">if</span> <span class="n">G1</span><span class="o">.</span><span class="n">is_multigraph</span><span class="p">():</span>
+ <span class="c1"># Check for every neighbor in the neighborhood, if u-nbr1 has same edges as v-nbr2</span>
+ <span class="n">u_nbrs_edges</span> <span class="o">=</span> <span class="nb">sorted</span><span class="p">(</span><span class="n">G1</span><span class="o">.</span><span class="n">number_of_edges</span><span class="p">(</span><span class="n">u</span><span class="p">,</span> <span class="n">x</span><span class="p">)</span> <span class="k">for</span> <span class="n">x</span> <span class="ow">in</span> <span class="n">G1_nbh</span><span class="p">)</span>
+ <span class="n">v_nbrs_edges</span> <span class="o">=</span> <span class="nb">sorted</span><span class="p">(</span><span class="n">G2</span><span class="o">.</span><span class="n">number_of_edges</span><span class="p">(</span><span class="n">v</span><span class="p">,</span> <span class="n">x</span><span class="p">)</span> <span class="k">for</span> <span class="n">x</span> <span class="ow">in</span> <span class="n">G2_nbh</span><span class="p">)</span>
+ <span class="k">if</span> <span class="nb">any</span><span class="p">(</span>
+ <span class="n">u_nbr_edges</span> <span class="o">!=</span> <span class="n">v_nbr_edges</span>
+ <span class="k">for</span> <span class="n">u_nbr_edges</span><span class="p">,</span> <span class="n">v_nbr_edges</span> <span class="ow">in</span> <span class="nb">zip</span><span class="p">(</span><span class="n">u_nbrs_edges</span><span class="p">,</span> <span class="n">v_nbrs_edges</span><span class="p">)</span>
+ <span class="p">):</span>
+ <span class="k">return</span> <span class="kc">True</span>
+
+ <span class="k">if</span> <span class="nb">len</span><span class="p">(</span><span class="n">T1</span><span class="o">.</span><span class="n">intersection</span><span class="p">(</span><span class="n">G1_nbh</span><span class="p">))</span> <span class="o">!=</span> <span class="nb">len</span><span class="p">(</span><span class="n">T2</span><span class="o">.</span><span class="n">intersection</span><span class="p">(</span><span class="n">G2_nbh</span><span class="p">)):</span>
+ <span class="k">return</span> <span class="kc">True</span>
+ <span class="k">if</span> <span class="nb">len</span><span class="p">(</span><span class="n">T1_tilde</span><span class="o">.</span><span class="n">intersection</span><span class="p">(</span><span class="n">G1_nbh</span><span class="p">))</span> <span class="o">!=</span> <span class="nb">len</span><span class="p">(</span><span class="n">T2_tilde</span><span class="o">.</span><span class="n">intersection</span><span class="p">(</span><span class="n">G2_nbh</span><span class="p">)):</span>
+ <span class="k">return</span> <span class="kc">True</span>
+ <span class="k">if</span> <span class="n">G1</span><span class="o">.</span><span class="n">is_directed</span><span class="p">()</span> <span class="ow">and</span> <span class="nb">len</span><span class="p">(</span><span class="n">T1_in</span><span class="o">.</span><span class="n">intersection</span><span class="p">(</span><span class="n">G1_nbh</span><span class="p">))</span> <span class="o">!=</span> <span class="nb">len</span><span class="p">(</span>
+ <span class="n">T2_in</span><span class="o">.</span><span class="n">intersection</span><span class="p">(</span><span class="n">G2_nbh</span><span class="p">)</span>
+ <span class="p">):</span>
+ <span class="k">return</span> <span class="kc">True</span>
+
+ <span class="k">if</span> <span class="ow">not</span> <span class="n">G1</span><span class="o">.</span><span class="n">is_directed</span><span class="p">():</span>
+ <span class="k">return</span> <span class="kc">False</span>
+
+ <span class="k">for</span> <span class="n">label</span><span class="p">,</span> <span class="n">G1_pred</span> <span class="ow">in</span> <span class="n">u_labels_predecessors</span><span class="o">.</span><span class="n">items</span><span class="p">():</span>
+ <span class="n">G2_pred</span> <span class="o">=</span> <span class="n">v_labels_predecessors</span><span class="p">[</span><span class="n">label</span><span class="p">]</span>
+
+ <span class="k">if</span> <span class="n">G1</span><span class="o">.</span><span class="n">is_multigraph</span><span class="p">():</span>
+ <span class="c1"># Check for every neighbor in the neighborhood, if u-nbr1 has same edges as v-nbr2</span>
+ <span class="n">u_pred_edges</span> <span class="o">=</span> <span class="nb">sorted</span><span class="p">(</span><span class="n">G1</span><span class="o">.</span><span class="n">number_of_edges</span><span class="p">(</span><span class="n">u</span><span class="p">,</span> <span class="n">x</span><span class="p">)</span> <span class="k">for</span> <span class="n">x</span> <span class="ow">in</span> <span class="n">G1_pred</span><span class="p">)</span>
+ <span class="n">v_pred_edges</span> <span class="o">=</span> <span class="nb">sorted</span><span class="p">(</span><span class="n">G2</span><span class="o">.</span><span class="n">number_of_edges</span><span class="p">(</span><span class="n">v</span><span class="p">,</span> <span class="n">x</span><span class="p">)</span> <span class="k">for</span> <span class="n">x</span> <span class="ow">in</span> <span class="n">G2_pred</span><span class="p">)</span>
+ <span class="k">if</span> <span class="nb">any</span><span class="p">(</span>
+ <span class="n">u_nbr_edges</span> <span class="o">!=</span> <span class="n">v_nbr_edges</span>
+ <span class="k">for</span> <span class="n">u_nbr_edges</span><span class="p">,</span> <span class="n">v_nbr_edges</span> <span class="ow">in</span> <span class="nb">zip</span><span class="p">(</span><span class="n">u_pred_edges</span><span class="p">,</span> <span class="n">v_pred_edges</span><span class="p">)</span>
+ <span class="p">):</span>
+ <span class="k">return</span> <span class="kc">True</span>
+
+ <span class="k">if</span> <span class="nb">len</span><span class="p">(</span><span class="n">T1</span><span class="o">.</span><span class="n">intersection</span><span class="p">(</span><span class="n">G1_pred</span><span class="p">))</span> <span class="o">!=</span> <span class="nb">len</span><span class="p">(</span><span class="n">T2</span><span class="o">.</span><span class="n">intersection</span><span class="p">(</span><span class="n">G2_pred</span><span class="p">)):</span>
+ <span class="k">return</span> <span class="kc">True</span>
+ <span class="k">if</span> <span class="nb">len</span><span class="p">(</span><span class="n">T1_tilde</span><span class="o">.</span><span class="n">intersection</span><span class="p">(</span><span class="n">G1_pred</span><span class="p">))</span> <span class="o">!=</span> <span class="nb">len</span><span class="p">(</span><span class="n">T2_tilde</span><span class="o">.</span><span class="n">intersection</span><span class="p">(</span><span class="n">G2_pred</span><span class="p">)):</span>
+ <span class="k">return</span> <span class="kc">True</span>
+ <span class="k">if</span> <span class="nb">len</span><span class="p">(</span><span class="n">T1_in</span><span class="o">.</span><span class="n">intersection</span><span class="p">(</span><span class="n">G1_pred</span><span class="p">))</span> <span class="o">!=</span> <span class="nb">len</span><span class="p">(</span><span class="n">T2_in</span><span class="o">.</span><span class="n">intersection</span><span class="p">(</span><span class="n">G2_pred</span><span class="p">)):</span>
+ <span class="k">return</span> <span class="kc">True</span>
+
+ <span class="k">return</span> <span class="kc">False</span>
+
+
+<span class="k">def</span> <span class="nf">_consistent_PT</span><span class="p">(</span><span class="n">u</span><span class="p">,</span> <span class="n">v</span><span class="p">,</span> <span class="n">graph_params</span><span class="p">,</span> <span class="n">state_params</span><span class="p">):</span>
+<span class="w"> </span><span class="sd">&quot;&quot;&quot;Checks the consistency of extending the mapping using the current node pair.</span>
+
+<span class="sd"> Parameters</span>
+<span class="sd"> ----------</span>
+<span class="sd"> u, v: Graph node</span>
+<span class="sd"> The two candidate nodes being examined.</span>
+
+<span class="sd"> graph_params: namedtuple</span>
+<span class="sd"> Contains all the Graph-related parameters:</span>
+
+<span class="sd"> G1,G2: NetworkX Graph or MultiGraph instances.</span>
+<span class="sd"> The two graphs to check for isomorphism or monomorphism</span>
+
+<span class="sd"> G1_labels,G2_labels: dict</span>
+<span class="sd"> The label of every node in G1 and G2 respectively</span>
+
+<span class="sd"> state_params: namedtuple</span>
+<span class="sd"> Contains all the State-related parameters:</span>
+
+<span class="sd"> mapping: dict</span>
+<span class="sd"> The mapping as extended so far. Maps nodes of G1 to nodes of G2</span>
+
+<span class="sd"> reverse_mapping: dict</span>
+<span class="sd"> The reverse mapping as extended so far. Maps nodes from G2 to nodes of G1. It&#39;s basically &quot;mapping&quot; reversed</span>
+
+<span class="sd"> T1, T2: set</span>
+<span class="sd"> Ti contains uncovered neighbors of covered nodes from Gi, i.e. nodes that are not in the mapping, but are</span>
+<span class="sd"> neighbors of nodes that are.</span>
+
+<span class="sd"> T1_out, T2_out: set</span>
+<span class="sd"> Ti_out contains all the nodes from Gi, that are neither in the mapping nor in Ti</span>
+
+<span class="sd"> Returns</span>
+<span class="sd"> -------</span>
+<span class="sd"> True if the pair passes all the consistency checks successfully. False otherwise.</span>
+<span class="sd"> &quot;&quot;&quot;</span>
+ <span class="n">G1</span><span class="p">,</span> <span class="n">G2</span> <span class="o">=</span> <span class="n">graph_params</span><span class="o">.</span><span class="n">G1</span><span class="p">,</span> <span class="n">graph_params</span><span class="o">.</span><span class="n">G2</span>
+ <span class="n">mapping</span><span class="p">,</span> <span class="n">reverse_mapping</span> <span class="o">=</span> <span class="n">state_params</span><span class="o">.</span><span class="n">mapping</span><span class="p">,</span> <span class="n">state_params</span><span class="o">.</span><span class="n">reverse_mapping</span>
+
+ <span class="k">for</span> <span class="n">neighbor</span> <span class="ow">in</span> <span class="n">G1</span><span class="p">[</span><span class="n">u</span><span class="p">]:</span>
+ <span class="k">if</span> <span class="n">neighbor</span> <span class="ow">in</span> <span class="n">mapping</span><span class="p">:</span>
+ <span class="k">if</span> <span class="n">G1</span><span class="o">.</span><span class="n">number_of_edges</span><span class="p">(</span><span class="n">u</span><span class="p">,</span> <span class="n">neighbor</span><span class="p">)</span> <span class="o">!=</span> <span class="n">G2</span><span class="o">.</span><span class="n">number_of_edges</span><span class="p">(</span>
+ <span class="n">v</span><span class="p">,</span> <span class="n">mapping</span><span class="p">[</span><span class="n">neighbor</span><span class="p">]</span>
+ <span class="p">):</span>
+ <span class="k">return</span> <span class="kc">False</span>
+
+ <span class="k">for</span> <span class="n">neighbor</span> <span class="ow">in</span> <span class="n">G2</span><span class="p">[</span><span class="n">v</span><span class="p">]:</span>
+ <span class="k">if</span> <span class="n">neighbor</span> <span class="ow">in</span> <span class="n">reverse_mapping</span><span class="p">:</span>
+ <span class="k">if</span> <span class="n">G1</span><span class="o">.</span><span class="n">number_of_edges</span><span class="p">(</span><span class="n">u</span><span class="p">,</span> <span class="n">reverse_mapping</span><span class="p">[</span><span class="n">neighbor</span><span class="p">])</span> <span class="o">!=</span> <span class="n">G2</span><span class="o">.</span><span class="n">number_of_edges</span><span class="p">(</span>
+ <span class="n">v</span><span class="p">,</span> <span class="n">neighbor</span>
+ <span class="p">):</span>
+ <span class="k">return</span> <span class="kc">False</span>
+
+ <span class="k">if</span> <span class="ow">not</span> <span class="n">G1</span><span class="o">.</span><span class="n">is_directed</span><span class="p">():</span>
+ <span class="k">return</span> <span class="kc">True</span>
+
+ <span class="k">for</span> <span class="n">predecessor</span> <span class="ow">in</span> <span class="n">G1</span><span class="o">.</span><span class="n">pred</span><span class="p">[</span><span class="n">u</span><span class="p">]:</span>
+ <span class="k">if</span> <span class="n">predecessor</span> <span class="ow">in</span> <span class="n">mapping</span><span class="p">:</span>
+ <span class="k">if</span> <span class="n">G1</span><span class="o">.</span><span class="n">number_of_edges</span><span class="p">(</span><span class="n">predecessor</span><span class="p">,</span> <span class="n">u</span><span class="p">)</span> <span class="o">!=</span> <span class="n">G2</span><span class="o">.</span><span class="n">number_of_edges</span><span class="p">(</span>
+ <span class="n">mapping</span><span class="p">[</span><span class="n">predecessor</span><span class="p">],</span> <span class="n">v</span>
+ <span class="p">):</span>
+ <span class="k">return</span> <span class="kc">False</span>
+
+ <span class="k">for</span> <span class="n">predecessor</span> <span class="ow">in</span> <span class="n">G2</span><span class="o">.</span><span class="n">pred</span><span class="p">[</span><span class="n">v</span><span class="p">]:</span>
+ <span class="k">if</span> <span class="n">predecessor</span> <span class="ow">in</span> <span class="n">reverse_mapping</span><span class="p">:</span>
+ <span class="k">if</span> <span class="n">G1</span><span class="o">.</span><span class="n">number_of_edges</span><span class="p">(</span>
+ <span class="n">reverse_mapping</span><span class="p">[</span><span class="n">predecessor</span><span class="p">],</span> <span class="n">u</span>
+ <span class="p">)</span> <span class="o">!=</span> <span class="n">G2</span><span class="o">.</span><span class="n">number_of_edges</span><span class="p">(</span><span class="n">predecessor</span><span class="p">,</span> <span class="n">v</span><span class="p">):</span>
+ <span class="k">return</span> <span class="kc">False</span>
+
+ <span class="k">return</span> <span class="kc">True</span>
+
+
+<span class="k">def</span> <span class="nf">_update_Tinout</span><span class="p">(</span><span class="n">new_node1</span><span class="p">,</span> <span class="n">new_node2</span><span class="p">,</span> <span class="n">graph_params</span><span class="p">,</span> <span class="n">state_params</span><span class="p">):</span>
+<span class="w"> </span><span class="sd">&quot;&quot;&quot;Updates the Ti/Ti_out (i=1,2) when a new node pair u-v is added to the mapping.</span>
+
+<span class="sd"> Notes</span>
+<span class="sd"> -----</span>
+<span class="sd"> This function should be called right after the feasibility checks are passed, and node1 is mapped to node2. The</span>
+<span class="sd"> purpose of this function is to avoid brute force computing of Ti/Ti_out by iterating over all nodes of the graph</span>
+<span class="sd"> and checking which nodes satisfy the necessary conditions. Instead, in every step of the algorithm we focus</span>
+<span class="sd"> exclusively on the two nodes that are being added to the mapping, incrementally updating Ti/Ti_out.</span>
+
+<span class="sd"> Parameters</span>
+<span class="sd"> ----------</span>
+<span class="sd"> new_node1, new_node2: Graph node</span>
+<span class="sd"> The two new nodes, added to the mapping.</span>
+
+<span class="sd"> graph_params: namedtuple</span>
+<span class="sd"> Contains all the Graph-related parameters:</span>
+
+<span class="sd"> G1,G2: NetworkX Graph or MultiGraph instances.</span>
+<span class="sd"> The two graphs to check for isomorphism or monomorphism</span>
+
+<span class="sd"> G1_labels,G2_labels: dict</span>
+<span class="sd"> The label of every node in G1 and G2 respectively</span>
+
+<span class="sd"> state_params: namedtuple</span>
+<span class="sd"> Contains all the State-related parameters:</span>
+
+<span class="sd"> mapping: dict</span>
+<span class="sd"> The mapping as extended so far. Maps nodes of G1 to nodes of G2</span>
+
+<span class="sd"> reverse_mapping: dict</span>
+<span class="sd"> The reverse mapping as extended so far. Maps nodes from G2 to nodes of G1. It&#39;s basically &quot;mapping&quot; reversed</span>
+
+<span class="sd"> T1, T2: set</span>
+<span class="sd"> Ti contains uncovered neighbors of covered nodes from Gi, i.e. nodes that are not in the mapping, but are</span>
+<span class="sd"> neighbors of nodes that are.</span>
+
+<span class="sd"> T1_tilde, T2_tilde: set</span>
+<span class="sd"> Ti_out contains all the nodes from Gi, that are neither in the mapping nor in Ti</span>
+<span class="sd"> &quot;&quot;&quot;</span>
+ <span class="n">G1</span><span class="p">,</span> <span class="n">G2</span><span class="p">,</span> <span class="n">_</span><span class="p">,</span> <span class="n">_</span><span class="p">,</span> <span class="n">_</span><span class="p">,</span> <span class="n">_</span><span class="p">,</span> <span class="n">_</span> <span class="o">=</span> <span class="n">graph_params</span>
+ <span class="p">(</span>
+ <span class="n">mapping</span><span class="p">,</span>
+ <span class="n">reverse_mapping</span><span class="p">,</span>
+ <span class="n">T1</span><span class="p">,</span>
+ <span class="n">T1_in</span><span class="p">,</span>
+ <span class="n">T1_tilde</span><span class="p">,</span>
+ <span class="n">T1_tilde_in</span><span class="p">,</span>
+ <span class="n">T2</span><span class="p">,</span>
+ <span class="n">T2_in</span><span class="p">,</span>
+ <span class="n">T2_tilde</span><span class="p">,</span>
+ <span class="n">T2_tilde_in</span><span class="p">,</span>
+ <span class="p">)</span> <span class="o">=</span> <span class="n">state_params</span>
+
+ <span class="n">uncovered_successors_G1</span> <span class="o">=</span> <span class="p">{</span><span class="n">succ</span> <span class="k">for</span> <span class="n">succ</span> <span class="ow">in</span> <span class="n">G1</span><span class="p">[</span><span class="n">new_node1</span><span class="p">]</span> <span class="k">if</span> <span class="n">succ</span> <span class="ow">not</span> <span class="ow">in</span> <span class="n">mapping</span><span class="p">}</span>
+ <span class="n">uncovered_successors_G2</span> <span class="o">=</span> <span class="p">{</span>
+ <span class="n">succ</span> <span class="k">for</span> <span class="n">succ</span> <span class="ow">in</span> <span class="n">G2</span><span class="p">[</span><span class="n">new_node2</span><span class="p">]</span> <span class="k">if</span> <span class="n">succ</span> <span class="ow">not</span> <span class="ow">in</span> <span class="n">reverse_mapping</span>
+ <span class="p">}</span>
+
+ <span class="c1"># Add the uncovered neighbors of node1 and node2 in T1 and T2 respectively</span>
+ <span class="n">T1</span><span class="o">.</span><span class="n">update</span><span class="p">(</span><span class="n">uncovered_successors_G1</span><span class="p">)</span>
+ <span class="n">T2</span><span class="o">.</span><span class="n">update</span><span class="p">(</span><span class="n">uncovered_successors_G2</span><span class="p">)</span>
+ <span class="n">T1</span><span class="o">.</span><span class="n">discard</span><span class="p">(</span><span class="n">new_node1</span><span class="p">)</span>
+ <span class="n">T2</span><span class="o">.</span><span class="n">discard</span><span class="p">(</span><span class="n">new_node2</span><span class="p">)</span>
+
+ <span class="n">T1_tilde</span><span class="o">.</span><span class="n">difference_update</span><span class="p">(</span><span class="n">uncovered_successors_G1</span><span class="p">)</span>
+ <span class="n">T2_tilde</span><span class="o">.</span><span class="n">difference_update</span><span class="p">(</span><span class="n">uncovered_successors_G2</span><span class="p">)</span>
+ <span class="n">T1_tilde</span><span class="o">.</span><span class="n">discard</span><span class="p">(</span><span class="n">new_node1</span><span class="p">)</span>
+ <span class="n">T2_tilde</span><span class="o">.</span><span class="n">discard</span><span class="p">(</span><span class="n">new_node2</span><span class="p">)</span>
+
+ <span class="k">if</span> <span class="ow">not</span> <span class="n">G1</span><span class="o">.</span><span class="n">is_directed</span><span class="p">():</span>
+ <span class="k">return</span>
+
+ <span class="n">uncovered_predecessors_G1</span> <span class="o">=</span> <span class="p">{</span>
+ <span class="n">pred</span> <span class="k">for</span> <span class="n">pred</span> <span class="ow">in</span> <span class="n">G1</span><span class="o">.</span><span class="n">pred</span><span class="p">[</span><span class="n">new_node1</span><span class="p">]</span> <span class="k">if</span> <span class="n">pred</span> <span class="ow">not</span> <span class="ow">in</span> <span class="n">mapping</span>
+ <span class="p">}</span>
+ <span class="n">uncovered_predecessors_G2</span> <span class="o">=</span> <span class="p">{</span>
+ <span class="n">pred</span> <span class="k">for</span> <span class="n">pred</span> <span class="ow">in</span> <span class="n">G2</span><span class="o">.</span><span class="n">pred</span><span class="p">[</span><span class="n">new_node2</span><span class="p">]</span> <span class="k">if</span> <span class="n">pred</span> <span class="ow">not</span> <span class="ow">in</span> <span class="n">reverse_mapping</span>
+ <span class="p">}</span>
+
+ <span class="n">T1_in</span><span class="o">.</span><span class="n">update</span><span class="p">(</span><span class="n">uncovered_predecessors_G1</span><span class="p">)</span>
+ <span class="n">T2_in</span><span class="o">.</span><span class="n">update</span><span class="p">(</span><span class="n">uncovered_predecessors_G2</span><span class="p">)</span>
+ <span class="n">T1_in</span><span class="o">.</span><span class="n">discard</span><span class="p">(</span><span class="n">new_node1</span><span class="p">)</span>
+ <span class="n">T2_in</span><span class="o">.</span><span class="n">discard</span><span class="p">(</span><span class="n">new_node2</span><span class="p">)</span>
+
+ <span class="n">T1_tilde</span><span class="o">.</span><span class="n">difference_update</span><span class="p">(</span><span class="n">uncovered_predecessors_G1</span><span class="p">)</span>
+ <span class="n">T2_tilde</span><span class="o">.</span><span class="n">difference_update</span><span class="p">(</span><span class="n">uncovered_predecessors_G2</span><span class="p">)</span>
+ <span class="n">T1_tilde</span><span class="o">.</span><span class="n">discard</span><span class="p">(</span><span class="n">new_node1</span><span class="p">)</span>
+ <span class="n">T2_tilde</span><span class="o">.</span><span class="n">discard</span><span class="p">(</span><span class="n">new_node2</span><span class="p">)</span>
+
+
+<span class="k">def</span> <span class="nf">_restore_Tinout</span><span class="p">(</span><span class="n">popped_node1</span><span class="p">,</span> <span class="n">popped_node2</span><span class="p">,</span> <span class="n">graph_params</span><span class="p">,</span> <span class="n">state_params</span><span class="p">):</span>
+<span class="w"> </span><span class="sd">&quot;&quot;&quot;Restores the previous version of Ti/Ti_out when a node pair is deleted from the mapping.</span>
+
+<span class="sd"> Parameters</span>
+<span class="sd"> ----------</span>
+<span class="sd"> popped_node1, popped_node2: Graph node</span>
+<span class="sd"> The two nodes deleted from the mapping.</span>
+
+<span class="sd"> graph_params: namedtuple</span>
+<span class="sd"> Contains all the Graph-related parameters:</span>
+
+<span class="sd"> G1,G2: NetworkX Graph or MultiGraph instances.</span>
+<span class="sd"> The two graphs to check for isomorphism or monomorphism</span>
+
+<span class="sd"> G1_labels,G2_labels: dict</span>
+<span class="sd"> The label of every node in G1 and G2 respectively</span>
+
+<span class="sd"> state_params: namedtuple</span>
+<span class="sd"> Contains all the State-related parameters:</span>
+
+<span class="sd"> mapping: dict</span>
+<span class="sd"> The mapping as extended so far. Maps nodes of G1 to nodes of G2</span>
+
+<span class="sd"> reverse_mapping: dict</span>
+<span class="sd"> The reverse mapping as extended so far. Maps nodes from G2 to nodes of G1. It&#39;s basically &quot;mapping&quot; reversed</span>
+
+<span class="sd"> T1, T2: set</span>
+<span class="sd"> Ti contains uncovered neighbors of covered nodes from Gi, i.e. nodes that are not in the mapping, but are</span>
+<span class="sd"> neighbors of nodes that are.</span>
+
+<span class="sd"> T1_tilde, T2_tilde: set</span>
+<span class="sd"> Ti_out contains all the nodes from Gi, that are neither in the mapping nor in Ti</span>
+<span class="sd"> &quot;&quot;&quot;</span>
+ <span class="c1"># If the node we want to remove from the mapping, has at least one covered neighbor, add it to T1.</span>
+ <span class="n">G1</span><span class="p">,</span> <span class="n">G2</span><span class="p">,</span> <span class="n">_</span><span class="p">,</span> <span class="n">_</span><span class="p">,</span> <span class="n">_</span><span class="p">,</span> <span class="n">_</span><span class="p">,</span> <span class="n">_</span> <span class="o">=</span> <span class="n">graph_params</span>
+ <span class="p">(</span>
+ <span class="n">mapping</span><span class="p">,</span>
+ <span class="n">reverse_mapping</span><span class="p">,</span>
+ <span class="n">T1</span><span class="p">,</span>
+ <span class="n">T1_in</span><span class="p">,</span>
+ <span class="n">T1_tilde</span><span class="p">,</span>
+ <span class="n">T1_tilde_in</span><span class="p">,</span>
+ <span class="n">T2</span><span class="p">,</span>
+ <span class="n">T2_in</span><span class="p">,</span>
+ <span class="n">T2_tilde</span><span class="p">,</span>
+ <span class="n">T2_tilde_in</span><span class="p">,</span>
+ <span class="p">)</span> <span class="o">=</span> <span class="n">state_params</span>
+
+ <span class="n">is_added</span> <span class="o">=</span> <span class="kc">False</span>
+ <span class="k">for</span> <span class="n">neighbor</span> <span class="ow">in</span> <span class="n">G1</span><span class="p">[</span><span class="n">popped_node1</span><span class="p">]:</span>
+ <span class="k">if</span> <span class="n">neighbor</span> <span class="ow">in</span> <span class="n">mapping</span><span class="p">:</span>
+ <span class="c1"># if a neighbor of the excluded node1 is in the mapping, keep node1 in T1</span>
+ <span class="n">is_added</span> <span class="o">=</span> <span class="kc">True</span>
+ <span class="n">T1</span><span class="o">.</span><span class="n">add</span><span class="p">(</span><span class="n">popped_node1</span><span class="p">)</span>
+ <span class="k">else</span><span class="p">:</span>
+ <span class="c1"># check if its neighbor has another connection with a covered node. If not, only then exclude it from T1</span>
+ <span class="k">if</span> <span class="nb">any</span><span class="p">(</span><span class="n">nbr</span> <span class="ow">in</span> <span class="n">mapping</span> <span class="k">for</span> <span class="n">nbr</span> <span class="ow">in</span> <span class="n">G1</span><span class="p">[</span><span class="n">neighbor</span><span class="p">]):</span>
+ <span class="k">continue</span>
+ <span class="n">T1</span><span class="o">.</span><span class="n">discard</span><span class="p">(</span><span class="n">neighbor</span><span class="p">)</span>
+ <span class="n">T1_tilde</span><span class="o">.</span><span class="n">add</span><span class="p">(</span><span class="n">neighbor</span><span class="p">)</span>
+
+ <span class="c1"># Case where the node is not present in neither the mapping nor T1. By definition, it should belong to T1_tilde</span>
+ <span class="k">if</span> <span class="ow">not</span> <span class="n">is_added</span><span class="p">:</span>
+ <span class="n">T1_tilde</span><span class="o">.</span><span class="n">add</span><span class="p">(</span><span class="n">popped_node1</span><span class="p">)</span>
+
+ <span class="n">is_added</span> <span class="o">=</span> <span class="kc">False</span>
+ <span class="k">for</span> <span class="n">neighbor</span> <span class="ow">in</span> <span class="n">G2</span><span class="p">[</span><span class="n">popped_node2</span><span class="p">]:</span>
+ <span class="k">if</span> <span class="n">neighbor</span> <span class="ow">in</span> <span class="n">reverse_mapping</span><span class="p">:</span>
+ <span class="n">is_added</span> <span class="o">=</span> <span class="kc">True</span>
+ <span class="n">T2</span><span class="o">.</span><span class="n">add</span><span class="p">(</span><span class="n">popped_node2</span><span class="p">)</span>
+ <span class="k">else</span><span class="p">:</span>
+ <span class="k">if</span> <span class="nb">any</span><span class="p">(</span><span class="n">nbr</span> <span class="ow">in</span> <span class="n">reverse_mapping</span> <span class="k">for</span> <span class="n">nbr</span> <span class="ow">in</span> <span class="n">G2</span><span class="p">[</span><span class="n">neighbor</span><span class="p">]):</span>
+ <span class="k">continue</span>
+ <span class="n">T2</span><span class="o">.</span><span class="n">discard</span><span class="p">(</span><span class="n">neighbor</span><span class="p">)</span>
+ <span class="n">T2_tilde</span><span class="o">.</span><span class="n">add</span><span class="p">(</span><span class="n">neighbor</span><span class="p">)</span>
+
+ <span class="k">if</span> <span class="ow">not</span> <span class="n">is_added</span><span class="p">:</span>
+ <span class="n">T2_tilde</span><span class="o">.</span><span class="n">add</span><span class="p">(</span><span class="n">popped_node2</span><span class="p">)</span>
+
+
+<span class="k">def</span> <span class="nf">_restore_Tinout_Di</span><span class="p">(</span><span class="n">popped_node1</span><span class="p">,</span> <span class="n">popped_node2</span><span class="p">,</span> <span class="n">graph_params</span><span class="p">,</span> <span class="n">state_params</span><span class="p">):</span>
+ <span class="c1"># If the node we want to remove from the mapping, has at least one covered neighbor, add it to T1.</span>
+ <span class="n">G1</span><span class="p">,</span> <span class="n">G2</span><span class="p">,</span> <span class="n">_</span><span class="p">,</span> <span class="n">_</span><span class="p">,</span> <span class="n">_</span><span class="p">,</span> <span class="n">_</span><span class="p">,</span> <span class="n">_</span> <span class="o">=</span> <span class="n">graph_params</span>
+ <span class="p">(</span>
+ <span class="n">mapping</span><span class="p">,</span>
+ <span class="n">reverse_mapping</span><span class="p">,</span>
+ <span class="n">T1</span><span class="p">,</span>
+ <span class="n">T1_in</span><span class="p">,</span>
+ <span class="n">T1_tilde</span><span class="p">,</span>
+ <span class="n">T1_tilde_in</span><span class="p">,</span>
+ <span class="n">T2</span><span class="p">,</span>
+ <span class="n">T2_in</span><span class="p">,</span>
+ <span class="n">T2_tilde</span><span class="p">,</span>
+ <span class="n">T2_tilde_in</span><span class="p">,</span>
+ <span class="p">)</span> <span class="o">=</span> <span class="n">state_params</span>
+
+ <span class="n">is_added</span> <span class="o">=</span> <span class="kc">False</span>
+ <span class="k">for</span> <span class="n">successor</span> <span class="ow">in</span> <span class="n">G1</span><span class="p">[</span><span class="n">popped_node1</span><span class="p">]:</span>
+ <span class="k">if</span> <span class="n">successor</span> <span class="ow">in</span> <span class="n">mapping</span><span class="p">:</span>
+ <span class="c1"># if a neighbor of the excluded node1 is in the mapping, keep node1 in T1</span>
+ <span class="n">is_added</span> <span class="o">=</span> <span class="kc">True</span>
+ <span class="n">T1_in</span><span class="o">.</span><span class="n">add</span><span class="p">(</span><span class="n">popped_node1</span><span class="p">)</span>
+ <span class="k">else</span><span class="p">:</span>
+ <span class="c1"># check if its neighbor has another connection with a covered node. If not, only then exclude it from T1</span>
+ <span class="k">if</span> <span class="ow">not</span> <span class="nb">any</span><span class="p">(</span><span class="n">pred</span> <span class="ow">in</span> <span class="n">mapping</span> <span class="k">for</span> <span class="n">pred</span> <span class="ow">in</span> <span class="n">G1</span><span class="o">.</span><span class="n">pred</span><span class="p">[</span><span class="n">successor</span><span class="p">]):</span>
+ <span class="n">T1</span><span class="o">.</span><span class="n">discard</span><span class="p">(</span><span class="n">successor</span><span class="p">)</span>
+
+ <span class="k">if</span> <span class="ow">not</span> <span class="nb">any</span><span class="p">(</span><span class="n">succ</span> <span class="ow">in</span> <span class="n">mapping</span> <span class="k">for</span> <span class="n">succ</span> <span class="ow">in</span> <span class="n">G1</span><span class="p">[</span><span class="n">successor</span><span class="p">]):</span>
+ <span class="n">T1_in</span><span class="o">.</span><span class="n">discard</span><span class="p">(</span><span class="n">successor</span><span class="p">)</span>
+
+ <span class="k">if</span> <span class="n">successor</span> <span class="ow">not</span> <span class="ow">in</span> <span class="n">T1</span><span class="p">:</span>
+ <span class="k">if</span> <span class="n">successor</span> <span class="ow">not</span> <span class="ow">in</span> <span class="n">T1_in</span><span class="p">:</span>
+ <span class="n">T1_tilde</span><span class="o">.</span><span class="n">add</span><span class="p">(</span><span class="n">successor</span><span class="p">)</span>
+
+ <span class="k">for</span> <span class="n">predecessor</span> <span class="ow">in</span> <span class="n">G1</span><span class="o">.</span><span class="n">pred</span><span class="p">[</span><span class="n">popped_node1</span><span class="p">]:</span>
+ <span class="k">if</span> <span class="n">predecessor</span> <span class="ow">in</span> <span class="n">mapping</span><span class="p">:</span>
+ <span class="c1"># if a neighbor of the excluded node1 is in the mapping, keep node1 in T1</span>
+ <span class="n">is_added</span> <span class="o">=</span> <span class="kc">True</span>
+ <span class="n">T1</span><span class="o">.</span><span class="n">add</span><span class="p">(</span><span class="n">popped_node1</span><span class="p">)</span>
+ <span class="k">else</span><span class="p">:</span>
+ <span class="c1"># check if its neighbor has another connection with a covered node. If not, only then exclude it from T1</span>
+ <span class="k">if</span> <span class="ow">not</span> <span class="nb">any</span><span class="p">(</span><span class="n">pred</span> <span class="ow">in</span> <span class="n">mapping</span> <span class="k">for</span> <span class="n">pred</span> <span class="ow">in</span> <span class="n">G1</span><span class="o">.</span><span class="n">pred</span><span class="p">[</span><span class="n">predecessor</span><span class="p">]):</span>
+ <span class="n">T1</span><span class="o">.</span><span class="n">discard</span><span class="p">(</span><span class="n">predecessor</span><span class="p">)</span>
+
+ <span class="k">if</span> <span class="ow">not</span> <span class="nb">any</span><span class="p">(</span><span class="n">succ</span> <span class="ow">in</span> <span class="n">mapping</span> <span class="k">for</span> <span class="n">succ</span> <span class="ow">in</span> <span class="n">G1</span><span class="p">[</span><span class="n">predecessor</span><span class="p">]):</span>
+ <span class="n">T1_in</span><span class="o">.</span><span class="n">discard</span><span class="p">(</span><span class="n">predecessor</span><span class="p">)</span>
+
+ <span class="k">if</span> <span class="ow">not</span> <span class="p">(</span><span class="n">predecessor</span> <span class="ow">in</span> <span class="n">T1</span> <span class="ow">or</span> <span class="n">predecessor</span> <span class="ow">in</span> <span class="n">T1_in</span><span class="p">):</span>
+ <span class="n">T1_tilde</span><span class="o">.</span><span class="n">add</span><span class="p">(</span><span class="n">predecessor</span><span class="p">)</span>
+
+ <span class="c1"># Case where the node is not present in neither the mapping nor T1. By definition it should belong to T1_tilde</span>
+ <span class="k">if</span> <span class="ow">not</span> <span class="n">is_added</span><span class="p">:</span>
+ <span class="n">T1_tilde</span><span class="o">.</span><span class="n">add</span><span class="p">(</span><span class="n">popped_node1</span><span class="p">)</span>
+
+ <span class="n">is_added</span> <span class="o">=</span> <span class="kc">False</span>
+ <span class="k">for</span> <span class="n">successor</span> <span class="ow">in</span> <span class="n">G2</span><span class="p">[</span><span class="n">popped_node2</span><span class="p">]:</span>
+ <span class="k">if</span> <span class="n">successor</span> <span class="ow">in</span> <span class="n">reverse_mapping</span><span class="p">:</span>
+ <span class="n">is_added</span> <span class="o">=</span> <span class="kc">True</span>
+ <span class="n">T2_in</span><span class="o">.</span><span class="n">add</span><span class="p">(</span><span class="n">popped_node2</span><span class="p">)</span>
+ <span class="k">else</span><span class="p">:</span>
+ <span class="k">if</span> <span class="ow">not</span> <span class="nb">any</span><span class="p">(</span><span class="n">pred</span> <span class="ow">in</span> <span class="n">reverse_mapping</span> <span class="k">for</span> <span class="n">pred</span> <span class="ow">in</span> <span class="n">G2</span><span class="o">.</span><span class="n">pred</span><span class="p">[</span><span class="n">successor</span><span class="p">]):</span>
+ <span class="n">T2</span><span class="o">.</span><span class="n">discard</span><span class="p">(</span><span class="n">successor</span><span class="p">)</span>
+
+ <span class="k">if</span> <span class="ow">not</span> <span class="nb">any</span><span class="p">(</span><span class="n">succ</span> <span class="ow">in</span> <span class="n">reverse_mapping</span> <span class="k">for</span> <span class="n">succ</span> <span class="ow">in</span> <span class="n">G2</span><span class="p">[</span><span class="n">successor</span><span class="p">]):</span>
+ <span class="n">T2_in</span><span class="o">.</span><span class="n">discard</span><span class="p">(</span><span class="n">successor</span><span class="p">)</span>
+
+ <span class="k">if</span> <span class="n">successor</span> <span class="ow">not</span> <span class="ow">in</span> <span class="n">T2</span><span class="p">:</span>
+ <span class="k">if</span> <span class="n">successor</span> <span class="ow">not</span> <span class="ow">in</span> <span class="n">T2_in</span><span class="p">:</span>
+ <span class="n">T2_tilde</span><span class="o">.</span><span class="n">add</span><span class="p">(</span><span class="n">successor</span><span class="p">)</span>
+
+ <span class="k">for</span> <span class="n">predecessor</span> <span class="ow">in</span> <span class="n">G2</span><span class="o">.</span><span class="n">pred</span><span class="p">[</span><span class="n">popped_node2</span><span class="p">]:</span>
+ <span class="k">if</span> <span class="n">predecessor</span> <span class="ow">in</span> <span class="n">reverse_mapping</span><span class="p">:</span>
+ <span class="c1"># if a neighbor of the excluded node1 is in the mapping, keep node1 in T1</span>
+ <span class="n">is_added</span> <span class="o">=</span> <span class="kc">True</span>
+ <span class="n">T2</span><span class="o">.</span><span class="n">add</span><span class="p">(</span><span class="n">popped_node2</span><span class="p">)</span>
+ <span class="k">else</span><span class="p">:</span>
+ <span class="c1"># check if its neighbor has another connection with a covered node. If not, only then exclude it from T1</span>
+ <span class="k">if</span> <span class="ow">not</span> <span class="nb">any</span><span class="p">(</span><span class="n">pred</span> <span class="ow">in</span> <span class="n">reverse_mapping</span> <span class="k">for</span> <span class="n">pred</span> <span class="ow">in</span> <span class="n">G2</span><span class="o">.</span><span class="n">pred</span><span class="p">[</span><span class="n">predecessor</span><span class="p">]):</span>
+ <span class="n">T2</span><span class="o">.</span><span class="n">discard</span><span class="p">(</span><span class="n">predecessor</span><span class="p">)</span>
+
+ <span class="k">if</span> <span class="ow">not</span> <span class="nb">any</span><span class="p">(</span><span class="n">succ</span> <span class="ow">in</span> <span class="n">reverse_mapping</span> <span class="k">for</span> <span class="n">succ</span> <span class="ow">in</span> <span class="n">G2</span><span class="p">[</span><span class="n">predecessor</span><span class="p">]):</span>
+ <span class="n">T2_in</span><span class="o">.</span><span class="n">discard</span><span class="p">(</span><span class="n">predecessor</span><span class="p">)</span>
+
+ <span class="k">if</span> <span class="ow">not</span> <span class="p">(</span><span class="n">predecessor</span> <span class="ow">in</span> <span class="n">T2</span> <span class="ow">or</span> <span class="n">predecessor</span> <span class="ow">in</span> <span class="n">T2_in</span><span class="p">):</span>
+ <span class="n">T2_tilde</span><span class="o">.</span><span class="n">add</span><span class="p">(</span><span class="n">predecessor</span><span class="p">)</span>
+
+ <span class="k">if</span> <span class="ow">not</span> <span class="n">is_added</span><span class="p">:</span>
+ <span class="n">T2_tilde</span><span class="o">.</span><span class="n">add</span><span class="p">(</span><span class="n">popped_node2</span><span class="p">)</span>
</pre></div>
</article>
@@ -833,11 +1552,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/isomorphism/vf2userfunc.html b/_modules/networkx/algorithms/isomorphism/vf2userfunc.html
index 310610e2..59182e69 100644
--- a/_modules/networkx/algorithms/isomorphism/vf2userfunc.html
+++ b/_modules/networkx/algorithms/isomorphism/vf2userfunc.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.isomorphism.vf2userfunc &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.isomorphism.vf2userfunc &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/isomorphism/vf2userfunc';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/isomorphism/vf2userfunc.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -509,7 +521,6 @@
<span class="c1"># Make sure the edges match</span>
<span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">edge_match</span> <span class="ow">is</span> <span class="ow">not</span> <span class="kc">None</span><span class="p">:</span>
-
<span class="c1"># Cached lookups</span>
<span class="n">G1nbrs</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">G1_adj</span><span class="p">[</span><span class="n">G1_node</span><span class="p">]</span>
<span class="n">G2nbrs</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">G2_adj</span><span class="p">[</span><span class="n">G2_node</span><span class="p">]</span>
@@ -651,13 +662,9 @@
<span class="k">class</span> <span class="nc">MultiGraphMatcher</span><span class="p">(</span><span class="n">GraphMatcher</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;VF2 isomorphism checker for undirected multigraphs.&quot;&quot;&quot;</span>
- <span class="k">pass</span>
-
<span class="k">class</span> <span class="nc">MultiDiGraphMatcher</span><span class="p">(</span><span class="n">DiGraphMatcher</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;VF2 isomorphism checker for directed multigraphs.&quot;&quot;&quot;</span>
-
- <span class="k">pass</span>
</pre></div>
</article>
@@ -672,11 +679,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/link_analysis/hits_alg.html b/_modules/networkx/algorithms/link_analysis/hits_alg.html
index ddb890c9..9b927f53 100644
--- a/_modules/networkx/algorithms/link_analysis/hits_alg.html
+++ b/_modules/networkx/algorithms/link_analysis/hits_alg.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.link_analysis.hits_alg &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.link_analysis.hits_alg &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/link_analysis/hits_alg';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/link_analysis/hits_alg.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -810,11 +822,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/link_analysis/pagerank_alg.html b/_modules/networkx/algorithms/link_analysis/pagerank_alg.html
index cba43835..f965aaf7 100644
--- a/_modules/networkx/algorithms/link_analysis/pagerank_alg.html
+++ b/_modules/networkx/algorithms/link_analysis/pagerank_alg.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.link_analysis.pagerank_alg &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.link_analysis.pagerank_alg &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/link_analysis/pagerank_alg';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/link_analysis/pagerank_alg.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -499,7 +511,7 @@
<span class="sd"> The &quot;personalization vector&quot; consisting of a dictionary with a</span>
<span class="sd"> key some subset of graph nodes and personalization value each of those.</span>
<span class="sd"> At least one personalization value must be non-zero.</span>
-<span class="sd"> If not specfiied, a nodes personalization value will be zero.</span>
+<span class="sd"> If not specified, a nodes personalization value will be zero.</span>
<span class="sd"> By default, a uniform distribution is used.</span>
<span class="sd"> max_iter : integer, optional</span>
@@ -507,6 +519,7 @@
<span class="sd"> tol : float, optional</span>
<span class="sd"> Error tolerance used to check convergence in power method solver.</span>
+<span class="sd"> The iteration will stop after a tolerance of ``len(G) * tol`` is reached.</span>
<span class="sd"> nstart : dictionary, optional</span>
<span class="sd"> Starting value of PageRank iteration for each node.</span>
@@ -653,7 +666,7 @@
<span class="sd"> The &quot;personalization vector&quot; consisting of a dictionary with a</span>
<span class="sd"> key some subset of graph nodes and personalization value each of those.</span>
<span class="sd"> At least one personalization value must be non-zero.</span>
-<span class="sd"> If not specfiied, a nodes personalization value will be zero.</span>
+<span class="sd"> If not specifed, a nodes personalization value will be zero.</span>
<span class="sd"> By default, a uniform distribution is used.</span>
<span class="sd"> nodelist : list, optional</span>
@@ -752,7 +765,7 @@
<span class="sd"> The &quot;personalization vector&quot; consisting of a dictionary with a</span>
<span class="sd"> key some subset of graph nodes and personalization value each of those.</span>
<span class="sd"> At least one personalization value must be non-zero.</span>
-<span class="sd"> If not specfiied, a nodes personalization value will be zero.</span>
+<span class="sd"> If not specified, a nodes personalization value will be zero.</span>
<span class="sd"> By default, a uniform distribution is used.</span>
<span class="sd"> weight : key, optional</span>
@@ -846,7 +859,7 @@
<span class="sd"> The &quot;personalization vector&quot; consisting of a dictionary with a</span>
<span class="sd"> key some subset of graph nodes and personalization value each of those.</span>
<span class="sd"> At least one personalization value must be non-zero.</span>
-<span class="sd"> If not specfiied, a nodes personalization value will be zero.</span>
+<span class="sd"> If not specified, a nodes personalization value will be zero.</span>
<span class="sd"> By default, a uniform distribution is used.</span>
<span class="sd"> max_iter : integer, optional</span>
@@ -854,6 +867,7 @@
<span class="sd"> tol : float, optional</span>
<span class="sd"> Error tolerance used to check convergence in power method solver.</span>
+<span class="sd"> The iteration will stop after a tolerance of ``len(G) * tol`` is reached.</span>
<span class="sd"> nstart : dictionary, optional</span>
<span class="sd"> Starting value of PageRank iteration for each node.</span>
@@ -973,11 +987,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/link_prediction.html b/_modules/networkx/algorithms/link_prediction.html
index e7df6b9b..16200ff1 100644
--- a/_modules/networkx/algorithms/link_prediction.html
+++ b/_modules/networkx/algorithms/link_prediction.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.link_prediction &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.link_prediction &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/link_prediction';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/link_prediction.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -1072,11 +1084,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/lowest_common_ancestors.html b/_modules/networkx/algorithms/lowest_common_ancestors.html
index a6f48279..abc7f258 100644
--- a/_modules/networkx/algorithms/lowest_common_ancestors.html
+++ b/_modules/networkx/algorithms/lowest_common_ancestors.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.lowest_common_ancestors &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.lowest_common_ancestors &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/lowest_common_ancestors';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/lowest_common_ancestors.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -740,11 +752,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/matching.html b/_modules/networkx/algorithms/matching.html
index c413ddd7..992431bf 100644
--- a/_modules/networkx/algorithms/matching.html
+++ b/_modules/networkx/algorithms/matching.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.matching &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.matching &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/matching';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/matching.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -854,8 +866,6 @@
<span class="k">class</span> <span class="nc">NoNode</span><span class="p">:</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Dummy value which is different from any node.&quot;&quot;&quot;</span>
- <span class="k">pass</span>
-
<span class="k">class</span> <span class="nc">Blossom</span><span class="p">:</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Representation of a non-trivial blossom or sub-blossom.&quot;&quot;&quot;</span>
@@ -1269,7 +1279,7 @@
<span class="c1"># Swap matched/unmatched edges over an alternating path between two</span>
<span class="c1"># single vertices. The augmenting path runs through S-vertices v and w.</span>
<span class="k">def</span> <span class="nf">augmentMatching</span><span class="p">(</span><span class="n">v</span><span class="p">,</span> <span class="n">w</span><span class="p">):</span>
- <span class="k">for</span> <span class="p">(</span><span class="n">s</span><span class="p">,</span> <span class="n">j</span><span class="p">)</span> <span class="ow">in</span> <span class="p">((</span><span class="n">v</span><span class="p">,</span> <span class="n">w</span><span class="p">),</span> <span class="p">(</span><span class="n">w</span><span class="p">,</span> <span class="n">v</span><span class="p">)):</span>
+ <span class="k">for</span> <span class="n">s</span><span class="p">,</span> <span class="n">j</span> <span class="ow">in</span> <span class="p">((</span><span class="n">v</span><span class="p">,</span> <span class="n">w</span><span class="p">),</span> <span class="p">(</span><span class="n">w</span><span class="p">,</span> <span class="n">v</span><span class="p">)):</span>
<span class="c1"># Match vertex s to vertex j. Then trace back from s</span>
<span class="c1"># until we find a single vertex, swapping matched and unmatched</span>
<span class="c1"># edges as we go.</span>
@@ -1326,7 +1336,7 @@
<span class="n">jblossoms</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">blossomparent</span><span class="p">[</span><span class="n">jblossoms</span><span class="p">[</span><span class="o">-</span><span class="mi">1</span><span class="p">]])</span>
<span class="n">iblossoms</span><span class="o">.</span><span class="n">reverse</span><span class="p">()</span>
<span class="n">jblossoms</span><span class="o">.</span><span class="n">reverse</span><span class="p">()</span>
- <span class="k">for</span> <span class="p">(</span><span class="n">bi</span><span class="p">,</span> <span class="n">bj</span><span class="p">)</span> <span class="ow">in</span> <span class="nb">zip</span><span class="p">(</span><span class="n">iblossoms</span><span class="p">,</span> <span class="n">jblossoms</span><span class="p">):</span>
+ <span class="k">for</span> <span class="n">bi</span><span class="p">,</span> <span class="n">bj</span> <span class="ow">in</span> <span class="nb">zip</span><span class="p">(</span><span class="n">iblossoms</span><span class="p">,</span> <span class="n">jblossoms</span><span class="p">):</span>
<span class="k">if</span> <span class="n">bi</span> <span class="o">!=</span> <span class="n">bj</span><span class="p">:</span>
<span class="k">break</span>
<span class="n">s</span> <span class="o">+=</span> <span class="mi">2</span> <span class="o">*</span> <span class="n">blossomdual</span><span class="p">[</span><span class="n">bi</span><span class="p">]</span>
@@ -1341,13 +1351,12 @@
<span class="k">for</span> <span class="n">b</span> <span class="ow">in</span> <span class="n">blossomdual</span><span class="p">:</span>
<span class="k">if</span> <span class="n">blossomdual</span><span class="p">[</span><span class="n">b</span><span class="p">]</span> <span class="o">&gt;</span> <span class="mi">0</span><span class="p">:</span>
<span class="k">assert</span> <span class="nb">len</span><span class="p">(</span><span class="n">b</span><span class="o">.</span><span class="n">edges</span><span class="p">)</span> <span class="o">%</span> <span class="mi">2</span> <span class="o">==</span> <span class="mi">1</span>
- <span class="k">for</span> <span class="p">(</span><span class="n">i</span><span class="p">,</span> <span class="n">j</span><span class="p">)</span> <span class="ow">in</span> <span class="n">b</span><span class="o">.</span><span class="n">edges</span><span class="p">[</span><span class="mi">1</span><span class="p">::</span><span class="mi">2</span><span class="p">]:</span>
+ <span class="k">for</span> <span class="n">i</span><span class="p">,</span> <span class="n">j</span> <span class="ow">in</span> <span class="n">b</span><span class="o">.</span><span class="n">edges</span><span class="p">[</span><span class="mi">1</span><span class="p">::</span><span class="mi">2</span><span class="p">]:</span>
<span class="k">assert</span> <span class="n">mate</span><span class="p">[</span><span class="n">i</span><span class="p">]</span> <span class="o">==</span> <span class="n">j</span> <span class="ow">and</span> <span class="n">mate</span><span class="p">[</span><span class="n">j</span><span class="p">]</span> <span class="o">==</span> <span class="n">i</span>
<span class="c1"># Ok.</span>
<span class="c1"># Main loop: continue until no further improvement is possible.</span>
<span class="k">while</span> <span class="mi">1</span><span class="p">:</span>
-
<span class="c1"># Each iteration of this loop is a &quot;stage&quot;.</span>
<span class="c1"># A stage finds an augmenting path and uses that to improve</span>
<span class="c1"># the matching.</span>
@@ -1376,7 +1385,6 @@
<span class="c1"># Loop until we succeed in augmenting the matching.</span>
<span class="n">augmented</span> <span class="o">=</span> <span class="mi">0</span>
<span class="k">while</span> <span class="mi">1</span><span class="p">:</span>
-
<span class="c1"># Each iteration of this loop is a &quot;substage&quot;.</span>
<span class="c1"># A substage tries to find an augmenting path;</span>
<span class="c1"># if found, the path is used to improve the matching and</span>
@@ -1387,7 +1395,6 @@
<span class="c1"># Continue labeling until all vertices which are reachable</span>
<span class="c1"># through an alternating path have got a label.</span>
<span class="k">while</span> <span class="n">queue</span> <span class="ow">and</span> <span class="ow">not</span> <span class="n">augmented</span><span class="p">:</span>
-
<span class="c1"># Take an S vertex from the queue.</span>
<span class="n">v</span> <span class="o">=</span> <span class="n">queue</span><span class="o">.</span><span class="n">pop</span><span class="p">()</span>
<span class="k">assert</span> <span class="n">label</span><span class="p">[</span><span class="n">inblossom</span><span class="p">[</span><span class="n">v</span><span class="p">]]</span> <span class="o">==</span> <span class="mi">1</span>
@@ -1583,11 +1590,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/minors/contraction.html b/_modules/networkx/algorithms/minors/contraction.html
index 90cd96a0..88bf64e4 100644
--- a/_modules/networkx/algorithms/minors/contraction.html
+++ b/_modules/networkx/algorithms/minors/contraction.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.minors.contraction &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.minors.contraction &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/minors/contraction';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/minors/contraction.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -771,7 +783,7 @@
<span class="c1"># If the partition is a dict, it is assumed to be one where the keys are</span>
<span class="c1"># user-defined block labels, and values are block lists, tuples or sets.</span>
<span class="k">if</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">partition</span><span class="p">,</span> <span class="nb">dict</span><span class="p">):</span>
- <span class="n">partition</span> <span class="o">=</span> <span class="p">[</span><span class="n">block</span> <span class="k">for</span> <span class="n">block</span> <span class="ow">in</span> <span class="n">partition</span><span class="o">.</span><span class="n">values</span><span class="p">()]</span>
+ <span class="n">partition</span> <span class="o">=</span> <span class="nb">list</span><span class="p">(</span><span class="n">partition</span><span class="o">.</span><span class="n">values</span><span class="p">())</span>
<span class="c1"># If the user provided partition as a collection of sets. Then we</span>
<span class="c1"># need to check if partition covers all of G nodes. If the answer</span>
@@ -807,9 +819,12 @@
<span class="k">def</span> <span class="nf">node_data</span><span class="p">(</span><span class="n">b</span><span class="p">):</span>
<span class="n">S</span> <span class="o">=</span> <span class="n">G</span><span class="o">.</span><span class="n">subgraph</span><span class="p">(</span><span class="n">b</span><span class="p">)</span>
- <span class="k">return</span> <span class="nb">dict</span><span class="p">(</span>
- <span class="n">graph</span><span class="o">=</span><span class="n">S</span><span class="p">,</span> <span class="n">nnodes</span><span class="o">=</span><span class="nb">len</span><span class="p">(</span><span class="n">S</span><span class="p">),</span> <span class="n">nedges</span><span class="o">=</span><span class="n">S</span><span class="o">.</span><span class="n">number_of_edges</span><span class="p">(),</span> <span class="n">density</span><span class="o">=</span><span class="n">density</span><span class="p">(</span><span class="n">S</span><span class="p">)</span>
- <span class="p">)</span>
+ <span class="k">return</span> <span class="p">{</span>
+ <span class="s2">&quot;graph&quot;</span><span class="p">:</span> <span class="n">S</span><span class="p">,</span>
+ <span class="s2">&quot;nnodes&quot;</span><span class="p">:</span> <span class="nb">len</span><span class="p">(</span><span class="n">S</span><span class="p">),</span>
+ <span class="s2">&quot;nedges&quot;</span><span class="p">:</span> <span class="n">S</span><span class="o">.</span><span class="n">number_of_edges</span><span class="p">(),</span>
+ <span class="s2">&quot;density&quot;</span><span class="p">:</span> <span class="n">density</span><span class="p">(</span><span class="n">S</span><span class="p">),</span>
+ <span class="p">}</span>
<span class="c1"># Each block of the partition becomes a node in the quotient graph.</span>
<span class="n">partition</span> <span class="o">=</span> <span class="p">[</span><span class="nb">frozenset</span><span class="p">(</span><span class="n">b</span><span class="p">)</span> <span class="k">for</span> <span class="n">b</span> <span class="ow">in</span> <span class="n">partition</span><span class="p">]</span>
@@ -968,7 +983,7 @@
<span class="n">v_data</span> <span class="o">=</span> <span class="n">H</span><span class="o">.</span><span class="n">nodes</span><span class="p">[</span><span class="n">v</span><span class="p">]</span>
<span class="n">H</span><span class="o">.</span><span class="n">remove_node</span><span class="p">(</span><span class="n">v</span><span class="p">)</span>
- <span class="k">for</span> <span class="p">(</span><span class="n">prev_w</span><span class="p">,</span> <span class="n">prev_x</span><span class="p">,</span> <span class="n">d</span><span class="p">)</span> <span class="ow">in</span> <span class="n">edges_to_remap</span><span class="p">:</span>
+ <span class="k">for</span> <span class="n">prev_w</span><span class="p">,</span> <span class="n">prev_x</span><span class="p">,</span> <span class="n">d</span> <span class="ow">in</span> <span class="n">edges_to_remap</span><span class="p">:</span>
<span class="n">w</span> <span class="o">=</span> <span class="n">prev_w</span> <span class="k">if</span> <span class="n">prev_w</span> <span class="o">!=</span> <span class="n">v</span> <span class="k">else</span> <span class="n">u</span>
<span class="n">x</span> <span class="o">=</span> <span class="n">prev_x</span> <span class="k">if</span> <span class="n">prev_x</span> <span class="o">!=</span> <span class="n">v</span> <span class="k">else</span> <span class="n">u</span>
@@ -1074,11 +1089,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/mis.html b/_modules/networkx/algorithms/mis.html
index d9143cb7..a885c998 100644
--- a/_modules/networkx/algorithms/mis.html
+++ b/_modules/networkx/algorithms/mis.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.mis &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.mis &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/mis';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/mis.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -551,11 +563,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/moral.html b/_modules/networkx/algorithms/moral.html
index ff45b514..f696c8d2 100644
--- a/_modules/networkx/algorithms/moral.html
+++ b/_modules/networkx/algorithms/moral.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.moral &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.moral &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/moral';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/moral.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -532,11 +544,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/node_classification.html b/_modules/networkx/algorithms/node_classification.html
index 43d7b891..3de5c502 100644
--- a/_modules/networkx/algorithms/node_classification.html
+++ b/_modules/networkx/algorithms/node_classification.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.node_classification &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.node_classification &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/node_classification';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/node_classification.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -693,11 +705,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/non_randomness.html b/_modules/networkx/algorithms/non_randomness.html
index 4e97da33..7a8258fc 100644
--- a/_modules/networkx/algorithms/non_randomness.html
+++ b/_modules/networkx/algorithms/non_randomness.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.non_randomness &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.non_randomness &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/non_randomness';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/non_randomness.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -570,11 +582,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/operators/all.html b/_modules/networkx/algorithms/operators/all.html
index f3a6855a..1516fe57 100644
--- a/_modules/networkx/algorithms/operators/all.html
+++ b/_modules/networkx/algorithms/operators/all.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.operators.all &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.operators.all &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/operators/all';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/operators/all.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -706,11 +718,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/operators/binary.html b/_modules/networkx/algorithms/operators/binary.html
index d766ce23..f2633318 100644
--- a/_modules/networkx/algorithms/operators/binary.html
+++ b/_modules/networkx/algorithms/operators/binary.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.operators.binary &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.operators.binary &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/operators/binary';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/operators/binary.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -911,11 +923,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/operators/product.html b/_modules/networkx/algorithms/operators/product.html
index 310beb8e..578a529d 100644
--- a/_modules/networkx/algorithms/operators/product.html
+++ b/_modules/networkx/algorithms/operators/product.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.operators.product &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.operators.product &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/operators/product';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/operators/product.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -573,7 +585,7 @@
<span class="k">def</span> <span class="nf">_init_product_graph</span><span class="p">(</span><span class="n">G</span><span class="p">,</span> <span class="n">H</span><span class="p">):</span>
- <span class="k">if</span> <span class="ow">not</span> <span class="n">G</span><span class="o">.</span><span class="n">is_directed</span><span class="p">()</span> <span class="o">==</span> <span class="n">H</span><span class="o">.</span><span class="n">is_directed</span><span class="p">():</span>
+ <span class="k">if</span> <span class="n">G</span><span class="o">.</span><span class="n">is_directed</span><span class="p">()</span> <span class="o">!=</span> <span class="n">H</span><span class="o">.</span><span class="n">is_directed</span><span class="p">():</span>
<span class="n">msg</span> <span class="o">=</span> <span class="s2">&quot;G and H must be both directed or both undirected&quot;</span>
<span class="k">raise</span> <span class="n">nx</span><span class="o">.</span><span class="n">NetworkXError</span><span class="p">(</span><span class="n">msg</span><span class="p">)</span>
<span class="k">if</span> <span class="n">G</span><span class="o">.</span><span class="n">is_multigraph</span><span class="p">()</span> <span class="ow">or</span> <span class="n">H</span><span class="o">.</span><span class="n">is_multigraph</span><span class="p">():</span>
@@ -975,7 +987,6 @@
<span class="n">GH</span><span class="o">.</span><span class="n">add_edges_from</span><span class="p">(</span><span class="n">G</span><span class="o">.</span><span class="n">edges</span><span class="p">)</span>
<span class="k">for</span> <span class="n">G_node</span> <span class="ow">in</span> <span class="n">G</span><span class="p">:</span>
-
<span class="c1"># copy nodes of H in GH, call it H_i</span>
<span class="n">GH</span><span class="o">.</span><span class="n">add_nodes_from</span><span class="p">((</span><span class="n">G_node</span><span class="p">,</span> <span class="n">v</span><span class="p">)</span> <span class="k">for</span> <span class="n">v</span> <span class="ow">in</span> <span class="n">H</span><span class="p">)</span>
@@ -1002,11 +1013,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/operators/unary.html b/_modules/networkx/algorithms/operators/unary.html
index 15408756..3481a543 100644
--- a/_modules/networkx/algorithms/operators/unary.html
+++ b/_modules/networkx/algorithms/operators/unary.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.operators.unary &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.operators.unary &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/operators/unary';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/operators/unary.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -549,11 +561,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/planar_drawing.html b/_modules/networkx/algorithms/planar_drawing.html
index fb6c5154..69e27bce 100644
--- a/_modules/networkx/algorithms/planar_drawing.html
+++ b/_modules/networkx/algorithms/planar_drawing.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.planar_drawing &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.planar_drawing &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/planar_drawing';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/planar_drawing.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -571,7 +583,7 @@
<span class="n">left_t_child</span><span class="p">[</span><span class="n">vk</span><span class="p">]</span> <span class="o">=</span> <span class="kc">None</span>
<span class="c1"># 2. Phase: Set absolute positions</span>
- <span class="n">pos</span> <span class="o">=</span> <span class="nb">dict</span><span class="p">()</span>
+ <span class="n">pos</span> <span class="o">=</span> <span class="p">{}</span>
<span class="n">pos</span><span class="p">[</span><span class="n">v1</span><span class="p">]</span> <span class="o">=</span> <span class="p">(</span><span class="mi">0</span><span class="p">,</span> <span class="n">y_coordinate</span><span class="p">[</span><span class="n">v1</span><span class="p">])</span>
<span class="n">remaining_nodes</span> <span class="o">=</span> <span class="p">[</span><span class="n">v1</span><span class="p">]</span>
<span class="k">while</span> <span class="n">remaining_nodes</span><span class="p">:</span>
@@ -676,7 +688,7 @@
<span class="k">return</span> <span class="n">outer_face_ccw_nbr</span><span class="p">[</span><span class="n">x</span><span class="p">]</span> <span class="o">==</span> <span class="n">y</span> <span class="ow">or</span> <span class="n">outer_face_cw_nbr</span><span class="p">[</span><span class="n">x</span><span class="p">]</span> <span class="o">==</span> <span class="n">y</span>
<span class="k">def</span> <span class="nf">is_on_outer_face</span><span class="p">(</span><span class="n">x</span><span class="p">):</span>
- <span class="k">return</span> <span class="n">x</span> <span class="ow">not</span> <span class="ow">in</span> <span class="n">marked_nodes</span> <span class="ow">and</span> <span class="p">(</span><span class="n">x</span> <span class="ow">in</span> <span class="n">outer_face_ccw_nbr</span><span class="o">.</span><span class="n">keys</span><span class="p">()</span> <span class="ow">or</span> <span class="n">x</span> <span class="o">==</span> <span class="n">v1</span><span class="p">)</span>
+ <span class="k">return</span> <span class="n">x</span> <span class="ow">not</span> <span class="ow">in</span> <span class="n">marked_nodes</span> <span class="ow">and</span> <span class="p">(</span><span class="n">x</span> <span class="ow">in</span> <span class="n">outer_face_ccw_nbr</span> <span class="ow">or</span> <span class="n">x</span> <span class="o">==</span> <span class="n">v1</span><span class="p">)</span>
<span class="c1"># Initialize number of chords</span>
<span class="k">for</span> <span class="n">v</span> <span class="ow">in</span> <span class="n">outer_face</span><span class="p">:</span>
@@ -686,7 +698,7 @@
<span class="n">ready_to_pick</span><span class="o">.</span><span class="n">discard</span><span class="p">(</span><span class="n">v</span><span class="p">)</span>
<span class="c1"># Initialize canonical_ordering</span>
- <span class="n">canonical_ordering</span> <span class="o">=</span> <span class="p">[</span><span class="kc">None</span><span class="p">]</span> <span class="o">*</span> <span class="nb">len</span><span class="p">(</span><span class="n">embedding</span><span class="o">.</span><span class="n">nodes</span><span class="p">())</span> <span class="c1"># type: list</span>
+ <span class="n">canonical_ordering</span> <span class="o">=</span> <span class="p">[</span><span class="kc">None</span><span class="p">]</span> <span class="o">*</span> <span class="nb">len</span><span class="p">(</span><span class="n">embedding</span><span class="o">.</span><span class="n">nodes</span><span class="p">())</span>
<span class="n">canonical_ordering</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span> <span class="o">=</span> <span class="p">(</span><span class="n">v1</span><span class="p">,</span> <span class="p">[])</span>
<span class="n">canonical_ordering</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span> <span class="o">=</span> <span class="p">(</span><span class="n">v2</span><span class="p">,</span> <span class="p">[])</span>
<span class="n">ready_to_pick</span><span class="o">.</span><span class="n">discard</span><span class="p">(</span><span class="n">v1</span><span class="p">)</span>
@@ -779,7 +791,7 @@
<span class="sd"> &quot;&quot;&quot;</span>
<span class="n">_</span><span class="p">,</span> <span class="n">v3</span> <span class="o">=</span> <span class="n">embedding</span><span class="o">.</span><span class="n">next_face_half_edge</span><span class="p">(</span><span class="n">v1</span><span class="p">,</span> <span class="n">v2</span><span class="p">)</span>
<span class="n">_</span><span class="p">,</span> <span class="n">v4</span> <span class="o">=</span> <span class="n">embedding</span><span class="o">.</span><span class="n">next_face_half_edge</span><span class="p">(</span><span class="n">v2</span><span class="p">,</span> <span class="n">v3</span><span class="p">)</span>
- <span class="k">if</span> <span class="n">v1</span> <span class="o">==</span> <span class="n">v2</span> <span class="ow">or</span> <span class="n">v1</span> <span class="o">==</span> <span class="n">v3</span><span class="p">:</span>
+ <span class="k">if</span> <span class="n">v1</span> <span class="ow">in</span> <span class="p">(</span><span class="n">v2</span><span class="p">,</span> <span class="n">v3</span><span class="p">):</span>
<span class="c1"># The component has less than 3 nodes</span>
<span class="k">return</span>
<span class="k">while</span> <span class="n">v1</span> <span class="o">!=</span> <span class="n">v4</span><span class="p">:</span>
@@ -939,11 +951,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/planarity.html b/_modules/networkx/algorithms/planarity.html
index b8853a46..c5486bdd 100644
--- a/_modules/networkx/algorithms/planarity.html
+++ b/_modules/networkx/algorithms/planarity.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.planarity &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.planarity &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/planarity';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/planarity.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -1330,7 +1342,7 @@
<span class="sd"> set_data</span>
<span class="sd"> &quot;&quot;&quot;</span>
- <span class="n">embedding</span> <span class="o">=</span> <span class="nb">dict</span><span class="p">()</span>
+ <span class="n">embedding</span> <span class="o">=</span> <span class="p">{}</span>
<span class="k">for</span> <span class="n">v</span> <span class="ow">in</span> <span class="bp">self</span><span class="p">:</span>
<span class="n">embedding</span><span class="p">[</span><span class="n">v</span><span class="p">]</span> <span class="o">=</span> <span class="nb">list</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">neighbors_cw_order</span><span class="p">(</span><span class="n">v</span><span class="p">))</span>
<span class="k">return</span> <span class="n">embedding</span></div>
@@ -1649,11 +1661,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/polynomials.html b/_modules/networkx/algorithms/polynomials.html
index 09211792..c9d24989 100644
--- a/_modules/networkx/algorithms/polynomials.html
+++ b/_modules/networkx/algorithms/polynomials.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.polynomials &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.polynomials &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/polynomials';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/polynomials.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -778,11 +790,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/reciprocity.html b/_modules/networkx/algorithms/reciprocity.html
index 12e28869..9bb74dac 100644
--- a/_modules/networkx/algorithms/reciprocity.html
+++ b/_modules/networkx/algorithms/reciprocity.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.reciprocity &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.reciprocity &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/reciprocity';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/reciprocity.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -572,11 +584,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/regular.html b/_modules/networkx/algorithms/regular.html
index 20f36e84..e0de469d 100644
--- a/_modules/networkx/algorithms/regular.html
+++ b/_modules/networkx/algorithms/regular.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.regular &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.regular &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/regular';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/regular.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -585,7 +597,7 @@
<span class="n">adj_view</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">g</span><span class="p">[</span><span class="bp">self</span><span class="o">.</span><span class="n">original</span><span class="p">]</span>
<span class="n">neighbors</span> <span class="o">=</span> <span class="nb">list</span><span class="p">(</span><span class="n">adj_view</span><span class="o">.</span><span class="n">keys</span><span class="p">())</span>
<span class="n">edge_attrs</span> <span class="o">=</span> <span class="nb">list</span><span class="p">(</span><span class="n">adj_view</span><span class="o">.</span><span class="n">values</span><span class="p">())</span>
- <span class="k">for</span> <span class="p">(</span><span class="n">outer</span><span class="p">,</span> <span class="n">neighbor</span><span class="p">,</span> <span class="n">edge_attrs</span><span class="p">)</span> <span class="ow">in</span> <span class="nb">zip</span><span class="p">(</span>
+ <span class="k">for</span> <span class="n">outer</span><span class="p">,</span> <span class="n">neighbor</span><span class="p">,</span> <span class="n">edge_attrs</span> <span class="ow">in</span> <span class="nb">zip</span><span class="p">(</span>
<span class="bp">self</span><span class="o">.</span><span class="n">outer_vertices</span><span class="p">,</span> <span class="n">neighbors</span><span class="p">,</span> <span class="n">edge_attrs</span>
<span class="p">):</span>
<span class="bp">self</span><span class="o">.</span><span class="n">g</span><span class="o">.</span><span class="n">add_edge</span><span class="p">(</span><span class="n">outer</span><span class="p">,</span> <span class="n">neighbor</span><span class="p">,</span> <span class="o">**</span><span class="n">edge_attrs</span><span class="p">)</span>
@@ -618,7 +630,7 @@
<span class="k">def</span> <span class="nf">replace_node</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
<span class="n">adj_view</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">g</span><span class="p">[</span><span class="bp">self</span><span class="o">.</span><span class="n">original</span><span class="p">]</span>
- <span class="k">for</span> <span class="p">(</span><span class="n">outer</span><span class="p">,</span> <span class="n">inner</span><span class="p">,</span> <span class="p">(</span><span class="n">neighbor</span><span class="p">,</span> <span class="n">edge_attrs</span><span class="p">))</span> <span class="ow">in</span> <span class="nb">zip</span><span class="p">(</span>
+ <span class="k">for</span> <span class="n">outer</span><span class="p">,</span> <span class="n">inner</span><span class="p">,</span> <span class="p">(</span><span class="n">neighbor</span><span class="p">,</span> <span class="n">edge_attrs</span><span class="p">)</span> <span class="ow">in</span> <span class="nb">zip</span><span class="p">(</span>
<span class="bp">self</span><span class="o">.</span><span class="n">outer_vertices</span><span class="p">,</span> <span class="bp">self</span><span class="o">.</span><span class="n">inner_vertices</span><span class="p">,</span> <span class="nb">list</span><span class="p">(</span><span class="n">adj_view</span><span class="o">.</span><span class="n">items</span><span class="p">())</span>
<span class="p">):</span>
<span class="bp">self</span><span class="o">.</span><span class="n">g</span><span class="o">.</span><span class="n">add_edge</span><span class="p">(</span><span class="n">outer</span><span class="p">,</span> <span class="n">inner</span><span class="p">)</span>
@@ -686,11 +698,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/richclub.html b/_modules/networkx/algorithms/richclub.html
index 80626a6f..a1248da1 100644
--- a/_modules/networkx/algorithms/richclub.html
+++ b/_modules/networkx/algorithms/richclub.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.richclub &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.richclub &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/richclub';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/richclub.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -595,11 +607,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/shortest_paths/astar.html b/_modules/networkx/algorithms/shortest_paths/astar.html
index 3bf7bd4d..c9b12d55 100644
--- a/_modules/networkx/algorithms/shortest_paths/astar.html
+++ b/_modules/networkx/algorithms/shortest_paths/astar.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.shortest_paths.astar &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.shortest_paths.astar &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/shortest_paths/astar';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/shortest_paths/astar.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -685,11 +697,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/shortest_paths/dense.html b/_modules/networkx/algorithms/shortest_paths/dense.html
index b7b67c15..cdca8347 100644
--- a/_modules/networkx/algorithms/shortest_paths/dense.html
+++ b/_modules/networkx/algorithms/shortest_paths/dense.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.shortest_paths.dense &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.shortest_paths.dense &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/shortest_paths/dense';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/shortest_paths/dense.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -473,7 +485,8 @@
<span class="p">]</span>
-<div class="viewcode-block" id="floyd_warshall_numpy"><a class="viewcode-back" href="../../../../reference/algorithms/generated/networkx.algorithms.shortest_paths.dense.floyd_warshall_numpy.html#networkx.algorithms.shortest_paths.dense.floyd_warshall_numpy">[docs]</a><span class="k">def</span> <span class="nf">floyd_warshall_numpy</span><span class="p">(</span><span class="n">G</span><span class="p">,</span> <span class="n">nodelist</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span> <span class="n">weight</span><span class="o">=</span><span class="s2">&quot;weight&quot;</span><span class="p">):</span>
+<div class="viewcode-block" id="floyd_warshall_numpy"><a class="viewcode-back" href="../../../../reference/algorithms/generated/networkx.algorithms.shortest_paths.dense.floyd_warshall_numpy.html#networkx.algorithms.shortest_paths.dense.floyd_warshall_numpy">[docs]</a><span class="nd">@nx</span><span class="o">.</span><span class="n">_dispatch</span>
+<span class="k">def</span> <span class="nf">floyd_warshall_numpy</span><span class="p">(</span><span class="n">G</span><span class="p">,</span> <span class="n">nodelist</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span> <span class="n">weight</span><span class="o">=</span><span class="s2">&quot;weight&quot;</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Find all-pairs shortest path lengths using Floyd&#39;s algorithm.</span>
<span class="sd"> This algorithm for finding shortest paths takes advantage of</span>
@@ -536,7 +549,8 @@
<span class="k">return</span> <span class="n">A</span></div>
-<div class="viewcode-block" id="floyd_warshall_predecessor_and_distance"><a class="viewcode-back" href="../../../../reference/algorithms/generated/networkx.algorithms.shortest_paths.dense.floyd_warshall_predecessor_and_distance.html#networkx.algorithms.shortest_paths.dense.floyd_warshall_predecessor_and_distance">[docs]</a><span class="k">def</span> <span class="nf">floyd_warshall_predecessor_and_distance</span><span class="p">(</span><span class="n">G</span><span class="p">,</span> <span class="n">weight</span><span class="o">=</span><span class="s2">&quot;weight&quot;</span><span class="p">):</span>
+<div class="viewcode-block" id="floyd_warshall_predecessor_and_distance"><a class="viewcode-back" href="../../../../reference/algorithms/generated/networkx.algorithms.shortest_paths.dense.floyd_warshall_predecessor_and_distance.html#networkx.algorithms.shortest_paths.dense.floyd_warshall_predecessor_and_distance">[docs]</a><span class="nd">@nx</span><span class="o">.</span><span class="n">_dispatch</span>
+<span class="k">def</span> <span class="nf">floyd_warshall_predecessor_and_distance</span><span class="p">(</span><span class="n">G</span><span class="p">,</span> <span class="n">weight</span><span class="o">=</span><span class="s2">&quot;weight&quot;</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Find all-pairs shortest path lengths using Floyd&#39;s algorithm.</span>
<span class="sd"> Parameters</span>
@@ -661,7 +675,8 @@
<span class="k">return</span> <span class="nb">list</span><span class="p">(</span><span class="nb">reversed</span><span class="p">(</span><span class="n">path</span><span class="p">))</span></div>
-<div class="viewcode-block" id="floyd_warshall"><a class="viewcode-back" href="../../../../reference/algorithms/generated/networkx.algorithms.shortest_paths.dense.floyd_warshall.html#networkx.algorithms.shortest_paths.dense.floyd_warshall">[docs]</a><span class="k">def</span> <span class="nf">floyd_warshall</span><span class="p">(</span><span class="n">G</span><span class="p">,</span> <span class="n">weight</span><span class="o">=</span><span class="s2">&quot;weight&quot;</span><span class="p">):</span>
+<div class="viewcode-block" id="floyd_warshall"><a class="viewcode-back" href="../../../../reference/algorithms/generated/networkx.algorithms.shortest_paths.dense.floyd_warshall.html#networkx.algorithms.shortest_paths.dense.floyd_warshall">[docs]</a><span class="nd">@nx</span><span class="o">.</span><span class="n">_dispatch</span>
+<span class="k">def</span> <span class="nf">floyd_warshall</span><span class="p">(</span><span class="n">G</span><span class="p">,</span> <span class="n">weight</span><span class="o">=</span><span class="s2">&quot;weight&quot;</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Find all-pairs shortest path lengths using Floyd&#39;s algorithm.</span>
<span class="sd"> Parameters</span>
@@ -708,11 +723,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/shortest_paths/generic.html b/_modules/networkx/algorithms/shortest_paths/generic.html
index 5fdf61f3..71a062f4 100644
--- a/_modules/networkx/algorithms/shortest_paths/generic.html
+++ b/_modules/networkx/algorithms/shortest_paths/generic.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.shortest_paths.generic &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.shortest_paths.generic &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/shortest_paths/generic';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/shortest_paths/generic.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -1051,11 +1063,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/shortest_paths/unweighted.html b/_modules/networkx/algorithms/shortest_paths/unweighted.html
index f8565ac0..3cffc2cd 100644
--- a/_modules/networkx/algorithms/shortest_paths/unweighted.html
+++ b/_modules/networkx/algorithms/shortest_paths/unweighted.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.shortest_paths.unweighted &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.shortest_paths.unweighted &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/shortest_paths/unweighted';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/shortest_paths/unweighted.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -478,7 +490,8 @@
<span class="p">]</span>
-<div class="viewcode-block" id="single_source_shortest_path_length"><a class="viewcode-back" href="../../../../reference/algorithms/generated/networkx.algorithms.shortest_paths.unweighted.single_source_shortest_path_length.html#networkx.algorithms.shortest_paths.unweighted.single_source_shortest_path_length">[docs]</a><span class="k">def</span> <span class="nf">single_source_shortest_path_length</span><span class="p">(</span><span class="n">G</span><span class="p">,</span> <span class="n">source</span><span class="p">,</span> <span class="n">cutoff</span><span class="o">=</span><span class="kc">None</span><span class="p">):</span>
+<div class="viewcode-block" id="single_source_shortest_path_length"><a class="viewcode-back" href="../../../../reference/algorithms/generated/networkx.algorithms.shortest_paths.unweighted.single_source_shortest_path_length.html#networkx.algorithms.shortest_paths.unweighted.single_source_shortest_path_length">[docs]</a><span class="nd">@nx</span><span class="o">.</span><span class="n">_dispatch</span>
+<span class="k">def</span> <span class="nf">single_source_shortest_path_length</span><span class="p">(</span><span class="n">G</span><span class="p">,</span> <span class="n">source</span><span class="p">,</span> <span class="n">cutoff</span><span class="o">=</span><span class="kc">None</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Compute the shortest path lengths from source to all reachable nodes.</span>
<span class="sd"> Parameters</span>
@@ -556,7 +569,8 @@
<span class="k">del</span> <span class="n">seen</span>
-<div class="viewcode-block" id="single_target_shortest_path_length"><a class="viewcode-back" href="../../../../reference/algorithms/generated/networkx.algorithms.shortest_paths.unweighted.single_target_shortest_path_length.html#networkx.algorithms.shortest_paths.unweighted.single_target_shortest_path_length">[docs]</a><span class="k">def</span> <span class="nf">single_target_shortest_path_length</span><span class="p">(</span><span class="n">G</span><span class="p">,</span> <span class="n">target</span><span class="p">,</span> <span class="n">cutoff</span><span class="o">=</span><span class="kc">None</span><span class="p">):</span>
+<div class="viewcode-block" id="single_target_shortest_path_length"><a class="viewcode-back" href="../../../../reference/algorithms/generated/networkx.algorithms.shortest_paths.unweighted.single_target_shortest_path_length.html#networkx.algorithms.shortest_paths.unweighted.single_target_shortest_path_length">[docs]</a><span class="nd">@nx</span><span class="o">.</span><span class="n">_dispatch</span>
+<span class="k">def</span> <span class="nf">single_target_shortest_path_length</span><span class="p">(</span><span class="n">G</span><span class="p">,</span> <span class="n">target</span><span class="p">,</span> <span class="n">cutoff</span><span class="o">=</span><span class="kc">None</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Compute the shortest path lengths to target from all reachable nodes.</span>
<span class="sd"> Parameters</span>
@@ -603,7 +617,8 @@
<span class="k">return</span> <span class="n">_single_shortest_path_length</span><span class="p">(</span><span class="n">adj</span><span class="p">,</span> <span class="n">nextlevel</span><span class="p">,</span> <span class="n">cutoff</span><span class="p">)</span></div>
-<div class="viewcode-block" id="all_pairs_shortest_path_length"><a class="viewcode-back" href="../../../../reference/algorithms/generated/networkx.algorithms.shortest_paths.unweighted.all_pairs_shortest_path_length.html#networkx.algorithms.shortest_paths.unweighted.all_pairs_shortest_path_length">[docs]</a><span class="k">def</span> <span class="nf">all_pairs_shortest_path_length</span><span class="p">(</span><span class="n">G</span><span class="p">,</span> <span class="n">cutoff</span><span class="o">=</span><span class="kc">None</span><span class="p">):</span>
+<div class="viewcode-block" id="all_pairs_shortest_path_length"><a class="viewcode-back" href="../../../../reference/algorithms/generated/networkx.algorithms.shortest_paths.unweighted.all_pairs_shortest_path_length.html#networkx.algorithms.shortest_paths.unweighted.all_pairs_shortest_path_length">[docs]</a><span class="nd">@nx</span><span class="o">.</span><span class="n">_dispatch</span>
+<span class="k">def</span> <span class="nf">all_pairs_shortest_path_length</span><span class="p">(</span><span class="n">G</span><span class="p">,</span> <span class="n">cutoff</span><span class="o">=</span><span class="kc">None</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Computes the shortest path lengths between all nodes in `G`.</span>
<span class="sd"> Parameters</span>
@@ -755,7 +770,8 @@
<span class="k">raise</span> <span class="n">nx</span><span class="o">.</span><span class="n">NetworkXNoPath</span><span class="p">(</span><span class="sa">f</span><span class="s2">&quot;No path between </span><span class="si">{</span><span class="n">source</span><span class="si">}</span><span class="s2"> and </span><span class="si">{</span><span class="n">target</span><span class="si">}</span><span class="s2">.&quot;</span><span class="p">)</span>
-<div class="viewcode-block" id="single_source_shortest_path"><a class="viewcode-back" href="../../../../reference/algorithms/generated/networkx.algorithms.shortest_paths.unweighted.single_source_shortest_path.html#networkx.algorithms.shortest_paths.unweighted.single_source_shortest_path">[docs]</a><span class="k">def</span> <span class="nf">single_source_shortest_path</span><span class="p">(</span><span class="n">G</span><span class="p">,</span> <span class="n">source</span><span class="p">,</span> <span class="n">cutoff</span><span class="o">=</span><span class="kc">None</span><span class="p">):</span>
+<div class="viewcode-block" id="single_source_shortest_path"><a class="viewcode-back" href="../../../../reference/algorithms/generated/networkx.algorithms.shortest_paths.unweighted.single_source_shortest_path.html#networkx.algorithms.shortest_paths.unweighted.single_source_shortest_path">[docs]</a><span class="nd">@nx</span><span class="o">.</span><span class="n">_dispatch</span>
+<span class="k">def</span> <span class="nf">single_source_shortest_path</span><span class="p">(</span><span class="n">G</span><span class="p">,</span> <span class="n">source</span><span class="p">,</span> <span class="n">cutoff</span><span class="o">=</span><span class="kc">None</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Compute shortest path between source</span>
<span class="sd"> and all other nodes reachable from source.</span>
@@ -838,7 +854,8 @@
<span class="k">return</span> <span class="n">paths</span>
-<div class="viewcode-block" id="single_target_shortest_path"><a class="viewcode-back" href="../../../../reference/algorithms/generated/networkx.algorithms.shortest_paths.unweighted.single_target_shortest_path.html#networkx.algorithms.shortest_paths.unweighted.single_target_shortest_path">[docs]</a><span class="k">def</span> <span class="nf">single_target_shortest_path</span><span class="p">(</span><span class="n">G</span><span class="p">,</span> <span class="n">target</span><span class="p">,</span> <span class="n">cutoff</span><span class="o">=</span><span class="kc">None</span><span class="p">):</span>
+<div class="viewcode-block" id="single_target_shortest_path"><a class="viewcode-back" href="../../../../reference/algorithms/generated/networkx.algorithms.shortest_paths.unweighted.single_target_shortest_path.html#networkx.algorithms.shortest_paths.unweighted.single_target_shortest_path">[docs]</a><span class="nd">@nx</span><span class="o">.</span><span class="n">_dispatch</span>
+<span class="k">def</span> <span class="nf">single_target_shortest_path</span><span class="p">(</span><span class="n">G</span><span class="p">,</span> <span class="n">target</span><span class="p">,</span> <span class="n">cutoff</span><span class="o">=</span><span class="kc">None</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Compute shortest path to target from all nodes that reach target.</span>
<span class="sd"> Parameters</span>
@@ -889,7 +906,8 @@
<span class="k">return</span> <span class="nb">dict</span><span class="p">(</span><span class="n">_single_shortest_path</span><span class="p">(</span><span class="n">adj</span><span class="p">,</span> <span class="n">nextlevel</span><span class="p">,</span> <span class="n">paths</span><span class="p">,</span> <span class="n">cutoff</span><span class="p">,</span> <span class="n">join</span><span class="p">))</span></div>
-<div class="viewcode-block" id="all_pairs_shortest_path"><a class="viewcode-back" href="../../../../reference/algorithms/generated/networkx.algorithms.shortest_paths.unweighted.all_pairs_shortest_path.html#networkx.algorithms.shortest_paths.unweighted.all_pairs_shortest_path">[docs]</a><span class="k">def</span> <span class="nf">all_pairs_shortest_path</span><span class="p">(</span><span class="n">G</span><span class="p">,</span> <span class="n">cutoff</span><span class="o">=</span><span class="kc">None</span><span class="p">):</span>
+<div class="viewcode-block" id="all_pairs_shortest_path"><a class="viewcode-back" href="../../../../reference/algorithms/generated/networkx.algorithms.shortest_paths.unweighted.all_pairs_shortest_path.html#networkx.algorithms.shortest_paths.unweighted.all_pairs_shortest_path">[docs]</a><span class="nd">@nx</span><span class="o">.</span><span class="n">_dispatch</span>
+<span class="k">def</span> <span class="nf">all_pairs_shortest_path</span><span class="p">(</span><span class="n">G</span><span class="p">,</span> <span class="n">cutoff</span><span class="o">=</span><span class="kc">None</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Compute shortest paths between all nodes.</span>
<span class="sd"> Parameters</span>
@@ -1018,11 +1036,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/shortest_paths/weighted.html b/_modules/networkx/algorithms/shortest_paths/weighted.html
index 61c9e9e5..8e4adad8 100644
--- a/_modules/networkx/algorithms/shortest_paths/weighted.html
+++ b/_modules/networkx/algorithms/shortest_paths/weighted.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.shortest_paths.weighted &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.shortest_paths.weighted &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/shortest_paths/weighted';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/shortest_paths/weighted.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -1577,7 +1589,8 @@
<span class="k">yield</span> <span class="p">(</span><span class="n">n</span><span class="p">,</span> <span class="n">path</span><span class="p">(</span><span class="n">G</span><span class="p">,</span> <span class="n">n</span><span class="p">,</span> <span class="n">cutoff</span><span class="o">=</span><span class="n">cutoff</span><span class="p">,</span> <span class="n">weight</span><span class="o">=</span><span class="n">weight</span><span class="p">))</span></div>
-<div class="viewcode-block" id="bellman_ford_predecessor_and_distance"><a class="viewcode-back" href="../../../../reference/algorithms/generated/networkx.algorithms.shortest_paths.weighted.bellman_ford_predecessor_and_distance.html#networkx.algorithms.shortest_paths.weighted.bellman_ford_predecessor_and_distance">[docs]</a><span class="k">def</span> <span class="nf">bellman_ford_predecessor_and_distance</span><span class="p">(</span>
+<div class="viewcode-block" id="bellman_ford_predecessor_and_distance"><a class="viewcode-back" href="../../../../reference/algorithms/generated/networkx.algorithms.shortest_paths.weighted.bellman_ford_predecessor_and_distance.html#networkx.algorithms.shortest_paths.weighted.bellman_ford_predecessor_and_distance">[docs]</a><span class="nd">@nx</span><span class="o">.</span><span class="n">_dispatch</span>
+<span class="k">def</span> <span class="nf">bellman_ford_predecessor_and_distance</span><span class="p">(</span>
<span class="n">G</span><span class="p">,</span> <span class="n">source</span><span class="p">,</span> <span class="n">target</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span> <span class="n">weight</span><span class="o">=</span><span class="s2">&quot;weight&quot;</span><span class="p">,</span> <span class="n">heuristic</span><span class="o">=</span><span class="kc">False</span>
<span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Compute shortest path lengths and predecessors on shortest paths</span>
@@ -1917,7 +1930,8 @@
<span class="k">return</span> <span class="kc">None</span>
-<div class="viewcode-block" id="bellman_ford_path"><a class="viewcode-back" href="../../../../reference/algorithms/generated/networkx.algorithms.shortest_paths.weighted.bellman_ford_path.html#networkx.algorithms.shortest_paths.weighted.bellman_ford_path">[docs]</a><span class="k">def</span> <span class="nf">bellman_ford_path</span><span class="p">(</span><span class="n">G</span><span class="p">,</span> <span class="n">source</span><span class="p">,</span> <span class="n">target</span><span class="p">,</span> <span class="n">weight</span><span class="o">=</span><span class="s2">&quot;weight&quot;</span><span class="p">):</span>
+<div class="viewcode-block" id="bellman_ford_path"><a class="viewcode-back" href="../../../../reference/algorithms/generated/networkx.algorithms.shortest_paths.weighted.bellman_ford_path.html#networkx.algorithms.shortest_paths.weighted.bellman_ford_path">[docs]</a><span class="nd">@nx</span><span class="o">.</span><span class="n">_dispatch</span>
+<span class="k">def</span> <span class="nf">bellman_ford_path</span><span class="p">(</span><span class="n">G</span><span class="p">,</span> <span class="n">source</span><span class="p">,</span> <span class="n">target</span><span class="p">,</span> <span class="n">weight</span><span class="o">=</span><span class="s2">&quot;weight&quot;</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Returns the shortest path from source to target in a weighted graph G.</span>
<span class="sd"> Parameters</span>
@@ -1975,7 +1989,8 @@
<span class="k">return</span> <span class="n">path</span></div>
-<div class="viewcode-block" id="bellman_ford_path_length"><a class="viewcode-back" href="../../../../reference/algorithms/generated/networkx.algorithms.shortest_paths.weighted.bellman_ford_path_length.html#networkx.algorithms.shortest_paths.weighted.bellman_ford_path_length">[docs]</a><span class="k">def</span> <span class="nf">bellman_ford_path_length</span><span class="p">(</span><span class="n">G</span><span class="p">,</span> <span class="n">source</span><span class="p">,</span> <span class="n">target</span><span class="p">,</span> <span class="n">weight</span><span class="o">=</span><span class="s2">&quot;weight&quot;</span><span class="p">):</span>
+<div class="viewcode-block" id="bellman_ford_path_length"><a class="viewcode-back" href="../../../../reference/algorithms/generated/networkx.algorithms.shortest_paths.weighted.bellman_ford_path_length.html#networkx.algorithms.shortest_paths.weighted.bellman_ford_path_length">[docs]</a><span class="nd">@nx</span><span class="o">.</span><span class="n">_dispatch</span>
+<span class="k">def</span> <span class="nf">bellman_ford_path_length</span><span class="p">(</span><span class="n">G</span><span class="p">,</span> <span class="n">source</span><span class="p">,</span> <span class="n">target</span><span class="p">,</span> <span class="n">weight</span><span class="o">=</span><span class="s2">&quot;weight&quot;</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Returns the shortest path length from source to target</span>
<span class="sd"> in a weighted graph.</span>
@@ -2045,7 +2060,8 @@
<span class="k">raise</span> <span class="n">nx</span><span class="o">.</span><span class="n">NetworkXNoPath</span><span class="p">(</span><span class="sa">f</span><span class="s2">&quot;node </span><span class="si">{</span><span class="n">target</span><span class="si">}</span><span class="s2"> not reachable from </span><span class="si">{</span><span class="n">source</span><span class="si">}</span><span class="s2">&quot;</span><span class="p">)</span> <span class="kn">from</span> <span class="nn">err</span></div>
-<div class="viewcode-block" id="single_source_bellman_ford_path"><a class="viewcode-back" href="../../../../reference/algorithms/generated/networkx.algorithms.shortest_paths.weighted.single_source_bellman_ford_path.html#networkx.algorithms.shortest_paths.weighted.single_source_bellman_ford_path">[docs]</a><span class="k">def</span> <span class="nf">single_source_bellman_ford_path</span><span class="p">(</span><span class="n">G</span><span class="p">,</span> <span class="n">source</span><span class="p">,</span> <span class="n">weight</span><span class="o">=</span><span class="s2">&quot;weight&quot;</span><span class="p">):</span>
+<div class="viewcode-block" id="single_source_bellman_ford_path"><a class="viewcode-back" href="../../../../reference/algorithms/generated/networkx.algorithms.shortest_paths.weighted.single_source_bellman_ford_path.html#networkx.algorithms.shortest_paths.weighted.single_source_bellman_ford_path">[docs]</a><span class="nd">@nx</span><span class="o">.</span><span class="n">_dispatch</span>
+<span class="k">def</span> <span class="nf">single_source_bellman_ford_path</span><span class="p">(</span><span class="n">G</span><span class="p">,</span> <span class="n">source</span><span class="p">,</span> <span class="n">weight</span><span class="o">=</span><span class="s2">&quot;weight&quot;</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Compute shortest path between source and all other reachable</span>
<span class="sd"> nodes for a weighted graph.</span>
@@ -2100,7 +2116,8 @@
<span class="k">return</span> <span class="n">path</span></div>
-<div class="viewcode-block" id="single_source_bellman_ford_path_length"><a class="viewcode-back" href="../../../../reference/algorithms/generated/networkx.algorithms.shortest_paths.weighted.single_source_bellman_ford_path_length.html#networkx.algorithms.shortest_paths.weighted.single_source_bellman_ford_path_length">[docs]</a><span class="k">def</span> <span class="nf">single_source_bellman_ford_path_length</span><span class="p">(</span><span class="n">G</span><span class="p">,</span> <span class="n">source</span><span class="p">,</span> <span class="n">weight</span><span class="o">=</span><span class="s2">&quot;weight&quot;</span><span class="p">):</span>
+<div class="viewcode-block" id="single_source_bellman_ford_path_length"><a class="viewcode-back" href="../../../../reference/algorithms/generated/networkx.algorithms.shortest_paths.weighted.single_source_bellman_ford_path_length.html#networkx.algorithms.shortest_paths.weighted.single_source_bellman_ford_path_length">[docs]</a><span class="nd">@nx</span><span class="o">.</span><span class="n">_dispatch</span>
+<span class="k">def</span> <span class="nf">single_source_bellman_ford_path_length</span><span class="p">(</span><span class="n">G</span><span class="p">,</span> <span class="n">source</span><span class="p">,</span> <span class="n">weight</span><span class="o">=</span><span class="s2">&quot;weight&quot;</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Compute the shortest path length between source and all other</span>
<span class="sd"> reachable nodes for a weighted graph.</span>
@@ -2162,7 +2179,8 @@
<span class="k">return</span> <span class="n">_bellman_ford</span><span class="p">(</span><span class="n">G</span><span class="p">,</span> <span class="p">[</span><span class="n">source</span><span class="p">],</span> <span class="n">weight</span><span class="p">)</span></div>
-<div class="viewcode-block" id="single_source_bellman_ford"><a class="viewcode-back" href="../../../../reference/algorithms/generated/networkx.algorithms.shortest_paths.weighted.single_source_bellman_ford.html#networkx.algorithms.shortest_paths.weighted.single_source_bellman_ford">[docs]</a><span class="k">def</span> <span class="nf">single_source_bellman_ford</span><span class="p">(</span><span class="n">G</span><span class="p">,</span> <span class="n">source</span><span class="p">,</span> <span class="n">target</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span> <span class="n">weight</span><span class="o">=</span><span class="s2">&quot;weight&quot;</span><span class="p">):</span>
+<div class="viewcode-block" id="single_source_bellman_ford"><a class="viewcode-back" href="../../../../reference/algorithms/generated/networkx.algorithms.shortest_paths.weighted.single_source_bellman_ford.html#networkx.algorithms.shortest_paths.weighted.single_source_bellman_ford">[docs]</a><span class="nd">@nx</span><span class="o">.</span><span class="n">_dispatch</span>
+<span class="k">def</span> <span class="nf">single_source_bellman_ford</span><span class="p">(</span><span class="n">G</span><span class="p">,</span> <span class="n">source</span><span class="p">,</span> <span class="n">target</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span> <span class="n">weight</span><span class="o">=</span><span class="s2">&quot;weight&quot;</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Compute shortest paths and lengths in a weighted graph G.</span>
<span class="sd"> Uses Bellman-Ford algorithm for shortest paths.</span>
@@ -2255,7 +2273,8 @@
<span class="k">raise</span> <span class="n">nx</span><span class="o">.</span><span class="n">NetworkXNoPath</span><span class="p">(</span><span class="n">msg</span><span class="p">)</span> <span class="kn">from</span> <span class="nn">err</span></div>
-<div class="viewcode-block" id="all_pairs_bellman_ford_path_length"><a class="viewcode-back" href="../../../../reference/algorithms/generated/networkx.algorithms.shortest_paths.weighted.all_pairs_bellman_ford_path_length.html#networkx.algorithms.shortest_paths.weighted.all_pairs_bellman_ford_path_length">[docs]</a><span class="k">def</span> <span class="nf">all_pairs_bellman_ford_path_length</span><span class="p">(</span><span class="n">G</span><span class="p">,</span> <span class="n">weight</span><span class="o">=</span><span class="s2">&quot;weight&quot;</span><span class="p">):</span>
+<div class="viewcode-block" id="all_pairs_bellman_ford_path_length"><a class="viewcode-back" href="../../../../reference/algorithms/generated/networkx.algorithms.shortest_paths.weighted.all_pairs_bellman_ford_path_length.html#networkx.algorithms.shortest_paths.weighted.all_pairs_bellman_ford_path_length">[docs]</a><span class="nd">@nx</span><span class="o">.</span><span class="n">_dispatch</span>
+<span class="k">def</span> <span class="nf">all_pairs_bellman_ford_path_length</span><span class="p">(</span><span class="n">G</span><span class="p">,</span> <span class="n">weight</span><span class="o">=</span><span class="s2">&quot;weight&quot;</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Compute shortest path lengths between all nodes in a weighted graph.</span>
<span class="sd"> Parameters</span>
@@ -2309,7 +2328,8 @@
<span class="k">yield</span> <span class="p">(</span><span class="n">n</span><span class="p">,</span> <span class="nb">dict</span><span class="p">(</span><span class="n">length</span><span class="p">(</span><span class="n">G</span><span class="p">,</span> <span class="n">n</span><span class="p">,</span> <span class="n">weight</span><span class="o">=</span><span class="n">weight</span><span class="p">)))</span></div>
-<div class="viewcode-block" id="all_pairs_bellman_ford_path"><a class="viewcode-back" href="../../../../reference/algorithms/generated/networkx.algorithms.shortest_paths.weighted.all_pairs_bellman_ford_path.html#networkx.algorithms.shortest_paths.weighted.all_pairs_bellman_ford_path">[docs]</a><span class="k">def</span> <span class="nf">all_pairs_bellman_ford_path</span><span class="p">(</span><span class="n">G</span><span class="p">,</span> <span class="n">weight</span><span class="o">=</span><span class="s2">&quot;weight&quot;</span><span class="p">):</span>
+<div class="viewcode-block" id="all_pairs_bellman_ford_path"><a class="viewcode-back" href="../../../../reference/algorithms/generated/networkx.algorithms.shortest_paths.weighted.all_pairs_bellman_ford_path.html#networkx.algorithms.shortest_paths.weighted.all_pairs_bellman_ford_path">[docs]</a><span class="nd">@nx</span><span class="o">.</span><span class="n">_dispatch</span>
+<span class="k">def</span> <span class="nf">all_pairs_bellman_ford_path</span><span class="p">(</span><span class="n">G</span><span class="p">,</span> <span class="n">weight</span><span class="o">=</span><span class="s2">&quot;weight&quot;</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Compute shortest paths between all nodes in a weighted graph.</span>
<span class="sd"> Parameters</span>
@@ -2940,11 +2960,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/similarity.html b/_modules/networkx/algorithms/similarity.html
index 61cc66f9..f4bdf808 100644
--- a/_modules/networkx/algorithms/similarity.html
+++ b/_modules/networkx/algorithms/similarity.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.similarity &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.similarity &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/similarity';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/similarity.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -809,7 +821,7 @@
<span class="sd"> https://hal.archives-ouvertes.fr/hal-01168816</span>
<span class="sd"> &quot;&quot;&quot;</span>
- <span class="n">paths</span> <span class="o">=</span> <span class="nb">list</span><span class="p">()</span>
+ <span class="n">paths</span> <span class="o">=</span> <span class="p">[]</span>
<span class="n">bestcost</span> <span class="o">=</span> <span class="kc">None</span>
<span class="k">for</span> <span class="n">vertex_path</span><span class="p">,</span> <span class="n">edge_path</span><span class="p">,</span> <span class="n">cost</span> <span class="ow">in</span> <span class="n">optimize_edit_paths</span><span class="p">(</span>
<span class="n">G1</span><span class="p">,</span>
@@ -827,7 +839,7 @@
<span class="p">):</span>
<span class="c1"># assert bestcost is None or cost &lt;= bestcost</span>
<span class="k">if</span> <span class="n">bestcost</span> <span class="ow">is</span> <span class="ow">not</span> <span class="kc">None</span> <span class="ow">and</span> <span class="n">cost</span> <span class="o">&lt;</span> <span class="n">bestcost</span><span class="p">:</span>
- <span class="n">paths</span> <span class="o">=</span> <span class="nb">list</span><span class="p">()</span>
+ <span class="n">paths</span> <span class="o">=</span> <span class="p">[]</span>
<span class="n">paths</span><span class="o">.</span><span class="n">append</span><span class="p">((</span><span class="n">vertex_path</span><span class="p">,</span> <span class="n">edge_path</span><span class="p">))</span>
<span class="n">bestcost</span> <span class="o">=</span> <span class="n">cost</span>
<span class="k">return</span> <span class="n">paths</span><span class="p">,</span> <span class="n">bestcost</span></div>
@@ -1157,9 +1169,9 @@
<span class="c1"># NOTE: fast reduce of Cv relies on it</span>
<span class="c1"># assert len(lsa_row_ind) == len(lsa_col_ind)</span>
<span class="n">indexes</span> <span class="o">=</span> <span class="nb">zip</span><span class="p">(</span><span class="nb">range</span><span class="p">(</span><span class="nb">len</span><span class="p">(</span><span class="n">lsa_row_ind</span><span class="p">)),</span> <span class="n">lsa_row_ind</span><span class="p">,</span> <span class="n">lsa_col_ind</span><span class="p">)</span>
- <span class="n">subst_ind</span> <span class="o">=</span> <span class="nb">list</span><span class="p">(</span><span class="n">k</span> <span class="k">for</span> <span class="n">k</span><span class="p">,</span> <span class="n">i</span><span class="p">,</span> <span class="n">j</span> <span class="ow">in</span> <span class="n">indexes</span> <span class="k">if</span> <span class="n">i</span> <span class="o">&lt;</span> <span class="n">m</span> <span class="ow">and</span> <span class="n">j</span> <span class="o">&lt;</span> <span class="n">n</span><span class="p">)</span>
+ <span class="n">subst_ind</span> <span class="o">=</span> <span class="p">[</span><span class="n">k</span> <span class="k">for</span> <span class="n">k</span><span class="p">,</span> <span class="n">i</span><span class="p">,</span> <span class="n">j</span> <span class="ow">in</span> <span class="n">indexes</span> <span class="k">if</span> <span class="n">i</span> <span class="o">&lt;</span> <span class="n">m</span> <span class="ow">and</span> <span class="n">j</span> <span class="o">&lt;</span> <span class="n">n</span><span class="p">]</span>
<span class="n">indexes</span> <span class="o">=</span> <span class="nb">zip</span><span class="p">(</span><span class="nb">range</span><span class="p">(</span><span class="nb">len</span><span class="p">(</span><span class="n">lsa_row_ind</span><span class="p">)),</span> <span class="n">lsa_row_ind</span><span class="p">,</span> <span class="n">lsa_col_ind</span><span class="p">)</span>
- <span class="n">dummy_ind</span> <span class="o">=</span> <span class="nb">list</span><span class="p">(</span><span class="n">k</span> <span class="k">for</span> <span class="n">k</span><span class="p">,</span> <span class="n">i</span><span class="p">,</span> <span class="n">j</span> <span class="ow">in</span> <span class="n">indexes</span> <span class="k">if</span> <span class="n">i</span> <span class="o">&gt;=</span> <span class="n">m</span> <span class="ow">and</span> <span class="n">j</span> <span class="o">&gt;=</span> <span class="n">n</span><span class="p">)</span>
+ <span class="n">dummy_ind</span> <span class="o">=</span> <span class="p">[</span><span class="n">k</span> <span class="k">for</span> <span class="n">k</span><span class="p">,</span> <span class="n">i</span><span class="p">,</span> <span class="n">j</span> <span class="ow">in</span> <span class="n">indexes</span> <span class="k">if</span> <span class="n">i</span> <span class="o">&gt;=</span> <span class="n">m</span> <span class="ow">and</span> <span class="n">j</span> <span class="o">&gt;=</span> <span class="n">n</span><span class="p">]</span>
<span class="c1"># assert len(subst_ind) == len(dummy_ind)</span>
<span class="n">lsa_row_ind</span><span class="p">[</span><span class="n">dummy_ind</span><span class="p">]</span> <span class="o">=</span> <span class="n">lsa_col_ind</span><span class="p">[</span><span class="n">subst_ind</span><span class="p">]</span> <span class="o">+</span> <span class="n">m</span>
<span class="n">lsa_col_ind</span><span class="p">[</span><span class="n">dummy_ind</span><span class="p">]</span> <span class="o">=</span> <span class="n">lsa_row_ind</span><span class="p">[</span><span class="n">subst_ind</span><span class="p">]</span> <span class="o">+</span> <span class="n">n</span>
@@ -1264,14 +1276,14 @@
<span class="n">C</span><span class="p">[</span><span class="n">k</span><span class="p">,</span> <span class="n">l</span><span class="p">]</span> <span class="o">=</span> <span class="n">inf</span>
<span class="n">localCe</span> <span class="o">=</span> <span class="n">make_CostMatrix</span><span class="p">(</span><span class="n">C</span><span class="p">,</span> <span class="n">m</span><span class="p">,</span> <span class="n">n</span><span class="p">)</span>
- <span class="n">ij</span> <span class="o">=</span> <span class="nb">list</span><span class="p">(</span>
+ <span class="n">ij</span> <span class="o">=</span> <span class="p">[</span>
<span class="p">(</span>
<span class="n">g_ind</span><span class="p">[</span><span class="n">k</span><span class="p">]</span> <span class="k">if</span> <span class="n">k</span> <span class="o">&lt;</span> <span class="n">m</span> <span class="k">else</span> <span class="n">M</span> <span class="o">+</span> <span class="n">h_ind</span><span class="p">[</span><span class="n">l</span><span class="p">],</span>
<span class="n">h_ind</span><span class="p">[</span><span class="n">l</span><span class="p">]</span> <span class="k">if</span> <span class="n">l</span> <span class="o">&lt;</span> <span class="n">n</span> <span class="k">else</span> <span class="n">N</span> <span class="o">+</span> <span class="n">g_ind</span><span class="p">[</span><span class="n">k</span><span class="p">],</span>
<span class="p">)</span>
<span class="k">for</span> <span class="n">k</span><span class="p">,</span> <span class="n">l</span> <span class="ow">in</span> <span class="nb">zip</span><span class="p">(</span><span class="n">localCe</span><span class="o">.</span><span class="n">lsa_row_ind</span><span class="p">,</span> <span class="n">localCe</span><span class="o">.</span><span class="n">lsa_col_ind</span><span class="p">)</span>
<span class="k">if</span> <span class="n">k</span> <span class="o">&lt;</span> <span class="n">m</span> <span class="ow">or</span> <span class="n">l</span> <span class="o">&lt;</span> <span class="n">n</span>
- <span class="p">)</span>
+ <span class="p">]</span>
<span class="k">else</span><span class="p">:</span>
<span class="n">ij</span> <span class="o">=</span> <span class="p">[]</span>
@@ -1344,7 +1356,7 @@
<span class="k">yield</span> <span class="p">(</span><span class="n">i</span><span class="p">,</span> <span class="n">j</span><span class="p">),</span> <span class="n">Cv_ij</span><span class="p">,</span> <span class="n">xy</span><span class="p">,</span> <span class="n">Ce_xy</span><span class="p">,</span> <span class="n">Cv</span><span class="o">.</span><span class="n">C</span><span class="p">[</span><span class="n">i</span><span class="p">,</span> <span class="n">j</span><span class="p">]</span> <span class="o">+</span> <span class="n">localCe</span><span class="o">.</span><span class="n">ls</span>
<span class="c1"># 2) other candidates, sorted by lower-bound cost estimate</span>
- <span class="n">other</span> <span class="o">=</span> <span class="nb">list</span><span class="p">()</span>
+ <span class="n">other</span> <span class="o">=</span> <span class="p">[]</span>
<span class="n">fixed_i</span><span class="p">,</span> <span class="n">fixed_j</span> <span class="o">=</span> <span class="n">i</span><span class="p">,</span> <span class="n">j</span>
<span class="k">if</span> <span class="n">m</span> <span class="o">&lt;=</span> <span class="n">n</span><span class="p">:</span>
<span class="n">candidates</span> <span class="o">=</span> <span class="p">(</span>
@@ -1479,16 +1491,16 @@
<span class="n">pending_h</span><span class="p">[</span><span class="n">y</span><span class="p">]</span> <span class="k">if</span> <span class="n">y</span> <span class="o">&lt;</span> <span class="n">len_h</span> <span class="k">else</span> <span class="kc">None</span><span class="p">,</span>
<span class="p">)</span>
<span class="p">)</span>
- <span class="n">sortedx</span> <span class="o">=</span> <span class="nb">list</span><span class="p">(</span><span class="nb">sorted</span><span class="p">(</span><span class="n">x</span> <span class="k">for</span> <span class="n">x</span><span class="p">,</span> <span class="n">y</span> <span class="ow">in</span> <span class="n">xy</span><span class="p">))</span>
- <span class="n">sortedy</span> <span class="o">=</span> <span class="nb">list</span><span class="p">(</span><span class="nb">sorted</span><span class="p">(</span><span class="n">y</span> <span class="k">for</span> <span class="n">x</span><span class="p">,</span> <span class="n">y</span> <span class="ow">in</span> <span class="n">xy</span><span class="p">))</span>
- <span class="n">G</span> <span class="o">=</span> <span class="nb">list</span><span class="p">(</span>
+ <span class="n">sortedx</span> <span class="o">=</span> <span class="nb">sorted</span><span class="p">(</span><span class="n">x</span> <span class="k">for</span> <span class="n">x</span><span class="p">,</span> <span class="n">y</span> <span class="ow">in</span> <span class="n">xy</span><span class="p">)</span>
+ <span class="n">sortedy</span> <span class="o">=</span> <span class="nb">sorted</span><span class="p">(</span><span class="n">y</span> <span class="k">for</span> <span class="n">x</span><span class="p">,</span> <span class="n">y</span> <span class="ow">in</span> <span class="n">xy</span><span class="p">)</span>
+ <span class="n">G</span> <span class="o">=</span> <span class="p">[</span>
<span class="p">(</span><span class="n">pending_g</span><span class="o">.</span><span class="n">pop</span><span class="p">(</span><span class="n">x</span><span class="p">)</span> <span class="k">if</span> <span class="n">x</span> <span class="o">&lt;</span> <span class="nb">len</span><span class="p">(</span><span class="n">pending_g</span><span class="p">)</span> <span class="k">else</span> <span class="kc">None</span><span class="p">)</span>
<span class="k">for</span> <span class="n">x</span> <span class="ow">in</span> <span class="nb">reversed</span><span class="p">(</span><span class="n">sortedx</span><span class="p">)</span>
- <span class="p">)</span>
- <span class="n">H</span> <span class="o">=</span> <span class="nb">list</span><span class="p">(</span>
+ <span class="p">]</span>
+ <span class="n">H</span> <span class="o">=</span> <span class="p">[</span>
<span class="p">(</span><span class="n">pending_h</span><span class="o">.</span><span class="n">pop</span><span class="p">(</span><span class="n">y</span><span class="p">)</span> <span class="k">if</span> <span class="n">y</span> <span class="o">&lt;</span> <span class="nb">len</span><span class="p">(</span><span class="n">pending_h</span><span class="p">)</span> <span class="k">else</span> <span class="kc">None</span><span class="p">)</span>
<span class="k">for</span> <span class="n">y</span> <span class="ow">in</span> <span class="nb">reversed</span><span class="p">(</span><span class="n">sortedy</span><span class="p">)</span>
- <span class="p">)</span>
+ <span class="p">]</span>
<span class="k">yield from</span> <span class="n">get_edit_paths</span><span class="p">(</span>
<span class="n">matched_uv</span><span class="p">,</span>
@@ -2059,7 +2071,7 @@
<span class="n">top_k_sorted</span> <span class="o">=</span> <span class="n">top_k_unsorted</span><span class="p">[</span><span class="n">np</span><span class="o">.</span><span class="n">argsort</span><span class="p">(</span><span class="n">S</span><span class="p">[</span><span class="n">top_k_unsorted</span><span class="p">])][::</span><span class="o">-</span><span class="mi">1</span><span class="p">]</span>
<span class="c1"># Add back the similarity scores</span>
- <span class="n">top_k_sorted_names</span> <span class="o">=</span> <span class="nb">map</span><span class="p">(</span><span class="k">lambda</span> <span class="n">n</span><span class="p">:</span> <span class="n">node_map</span><span class="p">[</span><span class="n">n</span><span class="p">],</span> <span class="n">top_k_sorted</span><span class="p">)</span>
+ <span class="n">top_k_sorted_names</span> <span class="o">=</span> <span class="p">(</span><span class="n">node_map</span><span class="p">[</span><span class="n">n</span><span class="p">]</span> <span class="k">for</span> <span class="n">n</span> <span class="ow">in</span> <span class="n">top_k_sorted</span><span class="p">)</span>
<span class="n">top_k_with_val</span> <span class="o">=</span> <span class="nb">dict</span><span class="p">(</span><span class="nb">zip</span><span class="p">(</span><span class="n">top_k_sorted_names</span><span class="p">,</span> <span class="n">S</span><span class="p">[</span><span class="n">top_k_sorted</span><span class="p">]))</span>
<span class="c1"># Remove the self-similarity</span>
@@ -2177,11 +2189,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/simple_paths.html b/_modules/networkx/algorithms/simple_paths.html
index 77138848..07b6a823 100644
--- a/_modules/networkx/algorithms/simple_paths.html
+++ b/_modules/networkx/algorithms/simple_paths.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.simple_paths &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.simple_paths &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/simple_paths';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/simple_paths.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -896,7 +908,7 @@
<span class="n">visited</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">child</span><span class="p">)</span>
<span class="n">stack</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="nb">iter</span><span class="p">(</span><span class="n">G</span><span class="o">.</span><span class="n">edges</span><span class="p">(</span><span class="n">child</span><span class="p">[</span><span class="mi">1</span><span class="p">],</span> <span class="n">keys</span><span class="o">=</span><span class="kc">True</span><span class="p">)))</span>
<span class="k">else</span><span class="p">:</span> <span class="c1"># len(visited) == cutoff:</span>
- <span class="k">for</span> <span class="p">(</span><span class="n">u</span><span class="p">,</span> <span class="n">v</span><span class="p">,</span> <span class="n">k</span><span class="p">)</span> <span class="ow">in</span> <span class="p">[</span><span class="n">child</span><span class="p">]</span> <span class="o">+</span> <span class="nb">list</span><span class="p">(</span><span class="n">children</span><span class="p">):</span>
+ <span class="k">for</span> <span class="n">u</span><span class="p">,</span> <span class="n">v</span><span class="p">,</span> <span class="n">k</span> <span class="ow">in</span> <span class="p">[</span><span class="n">child</span><span class="p">]</span> <span class="o">+</span> <span class="nb">list</span><span class="p">(</span><span class="n">children</span><span class="p">):</span>
<span class="k">if</span> <span class="n">v</span> <span class="ow">in</span> <span class="n">targets</span><span class="p">:</span>
<span class="k">yield</span> <span class="n">visited</span><span class="p">[</span><span class="mi">1</span><span class="p">:]</span> <span class="o">+</span> <span class="p">[(</span><span class="n">u</span><span class="p">,</span> <span class="n">v</span><span class="p">,</span> <span class="n">k</span><span class="p">)]</span>
<span class="n">stack</span><span class="o">.</span><span class="n">pop</span><span class="p">()</span>
@@ -1010,7 +1022,7 @@
<span class="n">shortest_path_func</span> <span class="o">=</span> <span class="n">_bidirectional_dijkstra</span>
- <span class="n">listA</span> <span class="o">=</span> <span class="nb">list</span><span class="p">()</span>
+ <span class="n">listA</span> <span class="o">=</span> <span class="p">[]</span>
<span class="n">listB</span> <span class="o">=</span> <span class="n">PathBuffer</span><span class="p">()</span>
<span class="n">prev_path</span> <span class="o">=</span> <span class="kc">None</span>
<span class="k">while</span> <span class="kc">True</span><span class="p">:</span>
@@ -1053,7 +1065,7 @@
<span class="k">class</span> <span class="nc">PathBuffer</span><span class="p">:</span>
<span class="k">def</span> <span class="fm">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
<span class="bp">self</span><span class="o">.</span><span class="n">paths</span> <span class="o">=</span> <span class="nb">set</span><span class="p">()</span>
- <span class="bp">self</span><span class="o">.</span><span class="n">sortedpaths</span> <span class="o">=</span> <span class="nb">list</span><span class="p">()</span>
+ <span class="bp">self</span><span class="o">.</span><span class="n">sortedpaths</span> <span class="o">=</span> <span class="p">[]</span>
<span class="bp">self</span><span class="o">.</span><span class="n">counter</span> <span class="o">=</span> <span class="n">count</span><span class="p">()</span>
<span class="k">def</span> <span class="fm">__len__</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
@@ -1450,11 +1462,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/smallworld.html b/_modules/networkx/algorithms/smallworld.html
index 4800d028..6dea3b08 100644
--- a/_modules/networkx/algorithms/smallworld.html
+++ b/_modules/networkx/algorithms/smallworld.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.smallworld &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.smallworld &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/smallworld';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/smallworld.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -592,7 +604,7 @@
<span class="sd"> An undirected graph.</span>
<span class="sd"> niter : integer (optional, default=1)</span>
-<span class="sd"> An edge is rewired approximatively niter times.</span>
+<span class="sd"> An edge is rewired approximately niter times.</span>
<span class="sd"> D : numpy.array (optional, default=None)</span>
<span class="sd"> Distance to the diagonal matrix.</span>
@@ -874,11 +886,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/smetric.html b/_modules/networkx/algorithms/smetric.html
index 00cd4176..3de9bb53 100644
--- a/_modules/networkx/algorithms/smetric.html
+++ b/_modules/networkx/algorithms/smetric.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.smetric &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.smetric &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/smetric';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/smetric.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -514,11 +526,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/sparsifiers.html b/_modules/networkx/algorithms/sparsifiers.html
index e889a918..f12f0def 100644
--- a/_modules/networkx/algorithms/sparsifiers.html
+++ b/_modules/networkx/algorithms/sparsifiers.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.sparsifiers &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.sparsifiers &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/sparsifiers';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/sparsifiers.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -769,11 +781,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/structuralholes.html b/_modules/networkx/algorithms/structuralholes.html
index a1f3c86c..c73e01b4 100644
--- a/_modules/networkx/algorithms/structuralholes.html
+++ b/_modules/networkx/algorithms/structuralholes.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.structuralholes &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.structuralholes &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/structuralholes';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/structuralholes.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -754,11 +766,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/summarization.html b/_modules/networkx/algorithms/summarization.html
index 7bd44172..585ffa64 100644
--- a/_modules/networkx/algorithms/summarization.html
+++ b/_modules/networkx/algorithms/summarization.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.summarization &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.summarization &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/summarization';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/summarization.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -483,7 +495,7 @@
<span class="sd">a graph. Edge-grouping techniques can be lossless, meaning that they can be</span>
<span class="sd">used to re-create the original graph, or techniques can be lossy, requiring</span>
<span class="sd">less space to store the summary graph, but at the expense of lower</span>
-<span class="sd">recontruction accuracy of the original graph.</span>
+<span class="sd">reconstruction accuracy of the original graph.</span>
<span class="sd">Bit-compression techniques minimize the amount of information needed to</span>
<span class="sd">describe the original graph, while revealing structural patterns in the</span>
@@ -640,20 +652,20 @@
<span class="n">high_degree_nodes</span> <span class="o">=</span> <span class="p">{</span><span class="n">n</span> <span class="k">for</span> <span class="n">n</span><span class="p">,</span> <span class="n">d</span> <span class="ow">in</span> <span class="n">degrees</span> <span class="k">if</span> <span class="n">d</span> <span class="o">&gt;</span> <span class="n">threshold</span><span class="p">}</span>
<span class="n">low_degree_nodes</span> <span class="o">=</span> <span class="n">G</span><span class="o">.</span><span class="n">nodes</span><span class="p">()</span> <span class="o">-</span> <span class="n">high_degree_nodes</span>
- <span class="n">auxillary</span> <span class="o">=</span> <span class="p">{}</span>
+ <span class="n">auxiliary</span> <span class="o">=</span> <span class="p">{}</span>
<span class="k">for</span> <span class="n">node</span> <span class="ow">in</span> <span class="n">G</span><span class="p">:</span>
<span class="n">high_degree_neighbors</span> <span class="o">=</span> <span class="nb">frozenset</span><span class="p">(</span><span class="n">high_degree_nodes</span> <span class="o">&amp;</span> <span class="nb">set</span><span class="p">(</span><span class="n">G</span><span class="p">[</span><span class="n">node</span><span class="p">]))</span>
<span class="k">if</span> <span class="n">high_degree_neighbors</span><span class="p">:</span>
- <span class="k">if</span> <span class="n">high_degree_neighbors</span> <span class="ow">in</span> <span class="n">auxillary</span><span class="p">:</span>
- <span class="n">auxillary</span><span class="p">[</span><span class="n">high_degree_neighbors</span><span class="p">]</span><span class="o">.</span><span class="n">add</span><span class="p">(</span><span class="n">node</span><span class="p">)</span>
+ <span class="k">if</span> <span class="n">high_degree_neighbors</span> <span class="ow">in</span> <span class="n">auxiliary</span><span class="p">:</span>
+ <span class="n">auxiliary</span><span class="p">[</span><span class="n">high_degree_neighbors</span><span class="p">]</span><span class="o">.</span><span class="n">add</span><span class="p">(</span><span class="n">node</span><span class="p">)</span>
<span class="k">else</span><span class="p">:</span>
- <span class="n">auxillary</span><span class="p">[</span><span class="n">high_degree_neighbors</span><span class="p">]</span> <span class="o">=</span> <span class="p">{</span><span class="n">node</span><span class="p">}</span>
+ <span class="n">auxiliary</span><span class="p">[</span><span class="n">high_degree_neighbors</span><span class="p">]</span> <span class="o">=</span> <span class="p">{</span><span class="n">node</span><span class="p">}</span>
<span class="k">if</span> <span class="n">copy</span><span class="p">:</span>
<span class="n">G</span> <span class="o">=</span> <span class="n">G</span><span class="o">.</span><span class="n">copy</span><span class="p">()</span>
<span class="n">compressor_nodes</span> <span class="o">=</span> <span class="nb">set</span><span class="p">()</span>
- <span class="k">for</span> <span class="n">index</span><span class="p">,</span> <span class="p">(</span><span class="n">high_degree_nodes</span><span class="p">,</span> <span class="n">low_degree_nodes</span><span class="p">)</span> <span class="ow">in</span> <span class="nb">enumerate</span><span class="p">(</span><span class="n">auxillary</span><span class="o">.</span><span class="n">items</span><span class="p">()):</span>
+ <span class="k">for</span> <span class="n">index</span><span class="p">,</span> <span class="p">(</span><span class="n">high_degree_nodes</span><span class="p">,</span> <span class="n">low_degree_nodes</span><span class="p">)</span> <span class="ow">in</span> <span class="nb">enumerate</span><span class="p">(</span><span class="n">auxiliary</span><span class="o">.</span><span class="n">items</span><span class="p">()):</span>
<span class="n">low_degree_node_count</span> <span class="o">=</span> <span class="nb">len</span><span class="p">(</span><span class="n">low_degree_nodes</span><span class="p">)</span>
<span class="n">high_degree_node_count</span> <span class="o">=</span> <span class="nb">len</span><span class="p">(</span><span class="n">high_degree_nodes</span><span class="p">)</span>
<span class="n">old_edges</span> <span class="o">=</span> <span class="n">high_degree_node_count</span> <span class="o">*</span> <span class="n">low_degree_node_count</span>
@@ -722,7 +734,7 @@
<span class="sd"> summary graph: Networkx graph</span>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="n">output</span> <span class="o">=</span> <span class="n">G</span><span class="o">.</span><span class="vm">__class__</span><span class="p">()</span>
- <span class="n">node_label_lookup</span> <span class="o">=</span> <span class="nb">dict</span><span class="p">()</span>
+ <span class="n">node_label_lookup</span> <span class="o">=</span> <span class="p">{}</span>
<span class="k">for</span> <span class="n">index</span><span class="p">,</span> <span class="n">group_id</span> <span class="ow">in</span> <span class="nb">enumerate</span><span class="p">(</span><span class="n">groups</span><span class="p">):</span>
<span class="n">group_set</span> <span class="o">=</span> <span class="n">groups</span><span class="p">[</span><span class="n">group_id</span><span class="p">]</span>
<span class="n">supernode</span> <span class="o">=</span> <span class="sa">f</span><span class="s2">&quot;</span><span class="si">{</span><span class="n">prefix</span><span class="si">}{</span><span class="n">index</span><span class="si">}</span><span class="s2">&quot;</span>
@@ -1031,11 +1043,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/swap.html b/_modules/networkx/algorithms/swap.html
index 27e7bbe0..0b916a72 100644
--- a/_modules/networkx/algorithms/swap.html
+++ b/_modules/networkx/algorithms/swap.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.swap &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.swap &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/swap';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/swap.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -766,8 +778,8 @@
<span class="n">swapcount</span> <span class="o">=</span> <span class="mi">0</span>
<span class="n">deg</span> <span class="o">=</span> <span class="n">G</span><span class="o">.</span><span class="n">degree</span><span class="p">()</span>
<span class="c1"># Label key for nodes</span>
- <span class="n">dk</span> <span class="o">=</span> <span class="nb">list</span><span class="p">(</span><span class="n">n</span> <span class="k">for</span> <span class="n">n</span><span class="p">,</span> <span class="n">d</span> <span class="ow">in</span> <span class="n">G</span><span class="o">.</span><span class="n">degree</span><span class="p">())</span>
- <span class="n">cdf</span> <span class="o">=</span> <span class="n">nx</span><span class="o">.</span><span class="n">utils</span><span class="o">.</span><span class="n">cumulative_distribution</span><span class="p">(</span><span class="nb">list</span><span class="p">(</span><span class="n">d</span> <span class="k">for</span> <span class="n">n</span><span class="p">,</span> <span class="n">d</span> <span class="ow">in</span> <span class="n">G</span><span class="o">.</span><span class="n">degree</span><span class="p">()))</span>
+ <span class="n">dk</span> <span class="o">=</span> <span class="p">[</span><span class="n">n</span> <span class="k">for</span> <span class="n">n</span><span class="p">,</span> <span class="n">d</span> <span class="ow">in</span> <span class="n">G</span><span class="o">.</span><span class="n">degree</span><span class="p">()]</span>
+ <span class="n">cdf</span> <span class="o">=</span> <span class="n">nx</span><span class="o">.</span><span class="n">utils</span><span class="o">.</span><span class="n">cumulative_distribution</span><span class="p">([</span><span class="n">d</span> <span class="k">for</span> <span class="n">n</span><span class="p">,</span> <span class="n">d</span> <span class="ow">in</span> <span class="n">G</span><span class="o">.</span><span class="n">degree</span><span class="p">()])</span>
<span class="n">discrete_sequence</span> <span class="o">=</span> <span class="n">nx</span><span class="o">.</span><span class="n">utils</span><span class="o">.</span><span class="n">discrete_sequence</span>
<span class="n">window</span> <span class="o">=</span> <span class="mi">1</span>
<span class="k">while</span> <span class="n">n</span> <span class="o">&lt;</span> <span class="n">nswap</span><span class="p">:</span>
@@ -877,11 +889,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/threshold.html b/_modules/networkx/algorithms/threshold.html
index 45c6128d..4e8df71e 100644
--- a/_modules/networkx/algorithms/threshold.html
+++ b/_modules/networkx/algorithms/threshold.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.threshold &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.threshold &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/threshold';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/threshold.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -500,18 +512,18 @@
<span class="sd"> ----------</span>
<span class="sd"> .. [1] Threshold graphs: https://en.wikipedia.org/wiki/Threshold_graph</span>
<span class="sd"> &quot;&quot;&quot;</span>
- <span class="k">return</span> <span class="n">is_threshold_sequence</span><span class="p">(</span><span class="nb">list</span><span class="p">(</span><span class="n">d</span> <span class="k">for</span> <span class="n">n</span><span class="p">,</span> <span class="n">d</span> <span class="ow">in</span> <span class="n">G</span><span class="o">.</span><span class="n">degree</span><span class="p">()))</span></div>
+ <span class="k">return</span> <span class="n">is_threshold_sequence</span><span class="p">([</span><span class="n">d</span> <span class="k">for</span> <span class="n">n</span><span class="p">,</span> <span class="n">d</span> <span class="ow">in</span> <span class="n">G</span><span class="o">.</span><span class="n">degree</span><span class="p">()])</span></div>
<span class="k">def</span> <span class="nf">is_threshold_sequence</span><span class="p">(</span><span class="n">degree_sequence</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
-<span class="sd"> Returns True if the sequence is a threshold degree seqeunce.</span>
+<span class="sd"> Returns True if the sequence is a threshold degree sequence.</span>
<span class="sd"> Uses the property that a threshold graph must be constructed by</span>
<span class="sd"> adding either dominating or isolated nodes. Thus, it can be</span>
<span class="sd"> deconstructed iteratively by removing a node of degree zero or a</span>
<span class="sd"> node that connects to the remaining nodes. If this deconstruction</span>
-<span class="sd"> failes then the sequence is not a threshold sequence.</span>
+<span class="sd"> fails then the sequence is not a threshold sequence.</span>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="n">ds</span> <span class="o">=</span> <span class="n">degree_sequence</span><span class="p">[:]</span> <span class="c1"># get a copy so we don&#39;t destroy original</span>
<span class="n">ds</span><span class="o">.</span><span class="n">sort</span><span class="p">()</span>
@@ -558,7 +570,7 @@
<span class="k">raise</span> <span class="ne">ValueError</span><span class="p">(</span><span class="s2">&quot;compact sequences cannot be labeled&quot;</span><span class="p">)</span>
<span class="c1"># make an indexed copy</span>
- <span class="k">if</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">degree_sequence</span><span class="p">,</span> <span class="nb">dict</span><span class="p">):</span> <span class="c1"># labeled degree seqeunce</span>
+ <span class="k">if</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">degree_sequence</span><span class="p">,</span> <span class="nb">dict</span><span class="p">):</span> <span class="c1"># labeled degree sequence</span>
<span class="n">ds</span> <span class="o">=</span> <span class="p">[[</span><span class="n">degree</span><span class="p">,</span> <span class="n">label</span><span class="p">]</span> <span class="k">for</span> <span class="p">(</span><span class="n">label</span><span class="p">,</span> <span class="n">degree</span><span class="p">)</span> <span class="ow">in</span> <span class="n">degree_sequence</span><span class="o">.</span><span class="n">items</span><span class="p">()]</span>
<span class="k">else</span><span class="p">:</span>
<span class="n">ds</span> <span class="o">=</span> <span class="p">[[</span><span class="n">d</span><span class="p">,</span> <span class="n">i</span><span class="p">]</span> <span class="k">for</span> <span class="n">i</span><span class="p">,</span> <span class="n">d</span> <span class="ow">in</span> <span class="nb">enumerate</span><span class="p">(</span><span class="n">degree_sequence</span><span class="p">)]</span>
@@ -820,7 +832,7 @@
<span class="sd"> Otherwise returns the cycle as [a,b,c,d] where (a,b)</span>
<span class="sd"> and (c,d) are edges and (a,c) and (b,d) are not.</span>
<span class="sd"> &quot;&quot;&quot;</span>
- <span class="k">for</span> <span class="p">(</span><span class="n">u</span><span class="p">,</span> <span class="n">v</span><span class="p">)</span> <span class="ow">in</span> <span class="n">G</span><span class="o">.</span><span class="n">edges</span><span class="p">():</span>
+ <span class="k">for</span> <span class="n">u</span><span class="p">,</span> <span class="n">v</span> <span class="ow">in</span> <span class="n">G</span><span class="o">.</span><span class="n">edges</span><span class="p">():</span>
<span class="k">for</span> <span class="n">w</span> <span class="ow">in</span> <span class="n">G</span><span class="o">.</span><span class="n">nodes</span><span class="p">():</span>
<span class="k">if</span> <span class="ow">not</span> <span class="n">G</span><span class="o">.</span><span class="n">has_edge</span><span class="p">(</span><span class="n">u</span><span class="p">,</span> <span class="n">w</span><span class="p">)</span> <span class="ow">and</span> <span class="n">u</span> <span class="o">!=</span> <span class="n">w</span><span class="p">:</span>
<span class="k">for</span> <span class="n">x</span> <span class="ow">in</span> <span class="n">G</span><span class="o">.</span><span class="n">neighbors</span><span class="p">(</span><span class="n">w</span><span class="p">):</span>
@@ -1131,7 +1143,7 @@
<span class="n">cs</span> <span class="o">=</span> <span class="n">creation_sequence</span>
<span class="n">seq</span> <span class="o">=</span> <span class="p">[]</span> <span class="c1"># betweenness</span>
<span class="n">lastchar</span> <span class="o">=</span> <span class="s2">&quot;d&quot;</span> <span class="c1"># first node is always a &#39;d&#39;</span>
- <span class="n">dr</span> <span class="o">=</span> <span class="nb">float</span><span class="p">(</span><span class="n">cs</span><span class="o">.</span><span class="n">count</span><span class="p">(</span><span class="s2">&quot;d&quot;</span><span class="p">))</span> <span class="c1"># number of d&#39;s to the right of curren pos</span>
+ <span class="n">dr</span> <span class="o">=</span> <span class="nb">float</span><span class="p">(</span><span class="n">cs</span><span class="o">.</span><span class="n">count</span><span class="p">(</span><span class="s2">&quot;d&quot;</span><span class="p">))</span> <span class="c1"># number of d&#39;s to the right of current pos</span>
<span class="n">irun</span> <span class="o">=</span> <span class="mi">0</span> <span class="c1"># number of i&#39;s in the last run</span>
<span class="n">drun</span> <span class="o">=</span> <span class="mi">0</span> <span class="c1"># number of d&#39;s in the last run</span>
<span class="n">dlast</span> <span class="o">=</span> <span class="mf">0.0</span> <span class="c1"># betweenness of last d</span>
@@ -1449,11 +1461,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/tournament.html b/_modules/networkx/algorithms/tournament.html
index 101e895c..a1d24d84 100644
--- a/_modules/networkx/algorithms/tournament.html
+++ b/_modules/networkx/algorithms/tournament.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.tournament &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.tournament &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/tournament';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/tournament.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -869,11 +881,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/traversal/beamsearch.html b/_modules/networkx/algorithms/traversal/beamsearch.html
index e8c9dd3d..ef66bcc4 100644
--- a/_modules/networkx/algorithms/traversal/beamsearch.html
+++ b/_modules/networkx/algorithms/traversal/beamsearch.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.traversal.beamsearch &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.traversal.beamsearch &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/traversal/beamsearch';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/traversal/beamsearch.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -579,11 +591,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/traversal/breadth_first_search.html b/_modules/networkx/algorithms/traversal/breadth_first_search.html
index a89dc704..5d476787 100644
--- a/_modules/networkx/algorithms/traversal/breadth_first_search.html
+++ b/_modules/networkx/algorithms/traversal/breadth_first_search.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.traversal.breadth_first_search &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.traversal.breadth_first_search &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/traversal/breadth_first_search';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/traversal/breadth_first_search.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -877,7 +889,7 @@
<span class="c1"># same distance from sources at each iteration</span>
<span class="k">while</span> <span class="n">current_layer</span><span class="p">:</span>
<span class="k">yield</span> <span class="n">current_layer</span>
- <span class="n">next_layer</span> <span class="o">=</span> <span class="nb">list</span><span class="p">()</span>
+ <span class="n">next_layer</span> <span class="o">=</span> <span class="p">[]</span>
<span class="k">for</span> <span class="n">node</span> <span class="ow">in</span> <span class="n">current_layer</span><span class="p">:</span>
<span class="k">for</span> <span class="n">child</span> <span class="ow">in</span> <span class="n">G</span><span class="p">[</span><span class="n">node</span><span class="p">]:</span>
<span class="k">if</span> <span class="n">child</span> <span class="ow">not</span> <span class="ow">in</span> <span class="n">visited</span><span class="p">:</span>
@@ -937,11 +949,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/traversal/depth_first_search.html b/_modules/networkx/algorithms/traversal/depth_first_search.html
index ef9b18e7..b2bc52b9 100644
--- a/_modules/networkx/algorithms/traversal/depth_first_search.html
+++ b/_modules/networkx/algorithms/traversal/depth_first_search.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.traversal.depth_first_search &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.traversal.depth_first_search &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/traversal/depth_first_search';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/traversal/depth_first_search.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -923,11 +935,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/traversal/edgebfs.html b/_modules/networkx/algorithms/traversal/edgebfs.html
index 5fdf851f..4c6f4ec9 100644
--- a/_modules/networkx/algorithms/traversal/edgebfs.html
+++ b/_modules/networkx/algorithms/traversal/edgebfs.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.traversal.edgebfs &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.traversal.edgebfs &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/traversal/edgebfs';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/traversal/edgebfs.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -620,7 +632,7 @@
<span class="n">check_reverse</span> <span class="o">=</span> <span class="n">directed</span> <span class="ow">and</span> <span class="n">orientation</span> <span class="ow">in</span> <span class="p">(</span><span class="s2">&quot;reverse&quot;</span><span class="p">,</span> <span class="s2">&quot;ignore&quot;</span><span class="p">)</span>
<span class="c1"># start BFS</span>
- <span class="n">visited_nodes</span> <span class="o">=</span> <span class="p">{</span><span class="n">n</span> <span class="k">for</span> <span class="n">n</span> <span class="ow">in</span> <span class="n">nodes</span><span class="p">}</span>
+ <span class="n">visited_nodes</span> <span class="o">=</span> <span class="nb">set</span><span class="p">(</span><span class="n">nodes</span><span class="p">)</span>
<span class="n">visited_edges</span> <span class="o">=</span> <span class="nb">set</span><span class="p">()</span>
<span class="n">queue</span> <span class="o">=</span> <span class="n">deque</span><span class="p">([(</span><span class="n">n</span><span class="p">,</span> <span class="n">edges_from</span><span class="p">(</span><span class="n">n</span><span class="p">))</span> <span class="k">for</span> <span class="n">n</span> <span class="ow">in</span> <span class="n">nodes</span><span class="p">])</span>
<span class="k">while</span> <span class="n">queue</span><span class="p">:</span>
@@ -651,11 +663,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/traversal/edgedfs.html b/_modules/networkx/algorithms/traversal/edgedfs.html
index a23c1ce6..9fa9c0bf 100644
--- a/_modules/networkx/algorithms/traversal/edgedfs.html
+++ b/_modules/networkx/algorithms/traversal/edgedfs.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.traversal.edgedfs &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.traversal.edgedfs &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/traversal/edgedfs';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/traversal/edgedfs.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -649,11 +661,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/tree/branchings.html b/_modules/networkx/algorithms/tree/branchings.html
index 4f521d08..fea70844 100644
--- a/_modules/networkx/algorithms/tree/branchings.html
+++ b/_modules/networkx/algorithms/tree/branchings.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.tree.branchings &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.tree.branchings &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/tree/branchings';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/tree/branchings.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -815,7 +827,7 @@
<span class="n">d</span><span class="p">[</span><span class="n">partition</span><span class="p">]</span> <span class="o">=</span> <span class="n">data</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="n">partition</span><span class="p">)</span>
<span class="k">if</span> <span class="n">preserve_attrs</span><span class="p">:</span>
- <span class="k">for</span> <span class="p">(</span><span class="n">d_k</span><span class="p">,</span> <span class="n">d_v</span><span class="p">)</span> <span class="ow">in</span> <span class="n">data</span><span class="o">.</span><span class="n">items</span><span class="p">():</span>
+ <span class="k">for</span> <span class="n">d_k</span><span class="p">,</span> <span class="n">d_v</span> <span class="ow">in</span> <span class="n">data</span><span class="o">.</span><span class="n">items</span><span class="p">():</span>
<span class="k">if</span> <span class="n">d_k</span> <span class="o">!=</span> <span class="n">attr</span><span class="p">:</span>
<span class="n">d</span><span class="p">[</span><span class="n">d_k</span><span class="p">]</span> <span class="o">=</span> <span class="n">d_v</span>
@@ -1161,7 +1173,7 @@
<span class="c1"># Optionally, preserve the other edge attributes of the original</span>
<span class="c1"># graph</span>
<span class="k">if</span> <span class="n">preserve_attrs</span><span class="p">:</span>
- <span class="k">for</span> <span class="p">(</span><span class="n">key</span><span class="p">,</span> <span class="n">value</span><span class="p">)</span> <span class="ow">in</span> <span class="n">d</span><span class="o">.</span><span class="n">items</span><span class="p">():</span>
+ <span class="k">for</span> <span class="n">key</span><span class="p">,</span> <span class="n">value</span> <span class="ow">in</span> <span class="n">d</span><span class="o">.</span><span class="n">items</span><span class="p">():</span>
<span class="k">if</span> <span class="n">key</span> <span class="ow">not</span> <span class="ow">in</span> <span class="p">[</span><span class="bp">self</span><span class="o">.</span><span class="n">attr</span><span class="p">,</span> <span class="bp">self</span><span class="o">.</span><span class="n">candidate_attr</span><span class="p">]:</span>
<span class="n">dd</span><span class="p">[</span><span class="n">key</span><span class="p">]</span> <span class="o">=</span> <span class="n">value</span>
@@ -1395,7 +1407,7 @@
<span class="bp">self</span><span class="o">.</span><span class="n">partition_queue</span><span class="o">.</span><span class="n">put</span><span class="p">(</span>
<span class="bp">self</span><span class="o">.</span><span class="n">Partition</span><span class="p">(</span>
<span class="n">mst_weight</span> <span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">minimum</span> <span class="k">else</span> <span class="o">-</span><span class="n">mst_weight</span><span class="p">,</span>
- <span class="nb">dict</span><span class="p">()</span>
+ <span class="p">{}</span>
<span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">init_partition</span> <span class="ow">is</span> <span class="kc">None</span>
<span class="k">else</span> <span class="bp">self</span><span class="o">.</span><span class="n">init_partition</span><span class="o">.</span><span class="n">partition_dict</span><span class="p">,</span>
<span class="p">)</span>
@@ -1523,11 +1535,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/tree/coding.html b/_modules/networkx/algorithms/tree/coding.html
index 7201bd2b..4e0d327c 100644
--- a/_modules/networkx/algorithms/tree/coding.html
+++ b/_modules/networkx/algorithms/tree/coding.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.tree.coding &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.tree.coding &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/tree/coding';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/tree/coding.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -873,11 +885,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/tree/decomposition.html b/_modules/networkx/algorithms/tree/decomposition.html
index 3015dd5e..4fef731c 100644
--- a/_modules/networkx/algorithms/tree/decomposition.html
+++ b/_modules/networkx/algorithms/tree/decomposition.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.tree.decomposition &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.tree.decomposition &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/tree/decomposition';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/tree/decomposition.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -562,11 +574,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/tree/mst.html b/_modules/networkx/algorithms/tree/mst.html
index 2ac894cf..673eb6f2 100644
--- a/_modules/networkx/algorithms/tree/mst.html
+++ b/_modules/networkx/algorithms/tree/mst.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.tree.mst &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.tree.mst &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/tree/mst';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/tree/mst.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -1310,10 +1322,10 @@
<span class="sd"> Find the sum of weights of the spanning trees of `G` using the</span>
<span class="sd"> approioate `method`.</span>
-<span class="sd"> This is easy if the choosen method is &#39;multiplicative&#39;, since we can</span>
+<span class="sd"> This is easy if the chosen method is &#39;multiplicative&#39;, since we can</span>
<span class="sd"> use Kirchhoff&#39;s Tree Matrix Theorem directly. However, with the</span>
<span class="sd"> &#39;additive&#39; method, this process is slightly more complex and less</span>
-<span class="sd"> computatiionally efficent as we have to find the number of spanning</span>
+<span class="sd"> computatiionally efficient as we have to find the number of spanning</span>
<span class="sd"> trees which contain each possible edge in the graph.</span>
<span class="sd"> Parameters</span>
@@ -1345,7 +1357,7 @@
<span class="c1"># the number of spanning trees which have to include that edge. This</span>
<span class="c1"># can be accomplished by contracting the edge and finding the</span>
<span class="c1"># multiplicative total spanning tree weight if the weight of each edge</span>
- <span class="c1"># is assumed to be 1, which is conviently built into networkx already,</span>
+ <span class="c1"># is assumed to be 1, which is conveniently built into networkx already,</span>
<span class="c1"># by calling total_spanning_tree_weight with weight=None</span>
<span class="k">else</span><span class="p">:</span>
<span class="n">total</span> <span class="o">=</span> <span class="mi">0</span>
@@ -1485,7 +1497,7 @@
<span class="p">)</span><span class="o">.</span><span class="n">size</span><span class="p">(</span><span class="n">weight</span><span class="o">=</span><span class="bp">self</span><span class="o">.</span><span class="n">weight</span><span class="p">)</span>
<span class="bp">self</span><span class="o">.</span><span class="n">partition_queue</span><span class="o">.</span><span class="n">put</span><span class="p">(</span>
- <span class="bp">self</span><span class="o">.</span><span class="n">Partition</span><span class="p">(</span><span class="n">mst_weight</span> <span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">minimum</span> <span class="k">else</span> <span class="o">-</span><span class="n">mst_weight</span><span class="p">,</span> <span class="nb">dict</span><span class="p">())</span>
+ <span class="bp">self</span><span class="o">.</span><span class="n">Partition</span><span class="p">(</span><span class="n">mst_weight</span> <span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">minimum</span> <span class="k">else</span> <span class="o">-</span><span class="n">mst_weight</span><span class="p">,</span> <span class="p">{})</span>
<span class="p">)</span>
<span class="k">return</span> <span class="bp">self</span>
@@ -1587,11 +1599,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/tree/operations.html b/_modules/networkx/algorithms/tree/operations.html
index 90520311..957152b7 100644
--- a/_modules/networkx/algorithms/tree/operations.html
+++ b/_modules/networkx/algorithms/tree/operations.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.tree.operations &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.tree.operations &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/tree/operations';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/tree/operations.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -581,11 +593,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/tree/recognition.html b/_modules/networkx/algorithms/tree/recognition.html
index 9c10710b..65fc2337 100644
--- a/_modules/networkx/algorithms/tree/recognition.html
+++ b/_modules/networkx/algorithms/tree/recognition.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.tree.recognition &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.tree.recognition &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/tree/recognition';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/tree/recognition.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -744,11 +756,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/triads.html b/_modules/networkx/algorithms/triads.html
index 394588ed..9d561fed 100644
--- a/_modules/networkx/algorithms/triads.html
+++ b/_modules/networkx/algorithms/triads.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.triads &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.triads &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/triads';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/triads.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -847,7 +859,7 @@
<span class="sd"> - 210: 1 -&gt; 2 &lt;-&gt; 3, 1 &lt;-&gt; 3</span>
<span class="sd"> - 300: 1 &lt;-&gt; 2 &lt;-&gt; 3, 1 &lt;-&gt; 3</span>
-<span class="sd"> Refer to the :doc:`example gallery &lt;auto_examples/graph/plot_triad_types&gt;`</span>
+<span class="sd"> Refer to the :doc:`example gallery &lt;/auto_examples/graph/plot_triad_types&gt;`</span>
<span class="sd"> for visual examples of the triad types.</span>
<span class="sd"> Parameters</span>
@@ -921,7 +933,7 @@
<span class="sd"> {m} = number of mutual ties (takes 0, 1, 2, 3); a mutual tie is (0,1)</span>
<span class="sd"> AND (1,0)</span>
-<span class="sd"> {a} = number of assymmetric ties (takes 0, 1, 2, 3); an assymmetric tie</span>
+<span class="sd"> {a} = number of asymmetric ties (takes 0, 1, 2, 3); an asymmetric tie</span>
<span class="sd"> is (0,1) BUT NOT (1,0) or vice versa</span>
<span class="sd"> {n} = number of null ties (takes 0, 1, 2, 3); a null tie is NEITHER</span>
<span class="sd"> (0,1) NOR (1,0)</span>
@@ -953,7 +965,7 @@
<span class="k">elif</span> <span class="n">e1</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span> <span class="o">==</span> <span class="n">e2</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span> <span class="ow">or</span> <span class="n">e2</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span> <span class="o">==</span> <span class="n">e1</span><span class="p">[</span><span class="mi">0</span><span class="p">]:</span>
<span class="k">return</span> <span class="s2">&quot;021C&quot;</span>
<span class="k">elif</span> <span class="n">num_edges</span> <span class="o">==</span> <span class="mi">3</span><span class="p">:</span>
- <span class="k">for</span> <span class="p">(</span><span class="n">e1</span><span class="p">,</span> <span class="n">e2</span><span class="p">,</span> <span class="n">e3</span><span class="p">)</span> <span class="ow">in</span> <span class="n">permutations</span><span class="p">(</span><span class="n">G</span><span class="o">.</span><span class="n">edges</span><span class="p">(),</span> <span class="mi">3</span><span class="p">):</span>
+ <span class="k">for</span> <span class="n">e1</span><span class="p">,</span> <span class="n">e2</span><span class="p">,</span> <span class="n">e3</span> <span class="ow">in</span> <span class="n">permutations</span><span class="p">(</span><span class="n">G</span><span class="o">.</span><span class="n">edges</span><span class="p">(),</span> <span class="mi">3</span><span class="p">):</span>
<span class="k">if</span> <span class="nb">set</span><span class="p">(</span><span class="n">e1</span><span class="p">)</span> <span class="o">==</span> <span class="nb">set</span><span class="p">(</span><span class="n">e2</span><span class="p">):</span>
<span class="k">if</span> <span class="n">e3</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span> <span class="ow">in</span> <span class="n">e1</span><span class="p">:</span>
<span class="k">return</span> <span class="s2">&quot;111U&quot;</span>
@@ -965,7 +977,7 @@
<span class="c1"># e3 == (e1[0], e2[1]) and e2 == (e1[1], e3[1]):</span>
<span class="k">return</span> <span class="s2">&quot;030T&quot;</span>
<span class="k">elif</span> <span class="n">num_edges</span> <span class="o">==</span> <span class="mi">4</span><span class="p">:</span>
- <span class="k">for</span> <span class="p">(</span><span class="n">e1</span><span class="p">,</span> <span class="n">e2</span><span class="p">,</span> <span class="n">e3</span><span class="p">,</span> <span class="n">e4</span><span class="p">)</span> <span class="ow">in</span> <span class="n">permutations</span><span class="p">(</span><span class="n">G</span><span class="o">.</span><span class="n">edges</span><span class="p">(),</span> <span class="mi">4</span><span class="p">):</span>
+ <span class="k">for</span> <span class="n">e1</span><span class="p">,</span> <span class="n">e2</span><span class="p">,</span> <span class="n">e3</span><span class="p">,</span> <span class="n">e4</span> <span class="ow">in</span> <span class="n">permutations</span><span class="p">(</span><span class="n">G</span><span class="o">.</span><span class="n">edges</span><span class="p">(),</span> <span class="mi">4</span><span class="p">):</span>
<span class="k">if</span> <span class="nb">set</span><span class="p">(</span><span class="n">e1</span><span class="p">)</span> <span class="o">==</span> <span class="nb">set</span><span class="p">(</span><span class="n">e2</span><span class="p">):</span>
<span class="c1"># identify pair of symmetric edges (which necessarily exists)</span>
<span class="k">if</span> <span class="nb">set</span><span class="p">(</span><span class="n">e3</span><span class="p">)</span> <span class="o">==</span> <span class="nb">set</span><span class="p">(</span><span class="n">e4</span><span class="p">):</span>
@@ -1083,11 +1095,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/vitality.html b/_modules/networkx/algorithms/vitality.html
index 789c9102..6e041375 100644
--- a/_modules/networkx/algorithms/vitality.html
+++ b/_modules/networkx/algorithms/vitality.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.vitality &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.vitality &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/vitality';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/vitality.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -550,11 +562,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/voronoi.html b/_modules/networkx/algorithms/voronoi.html
index d8cc0aa0..bdf55f56 100644
--- a/_modules/networkx/algorithms/voronoi.html
+++ b/_modules/networkx/algorithms/voronoi.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.voronoi &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.voronoi &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/voronoi';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/voronoi.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -472,9 +484,9 @@
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Returns the Voronoi cells centered at `center_nodes` with respect</span>
<span class="sd"> to the shortest-path distance metric.</span>
-<span class="sd"> If *C* is a set of nodes in the graph and *c* is an element of *C*,</span>
-<span class="sd"> the *Voronoi cell* centered at a node *c* is the set of all nodes</span>
-<span class="sd"> *v* that are closer to *c* than to any other center node in *C* with</span>
+<span class="sd"> If $C$ is a set of nodes in the graph and $c$ is an element of $C$,</span>
+<span class="sd"> the *Voronoi cell* centered at a node $c$ is the set of all nodes</span>
+<span class="sd"> $v$ that are closer to $c$ than to any other center node in $C$ with</span>
<span class="sd"> respect to the shortest-path distance metric. [1]_</span>
<span class="sd"> For directed graphs, this will compute the &quot;outward&quot; Voronoi cells,</span>
@@ -525,10 +537,9 @@
<span class="sd"> References</span>
<span class="sd"> ----------</span>
-<span class="sd"> .. [1] Erwig, Martin. (2000),</span>
-<span class="sd"> &quot;The graph Voronoi diagram with applications.&quot;</span>
-<span class="sd"> *Networks*, 36: 156--163.</span>
-<span class="sd"> &lt;dx.doi.org/10.1002/1097-0037(200010)36:3&lt;156::AID-NET2&gt;3.0.CO;2-L&gt;</span>
+<span class="sd"> .. [1] Erwig, Martin. (2000),&quot;The graph Voronoi diagram with applications.&quot;</span>
+<span class="sd"> *Networks*, 36: 156--163.</span>
+<span class="sd"> https://doi.org/10.1002/1097-0037(200010)36:3&lt;156::AID-NET2&gt;3.0.CO;2-L</span>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="c1"># Determine the shortest paths from any one of the center nodes to</span>
@@ -560,11 +571,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/algorithms/wiener.html b/_modules/networkx/algorithms/wiener.html
index ba5e24d3..cce3ccba 100644
--- a/_modules/networkx/algorithms/wiener.html
+++ b/_modules/networkx/algorithms/wiener.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.algorithms.wiener &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.algorithms.wiener &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/algorithms/wiener';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/algorithms/wiener.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -551,11 +563,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/classes/backends.html b/_modules/networkx/classes/backends.html
index 5ece50e4..626996ba 100644
--- a/_modules/networkx/classes/backends.html
+++ b/_modules/networkx/classes/backends.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.classes.backends &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.classes.backends &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/classes/backends';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/classes/backends.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -470,56 +482,53 @@
<span class="sd">To be a valid plugin, a package must register an entry_point</span>
<span class="sd">of `networkx.plugins` with a key pointing to the handler.</span>
-<span class="sd">For example:</span>
+<span class="sd">For example::</span>
-<span class="sd">```</span>
-<span class="sd">entry_points={&#39;networkx.plugins&#39;: &#39;sparse = networkx_plugin_sparse&#39;}</span>
-<span class="sd">```</span>
+<span class="sd"> entry_points={&#39;networkx.plugins&#39;: &#39;sparse = networkx_plugin_sparse&#39;}</span>
<span class="sd">The plugin must create a Graph-like object which contains an attribute</span>
-<span class="sd">`__networkx_plugin__` with a value of the entry point name.</span>
+<span class="sd">``__networkx_plugin__`` with a value of the entry point name.</span>
-<span class="sd">Continuing the example above:</span>
+<span class="sd">Continuing the example above::</span>
-<span class="sd">```</span>
-<span class="sd">class WrappedSparse:</span>
-<span class="sd"> __networkx_plugin__ = &quot;sparse&quot;</span>
-<span class="sd"> ...</span>
-<span class="sd">```</span>
+<span class="sd"> class WrappedSparse:</span>
+<span class="sd"> __networkx_plugin__ = &quot;sparse&quot;</span>
+<span class="sd"> ...</span>
<span class="sd">When a dispatchable NetworkX algorithm encounters a Graph-like object</span>
-<span class="sd">with a `__networkx_plugin__` attribute, it will look for the associated</span>
+<span class="sd">with a ``__networkx_plugin__`` attribute, it will look for the associated</span>
<span class="sd">dispatch object in the entry_points, load it, and dispatch the work to it.</span>
<span class="sd">Testing</span>
<span class="sd">-------</span>
<span class="sd">To assist in validating the backend algorithm implementations, if an</span>
-<span class="sd">environment variable `NETWORKX_GRAPH_CONVERT` is set to a registered</span>
+<span class="sd">environment variable ``NETWORKX_GRAPH_CONVERT`` is set to a registered</span>
<span class="sd">plugin keys, the dispatch machinery will automatically convert regular</span>
<span class="sd">networkx Graphs and DiGraphs to the backend equivalent by calling</span>
-<span class="sd">`&lt;backend dispatcher&gt;.convert_from_nx(G, weight=weight, name=name)`.</span>
+<span class="sd">``&lt;backend dispatcher&gt;.convert_from_nx(G, weight=weight, name=name)``.</span>
<span class="sd">The converted object is then passed to the backend implementation of</span>
<span class="sd">the algorithm. The result is then passed to</span>
-<span class="sd">`&lt;backend dispatcher&gt;.convert_to_nx(result, name=name)` to convert back</span>
+<span class="sd">``&lt;backend dispatcher&gt;.convert_to_nx(result, name=name)`` to convert back</span>
<span class="sd">to a form expected by the NetworkX tests.</span>
-<span class="sd">By defining `convert_from_nx` and `convert_to_nx` methods and setting</span>
+<span class="sd">By defining ``convert_from_nx`` and ``convert_to_nx`` methods and setting</span>
<span class="sd">the environment variable, NetworkX will automatically route tests on</span>
<span class="sd">dispatchable algorithms to the backend, allowing the full networkx test</span>
<span class="sd">suite to be run against the backend implementation.</span>
-<span class="sd">Example pytest invocation:</span>
-<span class="sd">NETWORKX_GRAPH_CONVERT=sparse pytest --pyargs networkx</span>
+<span class="sd">Example pytest invocation::</span>
+
+<span class="sd"> NETWORKX_GRAPH_CONVERT=sparse pytest --pyargs networkx</span>
<span class="sd">Dispatchable algorithms which are not implemented by the backend</span>
-<span class="sd">will cause a `pytest.xfail()`, giving some indication that not all</span>
+<span class="sd">will cause a ``pytest.xfail()``, giving some indication that not all</span>
<span class="sd">tests are working, while avoiding causing an explicit failure.</span>
-<span class="sd">A special `on_start_tests(items)` function may be defined by the backend.</span>
+<span class="sd">A special ``on_start_tests(items)`` function may be defined by the backend.</span>
<span class="sd">It will be called with the list of NetworkX tests discovered. Each item</span>
-<span class="sd">is a pytest.Node object. If the backend does not support the test, that</span>
+<span class="sd">is a `pytest.Node` object. If the backend does not support the test, that</span>
<span class="sd">test can be marked as xfail.</span>
<span class="sd">&quot;&quot;&quot;</span>
<span class="kn">import</span> <span class="nn">functools</span>
@@ -700,11 +709,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/classes/coreviews.html b/_modules/networkx/classes/coreviews.html
index 35dd22d2..92663fc3 100644
--- a/_modules/networkx/classes/coreviews.html
+++ b/_modules/networkx/classes/coreviews.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.classes.coreviews &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.classes.coreviews &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/classes/coreviews';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/classes/coreviews.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -842,11 +854,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/classes/digraph.html b/_modules/networkx/classes/digraph.html
index 94aeb8b2..b2c4321c 100644
--- a/_modules/networkx/classes/digraph.html
+++ b/_modules/networkx/classes/digraph.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.classes.digraph &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.classes.digraph &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/classes/digraph';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/classes/digraph.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -466,7 +478,7 @@
<span class="kn">from</span> <span class="nn">functools</span> <span class="kn">import</span> <span class="n">cached_property</span>
<span class="kn">import</span> <span class="nn">networkx</span> <span class="k">as</span> <span class="nn">nx</span>
-<span class="kn">import</span> <span class="nn">networkx.convert</span> <span class="k">as</span> <span class="nn">convert</span>
+<span class="kn">from</span> <span class="nn">networkx</span> <span class="kn">import</span> <span class="n">convert</span>
<span class="kn">from</span> <span class="nn">networkx.classes.coreviews</span> <span class="kn">import</span> <span class="n">AdjacencyView</span>
<span class="kn">from</span> <span class="nn">networkx.classes.graph</span> <span class="kn">import</span> <span class="n">Graph</span>
<span class="kn">from</span> <span class="nn">networkx.classes.reportviews</span> <span class="kn">import</span> <span class="p">(</span>
@@ -772,8 +784,8 @@
<span class="sd"> True</span>
<span class="sd"> &quot;&quot;&quot;</span>
- <span class="n">_adj</span> <span class="o">=</span> <span class="n">_CachedPropertyResetterAdjAndSucc</span><span class="p">()</span> <span class="c1"># type: ignore</span>
- <span class="n">_succ</span> <span class="o">=</span> <span class="n">_adj</span> <span class="c1"># type: ignore</span>
+ <span class="n">_adj</span> <span class="o">=</span> <span class="n">_CachedPropertyResetterAdjAndSucc</span><span class="p">()</span> <span class="c1"># type: ignore[assignment]</span>
+ <span class="n">_succ</span> <span class="o">=</span> <span class="n">_adj</span> <span class="c1"># type: ignore[has-type]</span>
<span class="n">_pred</span> <span class="o">=</span> <span class="n">_CachedPropertyResetterPred</span><span class="p">()</span>
<div class="viewcode-block" id="DiGraph.__init__"><a class="viewcode-back" href="../../../reference/classes/generated/networkx.DiGraph.__init__.html#networkx.DiGraph.__init__">[docs]</a> <span class="k">def</span> <span class="fm">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">incoming_graph_data</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span> <span class="o">**</span><span class="n">attr</span><span class="p">):</span>
@@ -1798,11 +1810,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/classes/filters.html b/_modules/networkx/classes/filters.html
index 8c4bfc87..9dad1c81 100644
--- a/_modules/networkx/classes/filters.html
+++ b/_modules/networkx/classes/filters.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.classes.filters &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.classes.filters &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/classes/filters';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/classes/filters.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -550,11 +562,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/classes/function.html b/_modules/networkx/classes/function.html
index bec045a0..816302e2 100644
--- a/_modules/networkx/classes/function.html
+++ b/_modules/networkx/classes/function.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.classes.function &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.classes.function &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/classes/function';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/classes/function.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -1716,10 +1728,7 @@
<span class="sd"> True if `path` is a valid path in `G`</span>
<span class="sd"> &quot;&quot;&quot;</span>
- <span class="k">for</span> <span class="n">node</span><span class="p">,</span> <span class="n">nbr</span> <span class="ow">in</span> <span class="n">nx</span><span class="o">.</span><span class="n">utils</span><span class="o">.</span><span class="n">pairwise</span><span class="p">(</span><span class="n">path</span><span class="p">):</span>
- <span class="k">if</span> <span class="p">(</span><span class="n">node</span> <span class="ow">not</span> <span class="ow">in</span> <span class="n">G</span><span class="p">)</span> <span class="ow">or</span> <span class="p">(</span><span class="n">nbr</span> <span class="ow">not</span> <span class="ow">in</span> <span class="n">G</span><span class="p">[</span><span class="n">node</span><span class="p">]):</span>
- <span class="k">return</span> <span class="kc">False</span>
- <span class="k">return</span> <span class="kc">True</span></div>
+ <span class="k">return</span> <span class="nb">all</span><span class="p">((</span><span class="n">node</span> <span class="ow">in</span> <span class="n">G</span> <span class="ow">and</span> <span class="n">nbr</span> <span class="ow">in</span> <span class="n">G</span><span class="p">[</span><span class="n">node</span><span class="p">])</span> <span class="k">for</span> <span class="n">node</span><span class="p">,</span> <span class="n">nbr</span> <span class="ow">in</span> <span class="n">nx</span><span class="o">.</span><span class="n">utils</span><span class="o">.</span><span class="n">pairwise</span><span class="p">(</span><span class="n">path</span><span class="p">))</span></div>
<div class="viewcode-block" id="path_weight"><a class="viewcode-back" href="../../../reference/generated/networkx.classes.function.path_weight.html#networkx.classes.function.path_weight">[docs]</a><span class="k">def</span> <span class="nf">path_weight</span><span class="p">(</span><span class="n">G</span><span class="p">,</span> <span class="n">path</span><span class="p">,</span> <span class="n">weight</span><span class="p">):</span>
@@ -1772,11 +1781,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/classes/graph.html b/_modules/networkx/classes/graph.html
index 1f4ff6c6..b33b91c2 100644
--- a/_modules/networkx/classes/graph.html
+++ b/_modules/networkx/classes/graph.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.classes.graph &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.classes.graph &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/classes/graph';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/classes/graph.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -474,7 +486,7 @@
<span class="kn">from</span> <span class="nn">functools</span> <span class="kn">import</span> <span class="n">cached_property</span>
<span class="kn">import</span> <span class="nn">networkx</span> <span class="k">as</span> <span class="nn">nx</span>
-<span class="kn">import</span> <span class="nn">networkx.convert</span> <span class="k">as</span> <span class="nn">convert</span>
+<span class="kn">from</span> <span class="nn">networkx</span> <span class="kn">import</span> <span class="n">convert</span>
<span class="kn">from</span> <span class="nn">networkx.classes.coreviews</span> <span class="kn">import</span> <span class="n">AdjacencyView</span>
<span class="kn">from</span> <span class="nn">networkx.classes.reportviews</span> <span class="kn">import</span> <span class="n">DegreeView</span><span class="p">,</span> <span class="n">EdgeView</span><span class="p">,</span> <span class="n">NodeView</span>
<span class="kn">from</span> <span class="nn">networkx.exception</span> <span class="kn">import</span> <span class="n">NetworkXError</span>
@@ -2503,11 +2515,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/classes/graphviews.html b/_modules/networkx/classes/graphviews.html
index 1ad32f53..85bb61b6 100644
--- a/_modules/networkx/classes/graphviews.html
+++ b/_modules/networkx/classes/graphviews.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.classes.graphviews &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.classes.graphviews &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/classes/graphviews';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/classes/graphviews.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -471,7 +483,7 @@
<span class="sd">as undirected, etc. This module provides those graph views.</span>
<span class="sd">The resulting views are essentially read-only graphs that</span>
-<span class="sd">report data from the orignal graph object. We provide an</span>
+<span class="sd">report data from the original graph object. We provide an</span>
<span class="sd">attribute G._graph which points to the underlying graph object.</span>
<span class="sd">Note: Since graphviews look like graphs, one can end up with</span>
@@ -680,11 +692,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/classes/multidigraph.html b/_modules/networkx/classes/multidigraph.html
index 0c34a199..abcd7fa2 100644
--- a/_modules/networkx/classes/multidigraph.html
+++ b/_modules/networkx/classes/multidigraph.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.classes.multidigraph &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.classes.multidigraph &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/classes/multidigraph';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/classes/multidigraph.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -466,7 +478,7 @@
<span class="kn">from</span> <span class="nn">functools</span> <span class="kn">import</span> <span class="n">cached_property</span>
<span class="kn">import</span> <span class="nn">networkx</span> <span class="k">as</span> <span class="nn">nx</span>
-<span class="kn">import</span> <span class="nn">networkx.convert</span> <span class="k">as</span> <span class="nn">convert</span>
+<span class="kn">from</span> <span class="nn">networkx</span> <span class="kn">import</span> <span class="n">convert</span>
<span class="kn">from</span> <span class="nn">networkx.classes.coreviews</span> <span class="kn">import</span> <span class="n">MultiAdjacencyView</span>
<span class="kn">from</span> <span class="nn">networkx.classes.digraph</span> <span class="kn">import</span> <span class="n">DiGraph</span>
<span class="kn">from</span> <span class="nn">networkx.classes.multigraph</span> <span class="kn">import</span> <span class="n">MultiGraph</span>
@@ -1438,11 +1450,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/classes/multigraph.html b/_modules/networkx/classes/multigraph.html
index 12e61e50..0ee167bf 100644
--- a/_modules/networkx/classes/multigraph.html
+++ b/_modules/networkx/classes/multigraph.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.classes.multigraph &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.classes.multigraph &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/classes/multigraph';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/classes/multigraph.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -466,8 +478,7 @@
<span class="kn">from</span> <span class="nn">functools</span> <span class="kn">import</span> <span class="n">cached_property</span>
<span class="kn">import</span> <span class="nn">networkx</span> <span class="k">as</span> <span class="nn">nx</span>
-<span class="kn">import</span> <span class="nn">networkx.convert</span> <span class="k">as</span> <span class="nn">convert</span>
-<span class="kn">from</span> <span class="nn">networkx</span> <span class="kn">import</span> <span class="n">NetworkXError</span>
+<span class="kn">from</span> <span class="nn">networkx</span> <span class="kn">import</span> <span class="n">NetworkXError</span><span class="p">,</span> <span class="n">convert</span>
<span class="kn">from</span> <span class="nn">networkx.classes.coreviews</span> <span class="kn">import</span> <span class="n">MultiAdjacencyView</span>
<span class="kn">from</span> <span class="nn">networkx.classes.graph</span> <span class="kn">import</span> <span class="n">Graph</span>
<span class="kn">from</span> <span class="nn">networkx.classes.reportviews</span> <span class="kn">import</span> <span class="n">MultiDegreeView</span><span class="p">,</span> <span class="n">MultiEdgeView</span>
@@ -1754,11 +1765,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/convert.html b/_modules/networkx/convert.html
index a78ff4ae..59ade646 100644
--- a/_modules/networkx/convert.html
+++ b/_modules/networkx/convert.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.convert &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.convert &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/convert';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/convert.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../genindex.html" />
<link rel="search" title="Search" href="../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -966,11 +978,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/convert_matrix.html b/_modules/networkx/convert_matrix.html
index 7bf92f2e..9fc105db 100644
--- a/_modules/networkx/convert_matrix.html
+++ b/_modules/networkx/convert_matrix.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.convert_matrix &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.convert_matrix &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/convert_matrix';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/convert_matrix.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../genindex.html" />
<link rel="search" title="Search" href="../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -1610,7 +1622,7 @@
<span class="p">((</span><span class="n">u</span><span class="p">,</span> <span class="n">v</span><span class="p">,</span> <span class="p">{</span><span class="s2">&quot;weight&quot;</span><span class="p">:</span> <span class="mi">1</span><span class="p">})</span> <span class="k">for</span> <span class="n">d</span> <span class="ow">in</span> <span class="nb">range</span><span class="p">(</span><span class="n">A</span><span class="p">[</span><span class="n">u</span><span class="p">,</span> <span class="n">v</span><span class="p">]))</span> <span class="k">for</span> <span class="p">(</span><span class="n">u</span><span class="p">,</span> <span class="n">v</span><span class="p">)</span> <span class="ow">in</span> <span class="n">edges</span>
<span class="p">)</span>
<span class="k">else</span><span class="p">:</span> <span class="c1"># basic data type</span>
- <span class="n">triples</span> <span class="o">=</span> <span class="p">((</span><span class="n">u</span><span class="p">,</span> <span class="n">v</span><span class="p">,</span> <span class="nb">dict</span><span class="p">(</span><span class="n">weight</span><span class="o">=</span><span class="n">python_type</span><span class="p">(</span><span class="n">A</span><span class="p">[</span><span class="n">u</span><span class="p">,</span> <span class="n">v</span><span class="p">])))</span> <span class="k">for</span> <span class="n">u</span><span class="p">,</span> <span class="n">v</span> <span class="ow">in</span> <span class="n">edges</span><span class="p">)</span>
+ <span class="n">triples</span> <span class="o">=</span> <span class="p">((</span><span class="n">u</span><span class="p">,</span> <span class="n">v</span><span class="p">,</span> <span class="p">{</span><span class="s2">&quot;weight&quot;</span><span class="p">:</span> <span class="n">python_type</span><span class="p">(</span><span class="n">A</span><span class="p">[</span><span class="n">u</span><span class="p">,</span> <span class="n">v</span><span class="p">])})</span> <span class="k">for</span> <span class="n">u</span><span class="p">,</span> <span class="n">v</span> <span class="ow">in</span> <span class="n">edges</span><span class="p">)</span>
<span class="c1"># If we are creating an undirected multigraph, only add the edges from the</span>
<span class="c1"># upper triangle of the matrix. Otherwise, add all the edges. This relies</span>
<span class="c1"># on the fact that the vertices created in the</span>
@@ -1637,11 +1649,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/drawing/layout.html b/_modules/networkx/drawing/layout.html
index 0afdd047..1b7a4487 100644
--- a/_modules/networkx/drawing/layout.html
+++ b/_modules/networkx/drawing/layout.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.drawing.layout &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.drawing.layout &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/drawing/layout';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/drawing/layout.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -1606,7 +1618,7 @@
<span class="sd"> a : float</span>
<span class="sd"> Strength of springs between connected nodes. Should be larger than 1. The greater a, the clearer the separation ofunconnected sub clusters.</span>
<span class="sd"> etol : float</span>
-<span class="sd"> Graduent sum of spring forces must be larger than `etol` before succesful termination.</span>
+<span class="sd"> Graduent sum of spring forces must be larger than `etol` before successful termination.</span>
<span class="sd"> dt : float</span>
<span class="sd"> Time step for force differential equation simulations.</span>
<span class="sd"> max_iter : int</span>
@@ -1777,11 +1789,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/drawing/nx_agraph.html b/_modules/networkx/drawing/nx_agraph.html
index a18c0e02..d7d1e317 100644
--- a/_modules/networkx/drawing/nx_agraph.html
+++ b/_modules/networkx/drawing/nx_agraph.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.drawing.nx_agraph &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.drawing.nx_agraph &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/drawing/nx_agraph';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/drawing/nx_agraph.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -787,7 +799,7 @@
<span class="sd"> G : NetworkX graph</span>
<span class="sd"> The machine to draw.</span>
<span class="sd"> edgelabel : str, callable, None</span>
-<span class="sd"> If a string, then it specifes the edge attribute to be displayed</span>
+<span class="sd"> If a string, then it specifies the edge attribute to be displayed</span>
<span class="sd"> on the edge labels. If a callable, then it is called for each</span>
<span class="sd"> edge and it should return the string to be displayed on the edges.</span>
<span class="sd"> The function signature of `edgelabel` should be edgelabel(data),</span>
@@ -935,11 +947,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/drawing/nx_latex.html b/_modules/networkx/drawing/nx_latex.html
index 0a37f10b..bdeeb81a 100644
--- a/_modules/networkx/drawing/nx_latex.html
+++ b/_modules/networkx/drawing/nx_latex.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.drawing.nx_latex &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.drawing.nx_latex &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/drawing/nx_latex';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/drawing/nx_latex.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -680,8 +692,8 @@
<span class="k">if</span> <span class="ow">not</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">pos</span><span class="p">,</span> <span class="nb">dict</span><span class="p">):</span>
<span class="n">pos</span> <span class="o">=</span> <span class="n">nx</span><span class="o">.</span><span class="n">get_node_attributes</span><span class="p">(</span><span class="n">G</span><span class="p">,</span> <span class="n">pos</span><span class="p">)</span>
<span class="k">if</span> <span class="ow">not</span> <span class="n">pos</span><span class="p">:</span>
- <span class="c1"># circular layout with radius 1</span>
- <span class="n">pos</span> <span class="o">=</span> <span class="p">{</span><span class="n">n</span><span class="p">:</span> <span class="sa">f</span><span class="s2">&quot;(</span><span class="si">{</span><span class="nb">round</span><span class="p">(</span><span class="mi">2</span><span class="o">*</span><span class="w"> </span><span class="mf">3.1415</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="nb">len</span><span class="p">(</span><span class="n">G</span><span class="p">),</span><span class="w"> </span><span class="mi">3</span><span class="p">)</span><span class="si">}</span><span class="s2">:10)&quot;</span> <span class="k">for</span> <span class="n">i</span><span class="p">,</span> <span class="n">n</span> <span class="ow">in</span> <span class="nb">enumerate</span><span class="p">(</span><span class="n">G</span><span class="p">)}</span>
+ <span class="c1"># circular layout with radius 2</span>
+ <span class="n">pos</span> <span class="o">=</span> <span class="p">{</span><span class="n">n</span><span class="p">:</span> <span class="sa">f</span><span class="s2">&quot;(</span><span class="si">{</span><span class="nb">round</span><span class="p">(</span><span class="mf">360.0</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">/</span><span class="w"> </span><span class="nb">len</span><span class="p">(</span><span class="n">G</span><span class="p">),</span><span class="w"> </span><span class="mi">3</span><span class="p">)</span><span class="si">}</span><span class="s2">:2)&quot;</span> <span class="k">for</span> <span class="n">i</span><span class="p">,</span> <span class="n">n</span> <span class="ow">in</span> <span class="nb">enumerate</span><span class="p">(</span><span class="n">G</span><span class="p">)}</span>
<span class="k">for</span> <span class="n">node</span> <span class="ow">in</span> <span class="n">G</span><span class="p">:</span>
<span class="k">if</span> <span class="n">node</span> <span class="ow">not</span> <span class="ow">in</span> <span class="n">pos</span><span class="p">:</span>
<span class="k">raise</span> <span class="n">nx</span><span class="o">.</span><span class="n">NetworkXError</span><span class="p">(</span><span class="sa">f</span><span class="s2">&quot;node </span><span class="si">{</span><span class="n">node</span><span class="si">}</span><span class="s2"> has no specified pos </span><span class="si">{</span><span class="n">pos</span><span class="si">}</span><span class="s2">&quot;</span><span class="p">)</span>
@@ -948,7 +960,7 @@
<span class="sd"> This convenience function creates the latex drawing code as a string</span>
<span class="sd"> and writes that to a file ready to be compiled when `as_document` is True</span>
-<span class="sd"> or ready to be ``\\import``ed or `\\include``ed into your main LaTeX document.</span>
+<span class="sd"> or ready to be ``import`` ed or ``include`` ed into your main LaTeX document.</span>
<span class="sd"> The `path` argument can be a string filename or a file handle to write to.</span>
@@ -961,71 +973,71 @@
<span class="sd"> path : filename</span>
<span class="sd"> Filename or file handle to write to</span>
<span class="sd"> options : dict</span>
-<span class="sd"> By default, TikZ is used with options: (others are ignored):</span>
-
-<span class="sd"> pos : string or dict or list</span>
-<span class="sd"> The name of the node attribute on `G` that holds the position of each node.</span>
-<span class="sd"> Positions can be sequences of length 2 with numbers for (x,y) coordinates.</span>
-<span class="sd"> They can also be strings to denote positions in TikZ style, such as (x, y)</span>
-<span class="sd"> or (angle:radius).</span>
-<span class="sd"> If a dict, it should be keyed by node to a position.</span>
-<span class="sd"> If an empty dict, a circular layout is computed by TikZ.</span>
-<span class="sd"> If you are drawing many graphs in subfigures, use a list of position dicts.</span>
-<span class="sd"> tikz_options : string</span>
-<span class="sd"> The tikzpicture options description defining the options for the picture.</span>
-<span class="sd"> Often large scale options like `[scale=2]`.</span>
-<span class="sd"> default_node_options : string</span>
-<span class="sd"> The draw options for a path of nodes. Individual node options override these.</span>
-<span class="sd"> node_options : string or dict</span>
-<span class="sd"> The name of the node attribute on `G` that holds the options for each node.</span>
-<span class="sd"> Or a dict keyed by node to a string holding the options for that node.</span>
-<span class="sd"> node_label : string or dict</span>
-<span class="sd"> The name of the node attribute on `G` that holds the node label (text)</span>
-<span class="sd"> displayed for each node. If the attribute is &quot;&quot; or not present, the node</span>
-<span class="sd"> itself is drawn as a string. LaTeX processing such as ``&quot;$A_1$&quot;`` is allowed.</span>
-<span class="sd"> Or a dict keyed by node to a string holding the label for that node.</span>
-<span class="sd"> default_edge_options : string</span>
-<span class="sd"> The options for the scope drawing all edges. The default is &quot;[-]&quot; for</span>
-<span class="sd"> undirected graphs and &quot;[-&gt;]&quot; for directed graphs.</span>
-<span class="sd"> edge_options : string or dict</span>
-<span class="sd"> The name of the edge attribute on `G` that holds the options for each edge.</span>
-<span class="sd"> If the edge is a self-loop and ``&quot;loop&quot; not in edge_options`` the option</span>
-<span class="sd"> &quot;loop,&quot; is added to the options for the self-loop edge. Hence you can</span>
-<span class="sd"> use &quot;[loop above]&quot; explicitly, but the default is &quot;[loop]&quot;.</span>
-<span class="sd"> Or a dict keyed by edge to a string holding the options for that edge.</span>
-<span class="sd"> edge_label : string or dict</span>
-<span class="sd"> The name of the edge attribute on `G` that holds the edge label (text)</span>
-<span class="sd"> displayed for each edge. If the attribute is &quot;&quot; or not present, no edge</span>
-<span class="sd"> label is drawn.</span>
-<span class="sd"> Or a dict keyed by edge to a string holding the label for that edge.</span>
-<span class="sd"> edge_label_options : string or dict</span>
-<span class="sd"> The name of the edge attribute on `G` that holds the label options for</span>
-<span class="sd"> each edge. For example, &quot;[sloped,above,blue]&quot;. The default is no options.</span>
-<span class="sd"> Or a dict keyed by edge to a string holding the label options for that edge.</span>
-<span class="sd"> caption : string</span>
-<span class="sd"> The caption string for the figure environment</span>
-<span class="sd"> latex_label : string</span>
-<span class="sd"> The latex label used for the figure for easy referral from the main text</span>
-<span class="sd"> sub_captions : list of strings</span>
-<span class="sd"> The sub_caption string for each subfigure in the figure</span>
-<span class="sd"> sub_latex_labels : list of strings</span>
-<span class="sd"> The latex label for each subfigure in the figure</span>
-<span class="sd"> n_rows : int</span>
-<span class="sd"> The number of rows of subfigures to arrange for multiple graphs</span>
-<span class="sd"> as_document : bool</span>
-<span class="sd"> Whether to wrap the latex code in a document envionment for compiling</span>
-<span class="sd"> document_wrapper : formatted text string with variable ``content``.</span>
-<span class="sd"> This text is called to evaluate the content embedded in a document</span>
-<span class="sd"> environment with a preamble setting up the TikZ syntax.</span>
-<span class="sd"> figure_wrapper : formatted text string</span>
-<span class="sd"> This text is evaluated with variables ``content``, ``caption`` and ``label``.</span>
-<span class="sd"> It wraps the content and if a caption is provided, adds the latex code for</span>
-<span class="sd"> that caption, and if a label is provided, adds the latex code for a label.</span>
-<span class="sd"> subfigure_wrapper : formatted text string</span>
-<span class="sd"> This text evaluate variables ``size``, ``content``, ``caption`` and ``label``.</span>
-<span class="sd"> It wraps the content and if a caption is provided, adds the latex code for</span>
-<span class="sd"> that caption, and if a label is provided, adds the latex code for a label.</span>
-<span class="sd"> The size is the vertical size of each row of subfigures as a fraction.</span>
+<span class="sd"> By default, TikZ is used with options: (others are ignored)::</span>
+
+<span class="sd"> pos : string or dict or list</span>
+<span class="sd"> The name of the node attribute on `G` that holds the position of each node.</span>
+<span class="sd"> Positions can be sequences of length 2 with numbers for (x,y) coordinates.</span>
+<span class="sd"> They can also be strings to denote positions in TikZ style, such as (x, y)</span>
+<span class="sd"> or (angle:radius).</span>
+<span class="sd"> If a dict, it should be keyed by node to a position.</span>
+<span class="sd"> If an empty dict, a circular layout is computed by TikZ.</span>
+<span class="sd"> If you are drawing many graphs in subfigures, use a list of position dicts.</span>
+<span class="sd"> tikz_options : string</span>
+<span class="sd"> The tikzpicture options description defining the options for the picture.</span>
+<span class="sd"> Often large scale options like `[scale=2]`.</span>
+<span class="sd"> default_node_options : string</span>
+<span class="sd"> The draw options for a path of nodes. Individual node options override these.</span>
+<span class="sd"> node_options : string or dict</span>
+<span class="sd"> The name of the node attribute on `G` that holds the options for each node.</span>
+<span class="sd"> Or a dict keyed by node to a string holding the options for that node.</span>
+<span class="sd"> node_label : string or dict</span>
+<span class="sd"> The name of the node attribute on `G` that holds the node label (text)</span>
+<span class="sd"> displayed for each node. If the attribute is &quot;&quot; or not present, the node</span>
+<span class="sd"> itself is drawn as a string. LaTeX processing such as ``&quot;$A_1$&quot;`` is allowed.</span>
+<span class="sd"> Or a dict keyed by node to a string holding the label for that node.</span>
+<span class="sd"> default_edge_options : string</span>
+<span class="sd"> The options for the scope drawing all edges. The default is &quot;[-]&quot; for</span>
+<span class="sd"> undirected graphs and &quot;[-&gt;]&quot; for directed graphs.</span>
+<span class="sd"> edge_options : string or dict</span>
+<span class="sd"> The name of the edge attribute on `G` that holds the options for each edge.</span>
+<span class="sd"> If the edge is a self-loop and ``&quot;loop&quot; not in edge_options`` the option</span>
+<span class="sd"> &quot;loop,&quot; is added to the options for the self-loop edge. Hence you can</span>
+<span class="sd"> use &quot;[loop above]&quot; explicitly, but the default is &quot;[loop]&quot;.</span>
+<span class="sd"> Or a dict keyed by edge to a string holding the options for that edge.</span>
+<span class="sd"> edge_label : string or dict</span>
+<span class="sd"> The name of the edge attribute on `G` that holds the edge label (text)</span>
+<span class="sd"> displayed for each edge. If the attribute is &quot;&quot; or not present, no edge</span>
+<span class="sd"> label is drawn.</span>
+<span class="sd"> Or a dict keyed by edge to a string holding the label for that edge.</span>
+<span class="sd"> edge_label_options : string or dict</span>
+<span class="sd"> The name of the edge attribute on `G` that holds the label options for</span>
+<span class="sd"> each edge. For example, &quot;[sloped,above,blue]&quot;. The default is no options.</span>
+<span class="sd"> Or a dict keyed by edge to a string holding the label options for that edge.</span>
+<span class="sd"> caption : string</span>
+<span class="sd"> The caption string for the figure environment</span>
+<span class="sd"> latex_label : string</span>
+<span class="sd"> The latex label used for the figure for easy referral from the main text</span>
+<span class="sd"> sub_captions : list of strings</span>
+<span class="sd"> The sub_caption string for each subfigure in the figure</span>
+<span class="sd"> sub_latex_labels : list of strings</span>
+<span class="sd"> The latex label for each subfigure in the figure</span>
+<span class="sd"> n_rows : int</span>
+<span class="sd"> The number of rows of subfigures to arrange for multiple graphs</span>
+<span class="sd"> as_document : bool</span>
+<span class="sd"> Whether to wrap the latex code in a document envionment for compiling</span>
+<span class="sd"> document_wrapper : formatted text string with variable ``content``.</span>
+<span class="sd"> This text is called to evaluate the content embedded in a document</span>
+<span class="sd"> environment with a preamble setting up the TikZ syntax.</span>
+<span class="sd"> figure_wrapper : formatted text string</span>
+<span class="sd"> This text is evaluated with variables ``content``, ``caption`` and ``label``.</span>
+<span class="sd"> It wraps the content and if a caption is provided, adds the latex code for</span>
+<span class="sd"> that caption, and if a label is provided, adds the latex code for a label.</span>
+<span class="sd"> subfigure_wrapper : formatted text string</span>
+<span class="sd"> This text evaluate variables ``size``, ``content``, ``caption`` and ``label``.</span>
+<span class="sd"> It wraps the content and if a caption is provided, adds the latex code for</span>
+<span class="sd"> that caption, and if a label is provided, adds the latex code for a label.</span>
+<span class="sd"> The size is the vertical size of each row of subfigures as a fraction.</span>
<span class="sd"> See Also</span>
<span class="sd"> ========</span>
@@ -1046,11 +1058,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/drawing/nx_pydot.html b/_modules/networkx/drawing/nx_pydot.html
index 750562a6..94681610 100644
--- a/_modules/networkx/drawing/nx_pydot.html
+++ b/_modules/networkx/drawing/nx_pydot.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.drawing.nx_pydot &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.drawing.nx_pydot &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/drawing/nx_pydot';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/drawing/nx_pydot.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -927,11 +939,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/drawing/nx_pylab.html b/_modules/networkx/drawing/nx_pylab.html
index c7ced280..4b215d4d 100644
--- a/_modules/networkx/drawing/nx_pylab.html
+++ b/_modules/networkx/drawing/nx_pylab.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.drawing.nx_pylab &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.drawing.nx_pylab &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/drawing/nx_pylab';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/drawing/nx_pylab.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -1041,14 +1053,14 @@
<span class="sd"> Label for legend</span>
<span class="sd"> min_source_margin : int (default=0)</span>
-<span class="sd"> The minimum margin (gap) at the begining of the edge at the source.</span>
+<span class="sd"> The minimum margin (gap) at the beginning of the edge at the source.</span>
<span class="sd"> min_target_margin : int (default=0)</span>
<span class="sd"> The minimum margin (gap) at the end of the edge at the target.</span>
<span class="sd"> Returns</span>
<span class="sd"> -------</span>
-<span class="sd"> matplotlib.colections.LineCollection or a list of matplotlib.patches.FancyArrowPatch</span>
+<span class="sd"> matplotlib.collections.LineCollection or a list of matplotlib.patches.FancyArrowPatch</span>
<span class="sd"> If ``arrows=True``, a list of FancyArrowPatches is returned.</span>
<span class="sd"> If ``arrows=False``, a LineCollection is returned.</span>
<span class="sd"> If ``arrows=None`` (the default), then a LineCollection is returned if</span>
@@ -1247,7 +1259,7 @@
<span class="c1"># is 0, e.g. for a single node. In this case, fall back to scaling</span>
<span class="c1"># by the maximum node size</span>
<span class="n">selfloop_ht</span> <span class="o">=</span> <span class="mf">0.005</span> <span class="o">*</span> <span class="n">max_nodesize</span> <span class="k">if</span> <span class="n">h</span> <span class="o">==</span> <span class="mi">0</span> <span class="k">else</span> <span class="n">h</span>
- <span class="c1"># this is called with _screen space_ values so covert back</span>
+ <span class="c1"># this is called with _screen space_ values so convert back</span>
<span class="c1"># to data space</span>
<span class="n">data_loc</span> <span class="o">=</span> <span class="n">ax</span><span class="o">.</span><span class="n">transData</span><span class="o">.</span><span class="n">inverted</span><span class="p">()</span><span class="o">.</span><span class="n">transform</span><span class="p">(</span><span class="n">posA</span><span class="p">)</span>
<span class="n">v_shift</span> <span class="o">=</span> <span class="mf">0.1</span> <span class="o">*</span> <span class="n">selfloop_ht</span>
@@ -1575,7 +1587,7 @@
<span class="sd"> ax : Matplotlib Axes object, optional</span>
<span class="sd"> Draw the graph in the specified Matplotlib axes.</span>
-<span class="sd"> rotate : bool (deafult=True)</span>
+<span class="sd"> rotate : bool (default=True)</span>
<span class="sd"> Rotate edge labels to lie parallel to edges</span>
<span class="sd"> clip_on : bool (default=True)</span>
@@ -1647,7 +1659,7 @@
<span class="n">trans_angle</span> <span class="o">=</span> <span class="mf">0.0</span>
<span class="c1"># use default box of white with white border</span>
<span class="k">if</span> <span class="n">bbox</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
- <span class="n">bbox</span> <span class="o">=</span> <span class="nb">dict</span><span class="p">(</span><span class="n">boxstyle</span><span class="o">=</span><span class="s2">&quot;round&quot;</span><span class="p">,</span> <span class="n">ec</span><span class="o">=</span><span class="p">(</span><span class="mf">1.0</span><span class="p">,</span> <span class="mf">1.0</span><span class="p">,</span> <span class="mf">1.0</span><span class="p">),</span> <span class="n">fc</span><span class="o">=</span><span class="p">(</span><span class="mf">1.0</span><span class="p">,</span> <span class="mf">1.0</span><span class="p">,</span> <span class="mf">1.0</span><span class="p">))</span>
+ <span class="n">bbox</span> <span class="o">=</span> <span class="p">{</span><span class="s2">&quot;boxstyle&quot;</span><span class="p">:</span> <span class="s2">&quot;round&quot;</span><span class="p">,</span> <span class="s2">&quot;ec&quot;</span><span class="p">:</span> <span class="p">(</span><span class="mf">1.0</span><span class="p">,</span> <span class="mf">1.0</span><span class="p">,</span> <span class="mf">1.0</span><span class="p">),</span> <span class="s2">&quot;fc&quot;</span><span class="p">:</span> <span class="p">(</span><span class="mf">1.0</span><span class="p">,</span> <span class="mf">1.0</span><span class="p">,</span> <span class="mf">1.0</span><span class="p">)}</span>
<span class="k">if</span> <span class="ow">not</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">label</span><span class="p">,</span> <span class="nb">str</span><span class="p">):</span>
<span class="n">label</span> <span class="o">=</span> <span class="nb">str</span><span class="p">(</span><span class="n">label</span><span class="p">)</span> <span class="c1"># this makes &quot;1&quot; and 1 labeled the same</span>
@@ -2027,11 +2039,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/exception.html b/_modules/networkx/exception.html
index c665dcb7..db7bde66 100644
--- a/_modules/networkx/exception.html
+++ b/_modules/networkx/exception.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.exception &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.exception &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/exception';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/exception.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../genindex.html" />
<link rel="search" title="Search" href="../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -600,11 +612,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/generators/atlas.html b/_modules/networkx/generators/atlas.html
index 400416be..0851af60 100644
--- a/_modules/networkx/generators/atlas.html
+++ b/_modules/networkx/generators/atlas.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.generators.atlas &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.generators.atlas &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/generators/atlas';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/generators/atlas.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -652,11 +664,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/generators/classic.html b/_modules/networkx/generators/classic.html
index f95736b0..0030fb95 100644
--- a/_modules/networkx/generators/classic.html
+++ b/_modules/networkx/generators/classic.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.generators.classic &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.generators.classic &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/generators/classic';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/generators/classic.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -970,7 +982,7 @@
<span class="sd"> &quot;&quot;&quot;</span>
<span class="k">if</span> <span class="n">create_using</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
<span class="n">G</span> <span class="o">=</span> <span class="n">default</span><span class="p">()</span>
- <span class="k">elif</span> <span class="nb">type</span><span class="p">(</span><span class="n">create_using</span><span class="p">)</span> <span class="ow">is</span> <span class="nb">type</span><span class="p">:</span>
+ <span class="k">elif</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">create_using</span><span class="p">,</span> <span class="nb">type</span><span class="p">):</span>
<span class="n">G</span> <span class="o">=</span> <span class="n">create_using</span><span class="p">()</span>
<span class="k">elif</span> <span class="ow">not</span> <span class="nb">hasattr</span><span class="p">(</span><span class="n">create_using</span><span class="p">,</span> <span class="s2">&quot;adj&quot;</span><span class="p">):</span>
<span class="k">raise</span> <span class="ne">TypeError</span><span class="p">(</span><span class="s2">&quot;create_using is not a valid NetworkX graph type or instance&quot;</span><span class="p">)</span>
@@ -1265,7 +1277,7 @@
<span class="c1"># add nodes with subset attribute</span>
<span class="c1"># while checking that ints are not mixed with iterables</span>
<span class="k">try</span><span class="p">:</span>
- <span class="k">for</span> <span class="p">(</span><span class="n">i</span><span class="p">,</span> <span class="n">subset</span><span class="p">)</span> <span class="ow">in</span> <span class="nb">enumerate</span><span class="p">(</span><span class="n">subsets</span><span class="p">):</span>
+ <span class="k">for</span> <span class="n">i</span><span class="p">,</span> <span class="n">subset</span> <span class="ow">in</span> <span class="nb">enumerate</span><span class="p">(</span><span class="n">subsets</span><span class="p">):</span>
<span class="n">G</span><span class="o">.</span><span class="n">add_nodes_from</span><span class="p">(</span><span class="n">subset</span><span class="p">,</span> <span class="n">subset</span><span class="o">=</span><span class="n">i</span><span class="p">)</span>
<span class="k">except</span> <span class="ne">TypeError</span> <span class="k">as</span> <span class="n">err</span><span class="p">:</span>
<span class="k">raise</span> <span class="n">NetworkXError</span><span class="p">(</span><span class="s2">&quot;Arguments must be all ints or all iterables&quot;</span><span class="p">)</span> <span class="kn">from</span> <span class="nn">err</span>
@@ -1289,11 +1301,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/generators/cographs.html b/_modules/networkx/generators/cographs.html
index 0eec65f1..2abb1131 100644
--- a/_modules/networkx/generators/cographs.html
+++ b/_modules/networkx/generators/cographs.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.generators.cographs &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.generators.cographs &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/generators/cographs';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/generators/cographs.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -488,7 +500,7 @@
<span class="sd"> Cographs or $P_4$-free graphs can be obtained from a single vertex</span>
<span class="sd"> by disjoint union and complementation operations.</span>
-<span class="sd"> This generator starts off from a single vertex and performes disjoint</span>
+<span class="sd"> This generator starts off from a single vertex and performs disjoint</span>
<span class="sd"> union and full join operations on itself.</span>
<span class="sd"> The decision on which operation will take place is random.</span>
@@ -541,11 +553,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/generators/community.html b/_modules/networkx/generators/community.html
index f85e1e9c..c389d56d 100644
--- a/_modules/networkx/generators/community.html
+++ b/_modules/networkx/generators/community.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.generators.community &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.generators.community &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/generators/community';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/generators/community.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -595,7 +607,7 @@
<span class="sd"> k : int</span>
<span class="sd"> Size of cliques</span>
<span class="sd"> p : float</span>
-<span class="sd"> Probabilty of rewiring each edge.</span>
+<span class="sd"> Probability of rewiring each edge.</span>
<span class="sd"> seed : integer, random_state, or None (default)</span>
<span class="sd"> Indicator of random number generation state.</span>
<span class="sd"> See :ref:`Randomness&lt;randomness&gt;`.</span>
@@ -622,7 +634,7 @@
<span class="sd"> &quot;&quot;&quot;</span>
<span class="n">G</span> <span class="o">=</span> <span class="n">nx</span><span class="o">.</span><span class="n">caveman_graph</span><span class="p">(</span><span class="n">l</span><span class="p">,</span> <span class="n">k</span><span class="p">)</span>
<span class="n">nodes</span> <span class="o">=</span> <span class="nb">list</span><span class="p">(</span><span class="n">G</span><span class="p">)</span>
- <span class="k">for</span> <span class="p">(</span><span class="n">u</span><span class="p">,</span> <span class="n">v</span><span class="p">)</span> <span class="ow">in</span> <span class="n">G</span><span class="o">.</span><span class="n">edges</span><span class="p">():</span>
+ <span class="k">for</span> <span class="n">u</span><span class="p">,</span> <span class="n">v</span> <span class="ow">in</span> <span class="n">G</span><span class="o">.</span><span class="n">edges</span><span class="p">():</span>
<span class="k">if</span> <span class="n">seed</span><span class="o">.</span><span class="n">random</span><span class="p">()</span> <span class="o">&lt;</span> <span class="n">p</span><span class="p">:</span> <span class="c1"># rewire the edge</span>
<span class="n">x</span> <span class="o">=</span> <span class="n">seed</span><span class="o">.</span><span class="n">choice</span><span class="p">(</span><span class="n">nodes</span><span class="p">)</span>
<span class="k">if</span> <span class="n">G</span><span class="o">.</span><span class="n">has_edge</span><span class="p">(</span><span class="n">u</span><span class="p">,</span> <span class="n">x</span><span class="p">):</span>
@@ -783,7 +795,7 @@
<span class="sd"> v : float</span>
<span class="sd"> Shape parameter. The variance of cluster size distribution is s/v.</span>
<span class="sd"> p_in : float</span>
-<span class="sd"> Probabilty of intra cluster connection.</span>
+<span class="sd"> Probability of intra cluster connection.</span>
<span class="sd"> p_out : float</span>
<span class="sd"> Probability of inter cluster connection.</span>
<span class="sd"> directed : boolean, optional default=False</span>
@@ -1536,11 +1548,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/generators/degree_seq.html b/_modules/networkx/generators/degree_seq.html
index 7ab8faa5..95f5851b 100644
--- a/_modules/networkx/generators/degree_seq.html
+++ b/_modules/networkx/generators/degree_seq.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.generators.degree_seq &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.generators.degree_seq &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/generators/degree_seq';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/generators/degree_seq.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -1336,11 +1348,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/generators/directed.html b/_modules/networkx/generators/directed.html
index eeb82d95..7ade3dcb 100644
--- a/_modules/networkx/generators/directed.html
+++ b/_modules/networkx/generators/directed.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.generators.directed &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.generators.directed &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/generators/directed';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/generators/directed.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -1005,11 +1017,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/generators/duplication.html b/_modules/networkx/generators/duplication.html
index 870a9578..ce1cc987 100644
--- a/_modules/networkx/generators/duplication.html
+++ b/_modules/networkx/generators/duplication.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.generators.duplication &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.generators.duplication &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/generators/duplication';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/generators/duplication.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -636,11 +648,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/generators/ego.html b/_modules/networkx/generators/ego.html
index df2b7df6..be01bf2c 100644
--- a/_modules/networkx/generators/ego.html
+++ b/_modules/networkx/generators/ego.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.generators.ego &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.generators.ego &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/generators/ego';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/generators/ego.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -540,11 +552,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/generators/expanders.html b/_modules/networkx/generators/expanders.html
index 8b49e567..4ead8a0c 100644
--- a/_modules/networkx/generators/expanders.html
+++ b/_modules/networkx/generators/expanders.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.generators.expanders &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.generators.expanders &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/generators/expanders';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/generators/expanders.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -533,8 +545,8 @@
<span class="n">msg</span> <span class="o">=</span> <span class="s2">&quot;`create_using` must be an undirected multigraph.&quot;</span>
<span class="k">raise</span> <span class="n">nx</span><span class="o">.</span><span class="n">NetworkXError</span><span class="p">(</span><span class="n">msg</span><span class="p">)</span>
- <span class="k">for</span> <span class="p">(</span><span class="n">x</span><span class="p">,</span> <span class="n">y</span><span class="p">)</span> <span class="ow">in</span> <span class="n">itertools</span><span class="o">.</span><span class="n">product</span><span class="p">(</span><span class="nb">range</span><span class="p">(</span><span class="n">n</span><span class="p">),</span> <span class="n">repeat</span><span class="o">=</span><span class="mi">2</span><span class="p">):</span>
- <span class="k">for</span> <span class="p">(</span><span class="n">u</span><span class="p">,</span> <span class="n">v</span><span class="p">)</span> <span class="ow">in</span> <span class="p">(</span>
+ <span class="k">for</span> <span class="n">x</span><span class="p">,</span> <span class="n">y</span> <span class="ow">in</span> <span class="n">itertools</span><span class="o">.</span><span class="n">product</span><span class="p">(</span><span class="nb">range</span><span class="p">(</span><span class="n">n</span><span class="p">),</span> <span class="n">repeat</span><span class="o">=</span><span class="mi">2</span><span class="p">):</span>
+ <span class="k">for</span> <span class="n">u</span><span class="p">,</span> <span class="n">v</span> <span class="ow">in</span> <span class="p">(</span>
<span class="p">((</span><span class="n">x</span> <span class="o">+</span> <span class="mi">2</span> <span class="o">*</span> <span class="n">y</span><span class="p">)</span> <span class="o">%</span> <span class="n">n</span><span class="p">,</span> <span class="n">y</span><span class="p">),</span>
<span class="p">((</span><span class="n">x</span> <span class="o">+</span> <span class="p">(</span><span class="mi">2</span> <span class="o">*</span> <span class="n">y</span> <span class="o">+</span> <span class="mi">1</span><span class="p">))</span> <span class="o">%</span> <span class="n">n</span><span class="p">,</span> <span class="n">y</span><span class="p">),</span>
<span class="p">(</span><span class="n">x</span><span class="p">,</span> <span class="p">(</span><span class="n">y</span> <span class="o">+</span> <span class="mi">2</span> <span class="o">*</span> <span class="n">x</span><span class="p">)</span> <span class="o">%</span> <span class="n">n</span><span class="p">),</span>
@@ -678,11 +690,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/generators/geometric.html b/_modules/networkx/generators/geometric.html
index 69c901d6..cf6615d9 100644
--- a/_modules/networkx/generators/geometric.html
+++ b/_modules/networkx/generators/geometric.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.generators.geometric &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.generators.geometric &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/generators/geometric';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/generators/geometric.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -1261,11 +1273,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/generators/harary_graph.html b/_modules/networkx/generators/harary_graph.html
index d91f2b54..67535ea1 100644
--- a/_modules/networkx/generators/harary_graph.html
+++ b/_modules/networkx/generators/harary_graph.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.generators.harary_graph &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.generators.harary_graph &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/generators/harary_graph';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/generators/harary_graph.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -672,11 +684,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/generators/internet_as_graphs.html b/_modules/networkx/generators/internet_as_graphs.html
index 2e48a8e1..90540815 100644
--- a/_modules/networkx/generators/internet_as_graphs.html
+++ b/_modules/networkx/generators/internet_as_graphs.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.generators.internet_as_graphs &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.generators.internet_as_graphs &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/generators/internet_as_graphs';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/generators/internet_as_graphs.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -735,7 +747,7 @@
<span class="k">def</span> <span class="nf">add_cp_peering_link</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">cp</span><span class="p">,</span> <span class="n">to_kind</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Add a peering link to a content provider (CP) node.</span>
-<span class="sd"> Target node j can be CP or M and it is drawn uniformely among the nodes</span>
+<span class="sd"> Target node j can be CP or M and it is drawn uniformly among the nodes</span>
<span class="sd"> belonging to the same region as cp.</span>
<span class="sd"> Parameters</span>
@@ -839,7 +851,7 @@
<span class="bp">self</span><span class="o">.</span><span class="n">nodes</span> <span class="o">=</span> <span class="p">{</span><span class="s2">&quot;T&quot;</span><span class="p">:</span> <span class="nb">set</span><span class="p">(),</span> <span class="s2">&quot;M&quot;</span><span class="p">:</span> <span class="nb">set</span><span class="p">(),</span> <span class="s2">&quot;CP&quot;</span><span class="p">:</span> <span class="nb">set</span><span class="p">(),</span> <span class="s2">&quot;C&quot;</span><span class="p">:</span> <span class="nb">set</span><span class="p">()}</span>
<span class="bp">self</span><span class="o">.</span><span class="n">t_graph</span><span class="p">()</span>
- <span class="bp">self</span><span class="o">.</span><span class="n">nodes</span><span class="p">[</span><span class="s2">&quot;T&quot;</span><span class="p">]</span> <span class="o">=</span> <span class="nb">set</span><span class="p">(</span><span class="nb">list</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">G</span><span class="o">.</span><span class="n">nodes</span><span class="p">()))</span>
+ <span class="bp">self</span><span class="o">.</span><span class="n">nodes</span><span class="p">[</span><span class="s2">&quot;T&quot;</span><span class="p">]</span> <span class="o">=</span> <span class="nb">set</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">G</span><span class="o">.</span><span class="n">nodes</span><span class="p">())</span>
<span class="n">i</span> <span class="o">=</span> <span class="nb">len</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">nodes</span><span class="p">[</span><span class="s2">&quot;T&quot;</span><span class="p">])</span>
<span class="k">for</span> <span class="n">_</span> <span class="ow">in</span> <span class="nb">range</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">n_m</span><span class="p">):</span>
@@ -915,11 +927,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/generators/intersection.html b/_modules/networkx/generators/intersection.html
index 620aaa6f..b1ca5f8b 100644
--- a/_modules/networkx/generators/intersection.html
+++ b/_modules/networkx/generators/intersection.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.generators.intersection &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.generators.intersection &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/generators/intersection';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/generators/intersection.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -596,11 +608,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/generators/interval_graph.html b/_modules/networkx/generators/interval_graph.html
index 62b7c24f..aad54b4e 100644
--- a/_modules/networkx/generators/interval_graph.html
+++ b/_modules/networkx/generators/interval_graph.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.generators.interval_graph &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.generators.interval_graph &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/generators/interval_graph';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/generators/interval_graph.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -545,11 +557,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/generators/joint_degree_seq.html b/_modules/networkx/generators/joint_degree_seq.html
index d86e6d4a..7ed6a88e 100644
--- a/_modules/networkx/generators/joint_degree_seq.html
+++ b/_modules/networkx/generators/joint_degree_seq.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.generators.joint_degree_seq &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.generators.joint_degree_seq &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/generators/joint_degree_seq';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/generators/joint_degree_seq.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -690,13 +702,11 @@
<span class="c1"># for each pair</span>
<span class="k">for</span> <span class="n">k</span> <span class="ow">in</span> <span class="n">joint_degrees</span><span class="p">:</span>
<span class="k">for</span> <span class="n">l</span> <span class="ow">in</span> <span class="n">joint_degrees</span><span class="p">[</span><span class="n">k</span><span class="p">]:</span>
-
<span class="c1"># n_edges_add is the number of edges to add for the</span>
<span class="c1"># degree pair (k,l)</span>
<span class="n">n_edges_add</span> <span class="o">=</span> <span class="n">joint_degrees</span><span class="p">[</span><span class="n">k</span><span class="p">][</span><span class="n">l</span><span class="p">]</span>
<span class="k">if</span> <span class="p">(</span><span class="n">n_edges_add</span> <span class="o">&gt;</span> <span class="mi">0</span><span class="p">)</span> <span class="ow">and</span> <span class="p">(</span><span class="n">k</span> <span class="o">&gt;=</span> <span class="n">l</span><span class="p">):</span>
-
<span class="c1"># number of nodes with degree k and l</span>
<span class="n">k_size</span> <span class="o">=</span> <span class="n">degree_count</span><span class="p">[</span><span class="n">k</span><span class="p">]</span>
<span class="n">l_size</span> <span class="o">=</span> <span class="n">degree_count</span><span class="p">[</span><span class="n">l</span><span class="p">]</span>
@@ -716,14 +726,12 @@
<span class="n">n_edges_add</span> <span class="o">=</span> <span class="n">joint_degrees</span><span class="p">[</span><span class="n">k</span><span class="p">][</span><span class="n">l</span><span class="p">]</span> <span class="o">//</span> <span class="mi">2</span>
<span class="k">while</span> <span class="n">n_edges_add</span> <span class="o">&gt;</span> <span class="mi">0</span><span class="p">:</span>
-
<span class="c1"># randomly pick nodes v and w that have degrees k and l</span>
<span class="n">v</span> <span class="o">=</span> <span class="n">k_nodes</span><span class="p">[</span><span class="n">seed</span><span class="o">.</span><span class="n">randrange</span><span class="p">(</span><span class="n">k_size</span><span class="p">)]</span>
<span class="n">w</span> <span class="o">=</span> <span class="n">l_nodes</span><span class="p">[</span><span class="n">seed</span><span class="o">.</span><span class="n">randrange</span><span class="p">(</span><span class="n">l_size</span><span class="p">)]</span>
<span class="c1"># if nodes v and w are disconnected then attempt to connect</span>
<span class="k">if</span> <span class="ow">not</span> <span class="n">G</span><span class="o">.</span><span class="n">has_edge</span><span class="p">(</span><span class="n">v</span><span class="p">,</span> <span class="n">w</span><span class="p">)</span> <span class="ow">and</span> <span class="p">(</span><span class="n">v</span> <span class="o">!=</span> <span class="n">w</span><span class="p">):</span>
-
<span class="c1"># if node v has no free stubs then do neighbor switch</span>
<span class="k">if</span> <span class="n">h_node_residual</span><span class="p">[</span><span class="n">v</span><span class="p">]</span> <span class="o">==</span> <span class="mi">0</span><span class="p">:</span>
<span class="n">_neighbor_switch</span><span class="p">(</span><span class="n">G</span><span class="p">,</span> <span class="n">v</span><span class="p">,</span> <span class="n">k_unsat</span><span class="p">,</span> <span class="n">h_node_residual</span><span class="p">)</span>
@@ -814,13 +822,7 @@
<span class="k">if</span> <span class="n">val</span> <span class="o">+</span> <span class="n">forbidden</span><span class="o">.</span><span class="n">get</span><span class="p">((</span><span class="n">k</span><span class="p">,</span> <span class="n">l</span><span class="p">),</span> <span class="mi">0</span><span class="p">)</span> <span class="o">&gt;</span> <span class="n">V</span><span class="p">[(</span><span class="n">k</span><span class="p">,</span> <span class="mi">1</span><span class="p">)]</span> <span class="o">*</span> <span class="n">V</span><span class="p">[(</span><span class="n">l</span><span class="p">,</span> <span class="mi">0</span><span class="p">)]:</span>
<span class="k">return</span> <span class="kc">False</span>
- <span class="k">for</span> <span class="n">s</span> <span class="ow">in</span> <span class="n">S</span><span class="p">:</span>
- <span class="k">if</span> <span class="ow">not</span> <span class="n">S</span><span class="p">[</span><span class="n">s</span><span class="p">]</span> <span class="o">/</span> <span class="n">s</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span> <span class="o">==</span> <span class="n">V</span><span class="p">[</span><span class="n">s</span><span class="p">]:</span> <span class="c1"># condition 2</span>
- <span class="k">return</span> <span class="kc">False</span>
-
- <span class="c1"># if all conditions abive have been satisfied then the input nkk is</span>
- <span class="c1"># realizable as a simple graph.</span>
- <span class="k">return</span> <span class="kc">True</span></div>
+ <span class="k">return</span> <span class="nb">all</span><span class="p">(</span><span class="n">S</span><span class="p">[</span><span class="n">s</span><span class="p">]</span> <span class="o">/</span> <span class="n">s</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span> <span class="o">==</span> <span class="n">V</span><span class="p">[</span><span class="n">s</span><span class="p">]</span> <span class="k">for</span> <span class="n">s</span> <span class="ow">in</span> <span class="n">S</span><span class="p">)</span></div>
<span class="k">def</span> <span class="nf">_directed_neighbor_switch</span><span class="p">(</span>
@@ -1145,11 +1147,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/generators/lattice.html b/_modules/networkx/generators/lattice.html
index 574b0f9d..fb7623c4 100644
--- a/_modules/networkx/generators/lattice.html
+++ b/_modules/networkx/generators/lattice.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.generators.lattice &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.generators.lattice &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/generators/lattice';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/generators/lattice.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -836,11 +848,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/generators/line.html b/_modules/networkx/generators/line.html
index 7d5f4fee..0988dc15 100644
--- a/_modules/networkx/generators/line.html
+++ b/_modules/networkx/generators/line.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.generators.line &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.generators.line &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/generators/line';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/generators/line.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -706,10 +718,10 @@
<span class="sd"> Notes</span>
<span class="sd"> -----</span>
-<span class="sd"> This is an implementation of the Roussopoulos algorithm.</span>
+<span class="sd"> This is an implementation of the Roussopoulos algorithm[1]_.</span>
<span class="sd"> If G consists of multiple components, then the algorithm doesn&#39;t work.</span>
-<span class="sd"> You should invert every component seperately:</span>
+<span class="sd"> You should invert every component separately:</span>
<span class="sd"> &gt;&gt;&gt; K5 = nx.complete_graph(5)</span>
<span class="sd"> &gt;&gt;&gt; P4 = nx.Graph([(&quot;a&quot;, &quot;b&quot;), (&quot;b&quot;, &quot;c&quot;), (&quot;c&quot;, &quot;d&quot;)])</span>
@@ -722,8 +734,9 @@
<span class="sd"> References</span>
<span class="sd"> ----------</span>
-<span class="sd"> * Roussopolous, N, &quot;A max {m, n} algorithm for determining the graph H from</span>
-<span class="sd"> its line graph G&quot;, Information Processing Letters 2, (1973), 108--112.</span>
+<span class="sd"> .. [1] Roussopoulos, N.D. , &quot;A max {m, n} algorithm for determining the graph H from</span>
+<span class="sd"> its line graph G&quot;, Information Processing Letters 2, (1973), 108--112, ISSN 0020-0190,</span>
+<span class="sd"> `DOI link &lt;https://doi.org/10.1016/0020-0190(73)90029-X&gt;`_</span>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="k">if</span> <span class="n">G</span><span class="o">.</span><span class="n">number_of_nodes</span><span class="p">()</span> <span class="o">==</span> <span class="mi">0</span><span class="p">:</span>
@@ -737,7 +750,7 @@
<span class="k">elif</span> <span class="n">G</span><span class="o">.</span><span class="n">number_of_nodes</span><span class="p">()</span> <span class="o">&gt;</span> <span class="mi">1</span> <span class="ow">and</span> <span class="n">G</span><span class="o">.</span><span class="n">number_of_edges</span><span class="p">()</span> <span class="o">==</span> <span class="mi">0</span><span class="p">:</span>
<span class="n">msg</span> <span class="o">=</span> <span class="p">(</span>
<span class="s2">&quot;inverse_line_graph() doesn&#39;t work on an edgeless graph. &quot;</span>
- <span class="s2">&quot;Please use this function on each component seperately.&quot;</span>
+ <span class="s2">&quot;Please use this function on each component separately.&quot;</span>
<span class="p">)</span>
<span class="k">raise</span> <span class="n">nx</span><span class="o">.</span><span class="n">NetworkXError</span><span class="p">(</span><span class="n">msg</span><span class="p">)</span>
@@ -820,10 +833,7 @@
<span class="k">for</span> <span class="n">v</span> <span class="ow">in</span> <span class="n">G</span><span class="p">[</span><span class="n">t</span><span class="p">]:</span>
<span class="k">if</span> <span class="n">v</span> <span class="ow">not</span> <span class="ow">in</span> <span class="n">T</span><span class="p">:</span>
<span class="n">T_neighbors</span><span class="p">[</span><span class="n">v</span><span class="p">]</span> <span class="o">+=</span> <span class="mi">1</span>
- <span class="k">for</span> <span class="n">v</span> <span class="ow">in</span> <span class="n">T_neighbors</span><span class="p">:</span>
- <span class="k">if</span> <span class="n">T_neighbors</span><span class="p">[</span><span class="n">v</span><span class="p">]</span> <span class="ow">in</span> <span class="p">[</span><span class="mi">1</span><span class="p">,</span> <span class="mi">3</span><span class="p">]:</span>
- <span class="k">return</span> <span class="kc">True</span>
- <span class="k">return</span> <span class="kc">False</span>
+ <span class="k">return</span> <span class="nb">any</span><span class="p">(</span><span class="n">T_neighbors</span><span class="p">[</span><span class="n">v</span><span class="p">]</span> <span class="ow">in</span> <span class="p">[</span><span class="mi">1</span><span class="p">,</span> <span class="mi">3</span><span class="p">]</span> <span class="k">for</span> <span class="n">v</span> <span class="ow">in</span> <span class="n">T_neighbors</span><span class="p">)</span>
<span class="k">def</span> <span class="nf">_find_partition</span><span class="p">(</span><span class="n">G</span><span class="p">,</span> <span class="n">starting_cell</span><span class="p">):</span>
@@ -974,11 +984,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/generators/mycielski.html b/_modules/networkx/generators/mycielski.html
index 2adba60d..6d5a29f8 100644
--- a/_modules/networkx/generators/mycielski.html
+++ b/_modules/networkx/generators/mycielski.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.generators.mycielski &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.generators.mycielski &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/generators/mycielski';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/generators/mycielski.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -583,11 +595,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/generators/nonisomorphic_trees.html b/_modules/networkx/generators/nonisomorphic_trees.html
index ad9c6df0..9ad24593 100644
--- a/_modules/networkx/generators/nonisomorphic_trees.html
+++ b/_modules/networkx/generators/nonisomorphic_trees.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.generators.nonisomorphic_trees &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.generators.nonisomorphic_trees &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/generators/nonisomorphic_trees';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/generators/nonisomorphic_trees.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -665,11 +677,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/generators/random_clustered.html b/_modules/networkx/generators/random_clustered.html
index c711813d..2efe8cd9 100644
--- a/_modules/networkx/generators/random_clustered.html
+++ b/_modules/networkx/generators/random_clustered.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.generators.random_clustered &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.generators.random_clustered &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/generators/random_clustered';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/generators/random_clustered.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -591,11 +603,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/generators/random_graphs.html b/_modules/networkx/generators/random_graphs.html
index ca1ddb16..308c5368 100644
--- a/_modules/networkx/generators/random_graphs.html
+++ b/_modules/networkx/generators/random_graphs.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.generators.random_graphs &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.generators.random_graphs &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/generators/random_graphs';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/generators/random_graphs.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -806,7 +818,7 @@
<span class="c1"># for each edge u-v, with probability p, randomly select existing</span>
<span class="c1"># node w and add new edge u-w</span>
<span class="n">e</span> <span class="o">=</span> <span class="nb">list</span><span class="p">(</span><span class="n">G</span><span class="o">.</span><span class="n">edges</span><span class="p">())</span>
- <span class="k">for</span> <span class="p">(</span><span class="n">u</span><span class="p">,</span> <span class="n">v</span><span class="p">)</span> <span class="ow">in</span> <span class="n">e</span><span class="p">:</span>
+ <span class="k">for</span> <span class="n">u</span><span class="p">,</span> <span class="n">v</span> <span class="ow">in</span> <span class="n">e</span><span class="p">:</span>
<span class="k">if</span> <span class="n">seed</span><span class="o">.</span><span class="n">random</span><span class="p">()</span> <span class="o">&lt;</span> <span class="n">p</span><span class="p">:</span>
<span class="n">w</span> <span class="o">=</span> <span class="n">seed</span><span class="o">.</span><span class="n">choice</span><span class="p">(</span><span class="n">nlist</span><span class="p">)</span>
<span class="c1"># no self-loops and reject if edge u-w exists</span>
@@ -950,6 +962,8 @@
<span class="k">def</span> <span class="nf">random_regular_graph</span><span class="p">(</span><span class="n">d</span><span class="p">,</span> <span class="n">n</span><span class="p">,</span> <span class="n">seed</span><span class="o">=</span><span class="kc">None</span><span class="p">):</span>
<span class="w"> </span><span class="sa">r</span><span class="sd">&quot;&quot;&quot;Returns a random $d$-regular graph on $n$ nodes.</span>
+<span class="sd"> A regular graph is a graph where each node has the same number of neighbors.</span>
+
<span class="sd"> The resulting graph has no self-loops or parallel edges.</span>
<span class="sd"> Parameters</span>
@@ -981,7 +995,7 @@
<span class="sd"> .. [1] A. Steger and N. Wormald,</span>
<span class="sd"> Generating random regular graphs quickly,</span>
<span class="sd"> Probability and Computing 8 (1999), 377-396, 1999.</span>
-<span class="sd"> http://citeseer.ist.psu.edu/steger99generating.html</span>
+<span class="sd"> https://doi.org/10.1017/S0963548399003867</span>
<span class="sd"> .. [2] Jeong Han Kim and Van H. Vu,</span>
<span class="sd"> Generating random regular graphs,</span>
@@ -1478,7 +1492,7 @@
<span class="n">neighborhood</span> <span class="o">=</span> <span class="p">[</span>
<span class="n">nbr</span>
<span class="k">for</span> <span class="n">nbr</span> <span class="ow">in</span> <span class="n">G</span><span class="o">.</span><span class="n">neighbors</span><span class="p">(</span><span class="n">target</span><span class="p">)</span>
- <span class="k">if</span> <span class="ow">not</span> <span class="n">G</span><span class="o">.</span><span class="n">has_edge</span><span class="p">(</span><span class="n">source</span><span class="p">,</span> <span class="n">nbr</span><span class="p">)</span> <span class="ow">and</span> <span class="ow">not</span> <span class="n">nbr</span> <span class="o">==</span> <span class="n">source</span>
+ <span class="k">if</span> <span class="ow">not</span> <span class="n">G</span><span class="o">.</span><span class="n">has_edge</span><span class="p">(</span><span class="n">source</span><span class="p">,</span> <span class="n">nbr</span><span class="p">)</span> <span class="ow">and</span> <span class="n">nbr</span> <span class="o">!=</span> <span class="n">source</span>
<span class="p">]</span>
<span class="k">if</span> <span class="n">neighborhood</span><span class="p">:</span> <span class="c1"># if there is a neighbor without a link</span>
<span class="n">nbr</span> <span class="o">=</span> <span class="n">seed</span><span class="o">.</span><span class="n">choice</span><span class="p">(</span><span class="n">neighborhood</span><span class="p">)</span>
@@ -1577,7 +1591,7 @@
<span class="n">intra_edges</span> <span class="o">=</span> <span class="p">[]</span>
<span class="n">nnodes</span> <span class="o">=</span> <span class="mi">0</span>
<span class="c1"># create gnm graphs for each shell</span>
- <span class="k">for</span> <span class="p">(</span><span class="n">n</span><span class="p">,</span> <span class="n">m</span><span class="p">,</span> <span class="n">d</span><span class="p">)</span> <span class="ow">in</span> <span class="n">constructor</span><span class="p">:</span>
+ <span class="k">for</span> <span class="n">n</span><span class="p">,</span> <span class="n">m</span><span class="p">,</span> <span class="n">d</span> <span class="ow">in</span> <span class="n">constructor</span><span class="p">:</span>
<span class="n">inter_edges</span> <span class="o">=</span> <span class="nb">int</span><span class="p">(</span><span class="n">m</span> <span class="o">*</span> <span class="n">d</span><span class="p">)</span>
<span class="n">intra_edges</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">m</span> <span class="o">-</span> <span class="n">inter_edges</span><span class="p">)</span>
<span class="n">g</span> <span class="o">=</span> <span class="n">nx</span><span class="o">.</span><span class="n">convert_node_labels_to_integers</span><span class="p">(</span>
@@ -1791,11 +1805,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/generators/small.html b/_modules/networkx/generators/small.html
index b26088ee..b6f0dfda 100644
--- a/_modules/networkx/generators/small.html
+++ b/_modules/networkx/generators/small.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.generators.small &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.generators.small &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/generators/small';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/generators/small.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -566,7 +578,7 @@
<span class="k">if</span> <span class="n">G</span><span class="o">.</span><span class="n">is_directed</span><span class="p">():</span>
<span class="k">raise</span> <span class="n">NetworkXError</span><span class="p">(</span><span class="s2">&quot;Directed Graph not supported&quot;</span><span class="p">)</span>
<span class="n">G</span><span class="o">.</span><span class="n">name</span> <span class="o">=</span> <span class="s2">&quot;LCF_graph&quot;</span>
- <span class="n">nodes</span> <span class="o">=</span> <span class="nb">sorted</span><span class="p">(</span><span class="nb">list</span><span class="p">(</span><span class="n">G</span><span class="p">))</span>
+ <span class="n">nodes</span> <span class="o">=</span> <span class="nb">sorted</span><span class="p">(</span><span class="n">G</span><span class="p">)</span>
<span class="n">n_extra_edges</span> <span class="o">=</span> <span class="n">repeats</span> <span class="o">*</span> <span class="nb">len</span><span class="p">(</span><span class="n">shift_list</span><span class="p">)</span>
<span class="c1"># edges are added n_extra_edges times</span>
@@ -1430,11 +1442,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/generators/social.html b/_modules/networkx/generators/social.html
index 6238bdba..d4dc05ff 100644
--- a/_modules/networkx/generators/social.html
+++ b/_modules/networkx/generators/social.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.generators.social &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.generators.social &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/generators/social';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/generators/social.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -1017,11 +1029,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/generators/spectral_graph_forge.html b/_modules/networkx/generators/spectral_graph_forge.html
index 554b3749..e0894f9c 100644
--- a/_modules/networkx/generators/spectral_graph_forge.html
+++ b/_modules/networkx/generators/spectral_graph_forge.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.generators.spectral_graph_forge &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.generators.spectral_graph_forge &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/generators/spectral_graph_forge';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/generators/spectral_graph_forge.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -596,11 +608,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/generators/stochastic.html b/_modules/networkx/generators/stochastic.html
index 8b3649d6..5260fe9e 100644
--- a/_modules/networkx/generators/stochastic.html
+++ b/_modules/networkx/generators/stochastic.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.generators.stochastic &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.generators.stochastic &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/generators/stochastic';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/generators/stochastic.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -524,11 +536,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/generators/sudoku.html b/_modules/networkx/generators/sudoku.html
index 53574921..ba224a81 100644
--- a/_modules/networkx/generators/sudoku.html
+++ b/_modules/networkx/generators/sudoku.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.generators.sudoku &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.generators.sudoku &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/generators/sudoku';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/generators/sudoku.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -605,11 +617,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/generators/trees.html b/_modules/networkx/generators/trees.html
index 295a7333..2e4abe25 100644
--- a/_modules/networkx/generators/trees.html
+++ b/_modules/networkx/generators/trees.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.generators.trees &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.generators.trees &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/generators/trees';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/generators/trees.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -786,29 +798,29 @@
<span class="sd"> Examples</span>
<span class="sd"> --------</span>
<span class="sd"> &gt;&gt;&gt; tree = nx.random_tree(n=10, seed=0)</span>
-<span class="sd"> &gt;&gt;&gt; print(nx.forest_str(tree, sources=[0]))</span>
+<span class="sd"> &gt;&gt;&gt; nx.write_network_text(tree, sources=[0])</span>
<span class="sd"> ╙── 0</span>
<span class="sd"> ├── 3</span>
<span class="sd"> └── 4</span>
<span class="sd"> ├── 6</span>
-<span class="sd"> │   ├── 1</span>
-<span class="sd"> │   ├── 2</span>
-<span class="sd"> │   └── 7</span>
-<span class="sd"> │   └── 8</span>
-<span class="sd"> │   └── 5</span>
+<span class="sd"> │ ├── 1</span>
+<span class="sd"> │ ├── 2</span>
+<span class="sd"> │ └── 7</span>
+<span class="sd"> │ └── 8</span>
+<span class="sd"> │ └── 5</span>
<span class="sd"> └── 9</span>
<span class="sd"> &gt;&gt;&gt; tree = nx.random_tree(n=10, seed=0, create_using=nx.DiGraph)</span>
-<span class="sd"> &gt;&gt;&gt; print(nx.forest_str(tree))</span>
+<span class="sd"> &gt;&gt;&gt; nx.write_network_text(tree)</span>
<span class="sd"> ╙── 0</span>
<span class="sd"> ├─╼ 3</span>
<span class="sd"> └─╼ 4</span>
<span class="sd"> ├─╼ 6</span>
-<span class="sd"> │   ├─╼ 1</span>
-<span class="sd"> │   ├─╼ 2</span>
-<span class="sd"> │   └─╼ 7</span>
-<span class="sd"> │   └─╼ 8</span>
-<span class="sd"> │   └─╼ 5</span>
+<span class="sd"> │ ├─╼ 1</span>
+<span class="sd"> │ ├─╼ 2</span>
+<span class="sd"> │ └─╼ 7</span>
+<span class="sd"> │ └─╼ 8</span>
+<span class="sd"> │ └─╼ 5</span>
<span class="sd"> └─╼ 9</span>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="k">if</span> <span class="n">n</span> <span class="o">==</span> <span class="mi">0</span><span class="p">:</span>
@@ -849,11 +861,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/generators/triads.html b/_modules/networkx/generators/triads.html
index 3e461b77..cde4a626 100644
--- a/_modules/networkx/generators/triads.html
+++ b/_modules/networkx/generators/triads.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.generators.triads &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.generators.triads &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/generators/triads';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/generators/triads.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -550,11 +562,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/linalg/algebraicconnectivity.html b/_modules/networkx/linalg/algebraicconnectivity.html
index e377b40f..90c21713 100644
--- a/_modules/networkx/linalg/algebraicconnectivity.html
+++ b/_modules/networkx/linalg/algebraicconnectivity.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.linalg.algebraicconnectivity &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.linalg.algebraicconnectivity &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/linalg/algebraicconnectivity';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/linalg/algebraicconnectivity.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -473,7 +485,12 @@
<span class="n">reverse_cuthill_mckee_ordering</span><span class="p">,</span>
<span class="p">)</span>
-<span class="n">__all__</span> <span class="o">=</span> <span class="p">[</span><span class="s2">&quot;algebraic_connectivity&quot;</span><span class="p">,</span> <span class="s2">&quot;fiedler_vector&quot;</span><span class="p">,</span> <span class="s2">&quot;spectral_ordering&quot;</span><span class="p">]</span>
+<span class="n">__all__</span> <span class="o">=</span> <span class="p">[</span>
+ <span class="s2">&quot;algebraic_connectivity&quot;</span><span class="p">,</span>
+ <span class="s2">&quot;fiedler_vector&quot;</span><span class="p">,</span>
+ <span class="s2">&quot;spectral_ordering&quot;</span><span class="p">,</span>
+ <span class="s2">&quot;spectral_bisection&quot;</span><span class="p">,</span>
+<span class="p">]</span>
<span class="k">class</span> <span class="nc">_PCGSolver</span><span class="p">:</span>
@@ -1048,6 +1065,73 @@
<span class="n">order</span><span class="o">.</span><span class="n">extend</span><span class="p">(</span><span class="n">component</span><span class="p">)</span>
<span class="k">return</span> <span class="n">order</span></div>
+
+
+<span class="k">def</span> <span class="nf">spectral_bisection</span><span class="p">(</span>
+ <span class="n">G</span><span class="p">,</span> <span class="n">weight</span><span class="o">=</span><span class="s2">&quot;weight&quot;</span><span class="p">,</span> <span class="n">normalized</span><span class="o">=</span><span class="kc">False</span><span class="p">,</span> <span class="n">tol</span><span class="o">=</span><span class="mf">1e-8</span><span class="p">,</span> <span class="n">method</span><span class="o">=</span><span class="s2">&quot;tracemin_pcg&quot;</span><span class="p">,</span> <span class="n">seed</span><span class="o">=</span><span class="kc">None</span>
+<span class="p">):</span>
+<span class="w"> </span><span class="sd">&quot;&quot;&quot;Bisect the graph using the Fiedler vector.</span>
+
+<span class="sd"> This method uses the Fiedler vector to bisect a graph.</span>
+<span class="sd"> The partition is defined by the nodes which are associated with</span>
+<span class="sd"> either positive or negative values in the vector.</span>
+
+<span class="sd"> Parameters</span>
+<span class="sd"> ----------</span>
+<span class="sd"> G : NetworkX Graph</span>
+
+<span class="sd"> weight : str, optional (default: weight)</span>
+<span class="sd"> The data key used to determine the weight of each edge. If None, then</span>
+<span class="sd"> each edge has unit weight.</span>
+
+<span class="sd"> normalized : bool, optional (default: False)</span>
+<span class="sd"> Whether the normalized Laplacian matrix is used.</span>
+
+<span class="sd"> tol : float, optional (default: 1e-8)</span>
+<span class="sd"> Tolerance of relative residual in eigenvalue computation.</span>
+
+<span class="sd"> method : string, optional (default: &#39;tracemin_pcg&#39;)</span>
+<span class="sd"> Method of eigenvalue computation. It must be one of the tracemin</span>
+<span class="sd"> options shown below (TraceMIN), &#39;lanczos&#39; (Lanczos iteration)</span>
+<span class="sd"> or &#39;lobpcg&#39; (LOBPCG).</span>
+
+<span class="sd"> The TraceMIN algorithm uses a linear system solver. The following</span>
+<span class="sd"> values allow specifying the solver to be used.</span>
+
+<span class="sd"> =============== ========================================</span>
+<span class="sd"> Value Solver</span>
+<span class="sd"> =============== ========================================</span>
+<span class="sd"> &#39;tracemin_pcg&#39; Preconditioned conjugate gradient method</span>
+<span class="sd"> &#39;tracemin_lu&#39; LU factorization</span>
+<span class="sd"> =============== ========================================</span>
+
+<span class="sd"> seed : integer, random_state, or None (default)</span>
+<span class="sd"> Indicator of random number generation state.</span>
+<span class="sd"> See :ref:`Randomness&lt;randomness&gt;`.</span>
+
+<span class="sd"> Returns</span>
+<span class="sd"> --------</span>
+<span class="sd"> bisection : tuple of sets</span>
+<span class="sd"> Sets with the bisection of nodes</span>
+
+<span class="sd"> Examples</span>
+<span class="sd"> --------</span>
+<span class="sd"> &gt;&gt;&gt; G = nx.barbell_graph(3, 0)</span>
+<span class="sd"> &gt;&gt;&gt; nx.spectral_bisection(G)</span>
+<span class="sd"> ({0, 1, 2}, {3, 4, 5})</span>
+
+<span class="sd"> References</span>
+<span class="sd"> ----------</span>
+<span class="sd"> .. [1] M. E. J Newman &#39;Networks: An Introduction&#39;, pages 364-370</span>
+<span class="sd"> Oxford University Press 2011.</span>
+<span class="sd"> &quot;&quot;&quot;</span>
+ <span class="kn">import</span> <span class="nn">numpy</span> <span class="k">as</span> <span class="nn">np</span>
+
+ <span class="n">v</span> <span class="o">=</span> <span class="n">nx</span><span class="o">.</span><span class="n">fiedler_vector</span><span class="p">(</span><span class="n">G</span><span class="p">,</span> <span class="n">weight</span><span class="p">,</span> <span class="n">normalized</span><span class="p">,</span> <span class="n">tol</span><span class="p">,</span> <span class="n">method</span><span class="p">,</span> <span class="n">seed</span><span class="p">)</span>
+ <span class="n">nodes</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">array</span><span class="p">(</span><span class="nb">list</span><span class="p">(</span><span class="n">G</span><span class="p">))</span>
+ <span class="n">pos_vals</span> <span class="o">=</span> <span class="n">v</span> <span class="o">&gt;=</span> <span class="mi">0</span>
+
+ <span class="k">return</span> <span class="nb">set</span><span class="p">(</span><span class="n">nodes</span><span class="p">[</span><span class="o">~</span><span class="n">pos_vals</span><span class="p">]),</span> <span class="nb">set</span><span class="p">(</span><span class="n">nodes</span><span class="p">[</span><span class="n">pos_vals</span><span class="p">])</span>
</pre></div>
</article>
@@ -1062,11 +1146,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/linalg/attrmatrix.html b/_modules/networkx/linalg/attrmatrix.html
index 83f6faa6..df31e4ac 100644
--- a/_modules/networkx/linalg/attrmatrix.html
+++ b/_modules/networkx/linalg/attrmatrix.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.linalg.attrmatrix &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.linalg.attrmatrix &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/linalg/attrmatrix';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/linalg/attrmatrix.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -937,11 +949,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/linalg/bethehessianmatrix.html b/_modules/networkx/linalg/bethehessianmatrix.html
index 8403f92d..368f034f 100644
--- a/_modules/networkx/linalg/bethehessianmatrix.html
+++ b/_modules/networkx/linalg/bethehessianmatrix.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.linalg.bethehessianmatrix &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.linalg.bethehessianmatrix &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/linalg/bethehessianmatrix';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/linalg/bethehessianmatrix.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -553,11 +565,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/linalg/graphmatrix.html b/_modules/networkx/linalg/graphmatrix.html
index 52a089d7..074f3179 100644
--- a/_modules/networkx/linalg/graphmatrix.html
+++ b/_modules/networkx/linalg/graphmatrix.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.linalg.graphmatrix &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.linalg.graphmatrix &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/linalg/graphmatrix';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/linalg/graphmatrix.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -632,11 +644,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/linalg/laplacianmatrix.html b/_modules/networkx/linalg/laplacianmatrix.html
index e2051e81..7daba5a1 100644
--- a/_modules/networkx/linalg/laplacianmatrix.html
+++ b/_modules/networkx/linalg/laplacianmatrix.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.linalg.laplacianmatrix &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.linalg.laplacianmatrix &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/linalg/laplacianmatrix';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/linalg/laplacianmatrix.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -904,11 +916,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/linalg/modularitymatrix.html b/_modules/networkx/linalg/modularitymatrix.html
index e4ecc2e5..75e173d1 100644
--- a/_modules/networkx/linalg/modularitymatrix.html
+++ b/_modules/networkx/linalg/modularitymatrix.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.linalg.modularitymatrix &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.linalg.modularitymatrix &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/linalg/modularitymatrix';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/linalg/modularitymatrix.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -639,11 +651,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/linalg/spectrum.html b/_modules/networkx/linalg/spectrum.html
index 049aaaf9..c5866b4c 100644
--- a/_modules/networkx/linalg/spectrum.html
+++ b/_modules/networkx/linalg/spectrum.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.linalg.spectrum &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.linalg.spectrum &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/linalg/spectrum';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/linalg/spectrum.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -660,11 +672,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/readwrite/adjlist.html b/_modules/networkx/readwrite/adjlist.html
index 3b97ea74..31fdfd87 100644
--- a/_modules/networkx/readwrite/adjlist.html
+++ b/_modules/networkx/readwrite/adjlist.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.readwrite.adjlist &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.readwrite.adjlist &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/readwrite/adjlist';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/readwrite/adjlist.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -783,11 +795,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/readwrite/edgelist.html b/_modules/networkx/readwrite/edgelist.html
index eaa43342..e68de8ee 100644
--- a/_modules/networkx/readwrite/edgelist.html
+++ b/_modules/networkx/readwrite/edgelist.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.readwrite.edgelist &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.readwrite.edgelist &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/readwrite/edgelist';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/readwrite/edgelist.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -961,11 +973,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/readwrite/gexf.html b/_modules/networkx/readwrite/gexf.html
index 5b64cc5a..d01a3418 100644
--- a/_modules/networkx/readwrite/gexf.html
+++ b/_modules/networkx/readwrite/gexf.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.readwrite.gexf &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.readwrite.gexf &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/readwrite/gexf';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/readwrite/gexf.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -465,7 +477,7 @@
<span class="sd">.. warning::</span>
<span class="sd"> This parser uses the standard xml library present in Python, which is</span>
-<span class="sd"> insecure - see :doc:`library/xml` for additional information.</span>
+<span class="sd"> insecure - see :external+python:mod:`xml` for additional information.</span>
<span class="sd"> Only parse GEFX files you trust.</span>
<span class="sd">GEXF (Graph Exchange XML Format) is a language for describing complex</span>
@@ -640,27 +652,32 @@
<span class="k">class</span> <span class="nc">GEXF</span><span class="p">:</span>
- <span class="n">versions</span> <span class="o">=</span> <span class="p">{}</span>
- <span class="n">d</span> <span class="o">=</span> <span class="p">{</span>
- <span class="s2">&quot;NS_GEXF&quot;</span><span class="p">:</span> <span class="s2">&quot;http://www.gexf.net/1.1draft&quot;</span><span class="p">,</span>
- <span class="s2">&quot;NS_VIZ&quot;</span><span class="p">:</span> <span class="s2">&quot;http://www.gexf.net/1.1draft/viz&quot;</span><span class="p">,</span>
- <span class="s2">&quot;NS_XSI&quot;</span><span class="p">:</span> <span class="s2">&quot;http://www.w3.org/2001/XMLSchema-instance&quot;</span><span class="p">,</span>
- <span class="s2">&quot;SCHEMALOCATION&quot;</span><span class="p">:</span> <span class="s2">&quot; &quot;</span><span class="o">.</span><span class="n">join</span><span class="p">(</span>
- <span class="p">[</span><span class="s2">&quot;http://www.gexf.net/1.1draft&quot;</span><span class="p">,</span> <span class="s2">&quot;http://www.gexf.net/1.1draft/gexf.xsd&quot;</span><span class="p">]</span>
- <span class="p">),</span>
- <span class="s2">&quot;VERSION&quot;</span><span class="p">:</span> <span class="s2">&quot;1.1&quot;</span><span class="p">,</span>
- <span class="p">}</span>
- <span class="n">versions</span><span class="p">[</span><span class="s2">&quot;1.1draft&quot;</span><span class="p">]</span> <span class="o">=</span> <span class="n">d</span>
- <span class="n">d</span> <span class="o">=</span> <span class="p">{</span>
- <span class="s2">&quot;NS_GEXF&quot;</span><span class="p">:</span> <span class="s2">&quot;http://www.gexf.net/1.2draft&quot;</span><span class="p">,</span>
- <span class="s2">&quot;NS_VIZ&quot;</span><span class="p">:</span> <span class="s2">&quot;http://www.gexf.net/1.2draft/viz&quot;</span><span class="p">,</span>
- <span class="s2">&quot;NS_XSI&quot;</span><span class="p">:</span> <span class="s2">&quot;http://www.w3.org/2001/XMLSchema-instance&quot;</span><span class="p">,</span>
- <span class="s2">&quot;SCHEMALOCATION&quot;</span><span class="p">:</span> <span class="s2">&quot; &quot;</span><span class="o">.</span><span class="n">join</span><span class="p">(</span>
- <span class="p">[</span><span class="s2">&quot;http://www.gexf.net/1.2draft&quot;</span><span class="p">,</span> <span class="s2">&quot;http://www.gexf.net/1.2draft/gexf.xsd&quot;</span><span class="p">]</span>
- <span class="p">),</span>
- <span class="s2">&quot;VERSION&quot;</span><span class="p">:</span> <span class="s2">&quot;1.2&quot;</span><span class="p">,</span>
+ <span class="n">versions</span> <span class="o">=</span> <span class="p">{</span>
+ <span class="s2">&quot;1.1draft&quot;</span><span class="p">:</span> <span class="p">{</span>
+ <span class="s2">&quot;NS_GEXF&quot;</span><span class="p">:</span> <span class="s2">&quot;http://www.gexf.net/1.1draft&quot;</span><span class="p">,</span>
+ <span class="s2">&quot;NS_VIZ&quot;</span><span class="p">:</span> <span class="s2">&quot;http://www.gexf.net/1.1draft/viz&quot;</span><span class="p">,</span>
+ <span class="s2">&quot;NS_XSI&quot;</span><span class="p">:</span> <span class="s2">&quot;http://www.w3.org/2001/XMLSchema-instance&quot;</span><span class="p">,</span>
+ <span class="s2">&quot;SCHEMALOCATION&quot;</span><span class="p">:</span> <span class="s2">&quot; &quot;</span><span class="o">.</span><span class="n">join</span><span class="p">(</span>
+ <span class="p">[</span>
+ <span class="s2">&quot;http://www.gexf.net/1.1draft&quot;</span><span class="p">,</span>
+ <span class="s2">&quot;http://www.gexf.net/1.1draft/gexf.xsd&quot;</span><span class="p">,</span>
+ <span class="p">]</span>
+ <span class="p">),</span>
+ <span class="s2">&quot;VERSION&quot;</span><span class="p">:</span> <span class="s2">&quot;1.1&quot;</span><span class="p">,</span>
+ <span class="p">},</span>
+ <span class="s2">&quot;1.2draft&quot;</span><span class="p">:</span> <span class="p">{</span>
+ <span class="s2">&quot;NS_GEXF&quot;</span><span class="p">:</span> <span class="s2">&quot;http://www.gexf.net/1.2draft&quot;</span><span class="p">,</span>
+ <span class="s2">&quot;NS_VIZ&quot;</span><span class="p">:</span> <span class="s2">&quot;http://www.gexf.net/1.2draft/viz&quot;</span><span class="p">,</span>
+ <span class="s2">&quot;NS_XSI&quot;</span><span class="p">:</span> <span class="s2">&quot;http://www.w3.org/2001/XMLSchema-instance&quot;</span><span class="p">,</span>
+ <span class="s2">&quot;SCHEMALOCATION&quot;</span><span class="p">:</span> <span class="s2">&quot; &quot;</span><span class="o">.</span><span class="n">join</span><span class="p">(</span>
+ <span class="p">[</span>
+ <span class="s2">&quot;http://www.gexf.net/1.2draft&quot;</span><span class="p">,</span>
+ <span class="s2">&quot;http://www.gexf.net/1.2draft/gexf.xsd&quot;</span><span class="p">,</span>
+ <span class="p">]</span>
+ <span class="p">),</span>
+ <span class="s2">&quot;VERSION&quot;</span><span class="p">:</span> <span class="s2">&quot;1.2&quot;</span><span class="p">,</span>
+ <span class="p">},</span>
<span class="p">}</span>
- <span class="n">versions</span><span class="p">[</span><span class="s2">&quot;1.2draft&quot;</span><span class="p">]</span> <span class="o">=</span> <span class="n">d</span>
<span class="k">def</span> <span class="nf">construct_types</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
<span class="n">types</span> <span class="o">=</span> <span class="p">[</span>
@@ -1535,11 +1552,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/readwrite/gml.html b/_modules/networkx/readwrite/gml.html
index 673c9714..83ea7c3a 100644
--- a/_modules/networkx/readwrite/gml.html
+++ b/_modules/networkx/readwrite/gml.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.readwrite.gml &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.readwrite.gml &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/readwrite/gml';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/readwrite/gml.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -828,9 +840,9 @@
<span class="k">pass</span>
<span class="c1"># Special handling for empty lists and tuples</span>
<span class="k">if</span> <span class="n">value</span> <span class="o">==</span> <span class="s2">&quot;()&quot;</span><span class="p">:</span>
- <span class="n">value</span> <span class="o">=</span> <span class="nb">tuple</span><span class="p">()</span>
+ <span class="n">value</span> <span class="o">=</span> <span class="p">()</span>
<span class="k">if</span> <span class="n">value</span> <span class="o">==</span> <span class="s2">&quot;[]&quot;</span><span class="p">:</span>
- <span class="n">value</span> <span class="o">=</span> <span class="nb">list</span><span class="p">()</span>
+ <span class="n">value</span> <span class="o">=</span> <span class="p">[]</span>
<span class="n">curr_token</span> <span class="o">=</span> <span class="nb">next</span><span class="p">(</span><span class="n">tokens</span><span class="p">)</span>
<span class="k">elif</span> <span class="n">category</span> <span class="o">==</span> <span class="n">Pattern</span><span class="o">.</span><span class="n">DICT_START</span><span class="p">:</span>
<span class="n">curr_token</span><span class="p">,</span> <span class="n">value</span> <span class="o">=</span> <span class="n">parse_dict</span><span class="p">(</span><span class="n">curr_token</span><span class="p">)</span>
@@ -849,7 +861,7 @@
<span class="k">except</span> <span class="ne">Exception</span><span class="p">:</span>
<span class="n">msg</span> <span class="o">=</span> <span class="p">(</span>
<span class="s2">&quot;an int, float, string, &#39;[&#39; or string&quot;</span>
- <span class="o">+</span> <span class="s2">&quot; convertable ASCII value for node id or label&quot;</span>
+ <span class="o">+</span> <span class="s2">&quot; convertible ASCII value for node id or label&quot;</span>
<span class="p">)</span>
<span class="n">unexpected</span><span class="p">(</span><span class="n">curr_token</span><span class="p">,</span> <span class="n">msg</span><span class="p">)</span>
<span class="c1"># Special handling for nan and infinity. Since the gml language</span>
@@ -1333,11 +1345,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/readwrite/graph6.html b/_modules/networkx/readwrite/graph6.html
index 8c22affc..c7dd9c0f 100644
--- a/_modules/networkx/readwrite/graph6.html
+++ b/_modules/networkx/readwrite/graph6.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.readwrite.graph6 &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.readwrite.graph6 &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/readwrite/graph6';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/readwrite/graph6.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -889,11 +901,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/readwrite/graphml.html b/_modules/networkx/readwrite/graphml.html
index 2d4de0ce..9b50de2d 100644
--- a/_modules/networkx/readwrite/graphml.html
+++ b/_modules/networkx/readwrite/graphml.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.readwrite.graphml &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.readwrite.graphml &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/readwrite/graphml';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/readwrite/graphml.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -470,7 +482,7 @@
<span class="sd">.. warning::</span>
<span class="sd"> This parser uses the standard xml library present in Python, which is</span>
-<span class="sd"> insecure - see :doc:`library/xml` for additional information.</span>
+<span class="sd"> insecure - see :external+python:mod:`xml` for additional information.</span>
<span class="sd"> Only parse GraphML files you trust.</span>
<span class="sd">This implementation does not support mixed graphs (directed and unidirected</span>
@@ -1106,8 +1118,8 @@
<span class="c1"># data that needs to be added to them.</span>
<span class="c1"># We postpone processing in order to do type inference/generalization.</span>
<span class="c1"># See self.attr_type</span>
- <span class="k">for</span> <span class="p">(</span><span class="n">xml_obj</span><span class="p">,</span> <span class="n">data</span><span class="p">)</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">attributes</span><span class="o">.</span><span class="n">items</span><span class="p">():</span>
- <span class="k">for</span> <span class="p">(</span><span class="n">k</span><span class="p">,</span> <span class="n">v</span><span class="p">,</span> <span class="n">scope</span><span class="p">,</span> <span class="n">default</span><span class="p">)</span> <span class="ow">in</span> <span class="n">data</span><span class="p">:</span>
+ <span class="k">for</span> <span class="n">xml_obj</span><span class="p">,</span> <span class="n">data</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">attributes</span><span class="o">.</span><span class="n">items</span><span class="p">():</span>
+ <span class="k">for</span> <span class="n">k</span><span class="p">,</span> <span class="n">v</span><span class="p">,</span> <span class="n">scope</span><span class="p">,</span> <span class="n">default</span> <span class="ow">in</span> <span class="n">data</span><span class="p">:</span>
<span class="n">xml_obj</span><span class="o">.</span><span class="n">append</span><span class="p">(</span>
<span class="bp">self</span><span class="o">.</span><span class="n">add_data</span><span class="p">(</span>
<span class="nb">str</span><span class="p">(</span><span class="n">k</span><span class="p">),</span> <span class="bp">self</span><span class="o">.</span><span class="n">attr_type</span><span class="p">(</span><span class="n">k</span><span class="p">,</span> <span class="n">scope</span><span class="p">,</span> <span class="n">v</span><span class="p">),</span> <span class="nb">str</span><span class="p">(</span><span class="n">v</span><span class="p">),</span> <span class="n">scope</span><span class="p">,</span> <span class="n">default</span>
@@ -1525,11 +1537,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/readwrite/json_graph/adjacency.html b/_modules/networkx/readwrite/json_graph/adjacency.html
index 2a77623f..3b47a770 100644
--- a/_modules/networkx/readwrite/json_graph/adjacency.html
+++ b/_modules/networkx/readwrite/json_graph/adjacency.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.readwrite.json_graph.adjacency &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.readwrite.json_graph.adjacency &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/readwrite/json_graph/adjacency';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/readwrite/json_graph/adjacency.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -467,7 +479,7 @@
<span class="n">__all__</span> <span class="o">=</span> <span class="p">[</span><span class="s2">&quot;adjacency_data&quot;</span><span class="p">,</span> <span class="s2">&quot;adjacency_graph&quot;</span><span class="p">]</span>
-<span class="n">_attrs</span> <span class="o">=</span> <span class="nb">dict</span><span class="p">(</span><span class="nb">id</span><span class="o">=</span><span class="s2">&quot;id&quot;</span><span class="p">,</span> <span class="n">key</span><span class="o">=</span><span class="s2">&quot;key&quot;</span><span class="p">)</span>
+<span class="n">_attrs</span> <span class="o">=</span> <span class="p">{</span><span class="s2">&quot;id&quot;</span><span class="p">:</span> <span class="s2">&quot;id&quot;</span><span class="p">,</span> <span class="s2">&quot;key&quot;</span><span class="p">:</span> <span class="s2">&quot;key&quot;</span><span class="p">}</span>
<div class="viewcode-block" id="adjacency_data"><a class="viewcode-back" href="../../../../reference/readwrite/generated/networkx.readwrite.json_graph.adjacency_data.html#networkx.readwrite.json_graph.adjacency_data">[docs]</a><span class="k">def</span> <span class="nf">adjacency_data</span><span class="p">(</span><span class="n">G</span><span class="p">,</span> <span class="n">attrs</span><span class="o">=</span><span class="n">_attrs</span><span class="p">):</span>
@@ -632,11 +644,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/readwrite/json_graph/cytoscape.html b/_modules/networkx/readwrite/json_graph/cytoscape.html
index aa278968..bd29fa16 100644
--- a/_modules/networkx/readwrite/json_graph/cytoscape.html
+++ b/_modules/networkx/readwrite/json_graph/cytoscape.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.readwrite.json_graph.cytoscape &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.readwrite.json_graph.cytoscape &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/readwrite/json_graph/cytoscape';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/readwrite/json_graph/cytoscape.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -648,11 +660,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/readwrite/json_graph/node_link.html b/_modules/networkx/readwrite/json_graph/node_link.html
index 681057c3..efa19db0 100644
--- a/_modules/networkx/readwrite/json_graph/node_link.html
+++ b/_modules/networkx/readwrite/json_graph/node_link.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.readwrite.json_graph.node_link &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.readwrite.json_graph.node_link &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/readwrite/json_graph/node_link';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/readwrite/json_graph/node_link.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -468,7 +480,13 @@
<span class="n">__all__</span> <span class="o">=</span> <span class="p">[</span><span class="s2">&quot;node_link_data&quot;</span><span class="p">,</span> <span class="s2">&quot;node_link_graph&quot;</span><span class="p">]</span>
-<span class="n">_attrs</span> <span class="o">=</span> <span class="nb">dict</span><span class="p">(</span><span class="n">source</span><span class="o">=</span><span class="s2">&quot;source&quot;</span><span class="p">,</span> <span class="n">target</span><span class="o">=</span><span class="s2">&quot;target&quot;</span><span class="p">,</span> <span class="n">name</span><span class="o">=</span><span class="s2">&quot;id&quot;</span><span class="p">,</span> <span class="n">key</span><span class="o">=</span><span class="s2">&quot;key&quot;</span><span class="p">,</span> <span class="n">link</span><span class="o">=</span><span class="s2">&quot;links&quot;</span><span class="p">)</span>
+<span class="n">_attrs</span> <span class="o">=</span> <span class="p">{</span>
+ <span class="s2">&quot;source&quot;</span><span class="p">:</span> <span class="s2">&quot;source&quot;</span><span class="p">,</span>
+ <span class="s2">&quot;target&quot;</span><span class="p">:</span> <span class="s2">&quot;target&quot;</span><span class="p">,</span>
+ <span class="s2">&quot;name&quot;</span><span class="p">:</span> <span class="s2">&quot;id&quot;</span><span class="p">,</span>
+ <span class="s2">&quot;key&quot;</span><span class="p">:</span> <span class="s2">&quot;key&quot;</span><span class="p">,</span>
+ <span class="s2">&quot;link&quot;</span><span class="p">:</span> <span class="s2">&quot;links&quot;</span><span class="p">,</span>
+<span class="p">}</span>
<span class="k">def</span> <span class="nf">_to_tuple</span><span class="p">(</span><span class="n">x</span><span class="p">):</span>
@@ -808,11 +826,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/readwrite/json_graph/tree.html b/_modules/networkx/readwrite/json_graph/tree.html
index 3f234250..2ca21248 100644
--- a/_modules/networkx/readwrite/json_graph/tree.html
+++ b/_modules/networkx/readwrite/json_graph/tree.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.readwrite.json_graph.tree &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.readwrite.json_graph.tree &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/readwrite/json_graph/tree';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/readwrite/json_graph/tree.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -613,11 +625,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/readwrite/leda.html b/_modules/networkx/readwrite/leda.html
index 9bf80df0..7b19bd58 100644
--- a/_modules/networkx/readwrite/leda.html
+++ b/_modules/networkx/readwrite/leda.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.readwrite.leda &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.readwrite.leda &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/readwrite/leda';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/readwrite/leda.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -534,7 +546,7 @@
<span class="p">[</span>
<span class="n">line</span><span class="o">.</span><span class="n">rstrip</span><span class="p">(</span><span class="s2">&quot;</span><span class="se">\n</span><span class="s2">&quot;</span><span class="p">)</span>
<span class="k">for</span> <span class="n">line</span> <span class="ow">in</span> <span class="n">lines</span>
- <span class="k">if</span> <span class="ow">not</span> <span class="p">(</span><span class="n">line</span><span class="o">.</span><span class="n">startswith</span><span class="p">(</span><span class="s2">&quot;#&quot;</span><span class="p">)</span> <span class="ow">or</span> <span class="n">line</span><span class="o">.</span><span class="n">startswith</span><span class="p">(</span><span class="s2">&quot;</span><span class="se">\n</span><span class="s2">&quot;</span><span class="p">)</span> <span class="ow">or</span> <span class="n">line</span> <span class="o">==</span> <span class="s2">&quot;&quot;</span><span class="p">)</span>
+ <span class="k">if</span> <span class="ow">not</span> <span class="p">(</span><span class="n">line</span><span class="o">.</span><span class="n">startswith</span><span class="p">((</span><span class="s2">&quot;#&quot;</span><span class="p">,</span> <span class="s2">&quot;</span><span class="se">\n</span><span class="s2">&quot;</span><span class="p">))</span> <span class="ow">or</span> <span class="n">line</span> <span class="o">==</span> <span class="s2">&quot;&quot;</span><span class="p">)</span>
<span class="p">]</span>
<span class="p">)</span>
<span class="k">for</span> <span class="n">i</span> <span class="ow">in</span> <span class="nb">range</span><span class="p">(</span><span class="mi">3</span><span class="p">):</span>
@@ -581,11 +593,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/readwrite/multiline_adjlist.html b/_modules/networkx/readwrite/multiline_adjlist.html
index 10e68a3c..281f2204 100644
--- a/_modules/networkx/readwrite/multiline_adjlist.html
+++ b/_modules/networkx/readwrite/multiline_adjlist.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.readwrite.multiline_adjlist &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.readwrite.multiline_adjlist &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/readwrite/multiline_adjlist';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/readwrite/multiline_adjlist.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -866,11 +878,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/readwrite/pajek.html b/_modules/networkx/readwrite/pajek.html
index 81b03f30..32fbd630 100644
--- a/_modules/networkx/readwrite/pajek.html
+++ b/_modules/networkx/readwrite/pajek.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.readwrite.pajek &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.readwrite.pajek &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/readwrite/pajek';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/readwrite/pajek.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -759,11 +771,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/readwrite/sparse6.html b/_modules/networkx/readwrite/sparse6.html
index 586dd651..7a321b86 100644
--- a/_modules/networkx/readwrite/sparse6.html
+++ b/_modules/networkx/readwrite/sparse6.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.readwrite.sparse6 &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.readwrite.sparse6 &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/readwrite/sparse6';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/readwrite/sparse6.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -525,7 +537,7 @@
<span class="n">edges</span> <span class="o">=</span> <span class="nb">sorted</span><span class="p">((</span><span class="nb">max</span><span class="p">(</span><span class="n">u</span><span class="p">,</span> <span class="n">v</span><span class="p">),</span> <span class="nb">min</span><span class="p">(</span><span class="n">u</span><span class="p">,</span> <span class="n">v</span><span class="p">))</span> <span class="k">for</span> <span class="n">u</span><span class="p">,</span> <span class="n">v</span> <span class="ow">in</span> <span class="n">G</span><span class="o">.</span><span class="n">edges</span><span class="p">())</span>
<span class="n">bits</span> <span class="o">=</span> <span class="p">[]</span>
<span class="n">curv</span> <span class="o">=</span> <span class="mi">0</span>
- <span class="k">for</span> <span class="p">(</span><span class="n">v</span><span class="p">,</span> <span class="n">u</span><span class="p">)</span> <span class="ow">in</span> <span class="n">edges</span><span class="p">:</span>
+ <span class="k">for</span> <span class="n">v</span><span class="p">,</span> <span class="n">u</span> <span class="ow">in</span> <span class="n">edges</span><span class="p">:</span>
<span class="k">if</span> <span class="n">v</span> <span class="o">==</span> <span class="n">curv</span><span class="p">:</span> <span class="c1"># current vertex edge</span>
<span class="n">bits</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="mi">0</span><span class="p">)</span>
<span class="n">bits</span><span class="o">.</span><span class="n">extend</span><span class="p">(</span><span class="n">enc</span><span class="p">(</span><span class="n">u</span><span class="p">))</span>
@@ -849,11 +861,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/readwrite/text.html b/_modules/networkx/readwrite/text.html
new file mode 100644
index 00000000..f64b2f9d
--- /dev/null
+++ b/_modules/networkx/readwrite/text.html
@@ -0,0 +1,1116 @@
+
+<!DOCTYPE html>
+
+<html lang="en">
+ <head>
+ <meta charset="utf-8" />
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+ <title>networkx.readwrite.text &#8212; NetworkX 3.1rc1.dev0 documentation</title>
+
+
+
+ <script data-cfasync="false">
+ document.documentElement.dataset.mode = localStorage.getItem("mode") || "light";
+ document.documentElement.dataset.theme = localStorage.getItem("theme") || "light";
+ </script>
+
+ <!-- Loaded before other Sphinx assets -->
+ <link href="../../../_static/styles/theme.css?digest=796348d33e8b1d947c94" rel="stylesheet">
+<link href="../../../_static/styles/bootstrap.css?digest=796348d33e8b1d947c94" rel="stylesheet">
+<link href="../../../_static/styles/pydata-sphinx-theme.css?digest=796348d33e8b1d947c94" rel="stylesheet">
+
+
+ <link href="../../../_static/vendor/fontawesome/6.1.2/css/all.min.css?digest=796348d33e8b1d947c94" rel="stylesheet">
+ <link rel="preload" as="font" type="font/woff2" crossorigin href="../../../_static/vendor/fontawesome/6.1.2/webfonts/fa-solid-900.woff2">
+<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../_static/vendor/fontawesome/6.1.2/webfonts/fa-brands-400.woff2">
+<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../_static/vendor/fontawesome/6.1.2/webfonts/fa-regular-400.woff2">
+
+ <link rel="stylesheet" type="text/css" href="../../../_static/pygments.css" />
+ <link rel="stylesheet" type="text/css" href="../../../_static/custom.css" />
+ <link rel="stylesheet" type="text/css" href="../../../_static/sg_gallery.css" />
+ <link rel="stylesheet" type="text/css" href="../../../_static/sg_gallery-binder.css" />
+ <link rel="stylesheet" type="text/css" href="../../../_static/sg_gallery-dataframe.css" />
+ <link rel="stylesheet" type="text/css" href="../../../_static/sg_gallery-rendered-html.css" />
+
+ <!-- Pre-loaded scripts that we'll load fully later -->
+ <link rel="preload" as="script" href="../../../_static/scripts/bootstrap.js?digest=796348d33e8b1d947c94">
+<link rel="preload" as="script" href="../../../_static/scripts/pydata-sphinx-theme.js?digest=796348d33e8b1d947c94">
+
+ <script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script>
+ <script src="../../../_static/jquery.js"></script>
+ <script src="../../../_static/underscore.js"></script>
+ <script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script>
+ <script src="../../../_static/doctools.js"></script>
+ <script src="../../../_static/sphinx_highlight.js"></script>
+ <script src="../../../_static/copybutton.js"></script>
+ <script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/readwrite/text';</script>
+ <link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/readwrite/text.html" />
+ <link rel="search" type="application/opensearchdescription+xml"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
+ href="../../../_static/opensearch.xml"/>
+ <link rel="index" title="Index" href="../../../genindex.html" />
+ <link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
+ <meta name="docsearch:language" content="en">
+ </head>
+
+
+ <body data-spy="scroll" data-target="#bd-toc-nav" data-offset="180" data-default-mode="light">
+
+
+
+ <a class="skip-link" href="#main-content">Skip to main content</a>
+<div class="container-fluid version-alert devbar">
+ <div class="row no-gutters">
+ <div class="col-12 text-center">
+ This page is documentation for a DEVELOPMENT / PRE-RELEASE version.
+ <a
+ class="btn version-stable font-weight-bold ml-3 my-3 align-baseline"
+ href="https://networkx.org/documentation/stable/"
+ >Switch to stable version</a
+ >
+ </div>
+ </div>
+</div>
+
+
+
+ <input type="checkbox" class="sidebar-toggle" name="__primary" id="__primary">
+ <label class="overlay overlay-primary" for="__primary"></label>
+
+
+ <input type="checkbox" class="sidebar-toggle" name="__secondary" id="__secondary">
+ <label class="overlay overlay-secondary" for="__secondary"></label>
+
+
+ <div class="search-button__wrapper">
+ <div class="search-button__overlay"></div>
+ <div class="search-button__search-container">
+
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
+ </div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
+ </div>
+
+
+ <nav class="bd-header navbar navbar-expand-lg bd-navbar" id="navbar-main"><div class="bd-header__inner bd-page-width">
+ <label class="sidebar-toggle primary-toggle" for="__primary">
+ <span class="fa-solid fa-bars"></span>
+ </label>
+ <div id="navbar-start">
+
+
+
+
+
+<a class="navbar-brand logo" href="../../../index.html">
+
+
+
+
+
+
+
+
+
+
+ <img src="../../../_static/networkx_banner.svg" class="logo__image only-light" alt="Logo image">
+ <img src="../../../_static/networkx_banner.svg" class="logo__image only-dark" alt="Logo image">
+
+
+</a>
+
+ </div>
+
+
+ <div class="col-lg-9 navbar-header-items">
+ <div id="navbar-center" class="mr-auto">
+
+ <div class="navbar-center-item">
+ <nav class="navbar-nav">
+ <p class="sidebar-header-items__title" role="heading" aria-level="1" aria-label="Site Navigation">
+ Site Navigation
+ </p>
+ <ul id="navbar-main-elements" class="navbar-nav">
+
+ <li class="nav-item">
+ <a class="nav-link nav-internal" href="../../../install.html">
+ Install
+ </a>
+ </li>
+
+
+ <li class="nav-item">
+ <a class="nav-link nav-internal" href="../../../tutorial.html">
+ Tutorial
+ </a>
+ </li>
+
+
+ <li class="nav-item">
+ <a class="nav-link nav-internal" href="../../../reference/index.html">
+ Reference
+ </a>
+ </li>
+
+
+ <li class="nav-item">
+ <a class="nav-link nav-internal" href="../../../auto_examples/index.html">
+ Gallery
+ </a>
+ </li>
+
+
+ <li class="nav-item">
+ <a class="nav-link nav-internal" href="../../../developer/index.html">
+ Developer
+ </a>
+ </li>
+
+
+ <li class="nav-item">
+ <a class="nav-link nav-internal" href="../../../release/index.html">
+ Releases
+ </a>
+ </li>
+
+
+ <li class="nav-item">
+ <a class="nav-link nav-external" href="https://networkx.org/nx-guides/">
+ Guides
+ </a>
+ </li>
+
+ </ul>
+</nav>
+ </div>
+
+ </div>
+
+ <div id="navbar-end">
+
+ <div class="navbar-end-item navbar-persistent--container">
+
+<button class="btn btn-sm navbar-btn search-button search-button__button" title="Search" aria-label="Search" data-toggle="tooltip">
+ <i class="fa-solid fa-magnifying-glass"></i>
+</button>
+ </div>
+
+
+ <div class="navbar-end-item">
+ <button class="theme-switch-button btn btn-sm btn-outline-primary navbar-btn rounded-circle" title="light/dark" aria-label="light/dark" data-toggle="tooltip">
+ <span class="theme-switch" data-mode="light"><i class="fa-solid fa-sun"></i></span>
+ <span class="theme-switch" data-mode="dark"><i class="fa-solid fa-moon"></i></span>
+ <span class="theme-switch" data-mode="auto"><i class="fa-solid fa-circle-half-stroke"></i></span>
+</button>
+ </div>
+
+ <div class="navbar-end-item">
+ <ul id="navbar-icon-links" class="navbar-nav" aria-label="Icon Links">
+ <li class="nav-item">
+
+
+
+
+
+
+
+ <a href="https://networkx.org" title="Home Page" class="nav-link" rel="noopener" target="_blank" data-toggle="tooltip"><span><i class="fas fa-home"></i></span>
+ <label class="sr-only">Home Page</label></a>
+ </li>
+ <li class="nav-item">
+
+
+
+
+
+
+
+ <a href="https://github.com/networkx/networkx" title="GitHub" class="nav-link" rel="noopener" target="_blank" data-toggle="tooltip"><span><i class="fab fa-github-square"></i></span>
+ <label class="sr-only">GitHub</label></a>
+ </li>
+ </ul>
+ </div>
+
+ <div class="navbar-end-item">
+ <ul class="navbar-nav">
+ <li class="mr-2 dropdown">
+ <button
+ type="button"
+ class="btn btn-version btn-sm navbar-btn dropdown-toggle"
+ id="dLabelMore"
+ data-toggle="dropdown"
+ >
+ v3.1rc1.dev0
+ <span class="caret"></span>
+ </button>
+ <ul class="dropdown-menu" aria-labelledby="dLabelMore">
+ <li>
+ <a href="https://networkx.org/documentation/latest/index.html"
+ >devel (latest)</a
+ >
+ </li>
+ <li>
+ <a href="https://networkx.org/documentation/stable/index.html"
+ >current (stable)</a
+ >
+ </li>
+ </ul>
+ </li>
+</ul>
+ </div>
+
+ </div>
+ </div>
+
+
+
+
+ <div class="navbar-persistent--mobile">
+<button class="btn btn-sm navbar-btn search-button search-button__button" title="Search" aria-label="Search" data-toggle="tooltip">
+ <i class="fa-solid fa-magnifying-glass"></i>
+</button>
+ </div>
+
+
+
+ <label class="sidebar-toggle secondary-toggle" for="__secondary">
+ <span class="fa-solid fa-outdent"></span>
+ </label>
+
+
+</div>
+ </nav>
+
+
+ <div class="bd-container">
+ <div class="bd-container__inner bd-page-width">
+
+ <div class="bd-sidebar-primary bd-sidebar">
+
+
+ <div class="sidebar-header-items sidebar-primary__section">
+
+
+ <div class="sidebar-header-items__center">
+
+ <div class="navbar-center-item">
+ <nav class="navbar-nav">
+ <p class="sidebar-header-items__title" role="heading" aria-level="1" aria-label="Site Navigation">
+ Site Navigation
+ </p>
+ <ul id="navbar-main-elements" class="navbar-nav">
+
+ <li class="nav-item">
+ <a class="nav-link nav-internal" href="../../../install.html">
+ Install
+ </a>
+ </li>
+
+
+ <li class="nav-item">
+ <a class="nav-link nav-internal" href="../../../tutorial.html">
+ Tutorial
+ </a>
+ </li>
+
+
+ <li class="nav-item">
+ <a class="nav-link nav-internal" href="../../../reference/index.html">
+ Reference
+ </a>
+ </li>
+
+
+ <li class="nav-item">
+ <a class="nav-link nav-internal" href="../../../auto_examples/index.html">
+ Gallery
+ </a>
+ </li>
+
+
+ <li class="nav-item">
+ <a class="nav-link nav-internal" href="../../../developer/index.html">
+ Developer
+ </a>
+ </li>
+
+
+ <li class="nav-item">
+ <a class="nav-link nav-internal" href="../../../release/index.html">
+ Releases
+ </a>
+ </li>
+
+
+ <li class="nav-item">
+ <a class="nav-link nav-external" href="https://networkx.org/nx-guides/">
+ Guides
+ </a>
+ </li>
+
+ </ul>
+</nav>
+ </div>
+
+ </div>
+
+
+
+
+ <div class="sidebar-header-items__end">
+
+ <div class="navbar-end-item">
+ <button class="theme-switch-button btn btn-sm btn-outline-primary navbar-btn rounded-circle" title="light/dark" aria-label="light/dark" data-toggle="tooltip">
+ <span class="theme-switch" data-mode="light"><i class="fa-solid fa-sun"></i></span>
+ <span class="theme-switch" data-mode="dark"><i class="fa-solid fa-moon"></i></span>
+ <span class="theme-switch" data-mode="auto"><i class="fa-solid fa-circle-half-stroke"></i></span>
+</button>
+ </div>
+
+ <div class="navbar-end-item">
+ <ul id="navbar-icon-links" class="navbar-nav" aria-label="Icon Links">
+ <li class="nav-item">
+
+
+
+
+
+
+
+ <a href="https://networkx.org" title="Home Page" class="nav-link" rel="noopener" target="_blank" data-toggle="tooltip"><span><i class="fas fa-home"></i></span>
+ <label class="sr-only">Home Page</label></a>
+ </li>
+ <li class="nav-item">
+
+
+
+
+
+
+
+ <a href="https://github.com/networkx/networkx" title="GitHub" class="nav-link" rel="noopener" target="_blank" data-toggle="tooltip"><span><i class="fab fa-github-square"></i></span>
+ <label class="sr-only">GitHub</label></a>
+ </li>
+ </ul>
+ </div>
+
+ <div class="navbar-end-item">
+ <ul class="navbar-nav">
+ <li class="mr-2 dropdown">
+ <button
+ type="button"
+ class="btn btn-version btn-sm navbar-btn dropdown-toggle"
+ id="dLabelMore"
+ data-toggle="dropdown"
+ >
+ v3.1rc1.dev0
+ <span class="caret"></span>
+ </button>
+ <ul class="dropdown-menu" aria-labelledby="dLabelMore">
+ <li>
+ <a href="https://networkx.org/documentation/latest/index.html"
+ >devel (latest)</a
+ >
+ </li>
+ <li>
+ <a href="https://networkx.org/documentation/stable/index.html"
+ >current (stable)</a
+ >
+ </li>
+ </ul>
+ </li>
+</ul>
+ </div>
+
+ </div>
+
+ </div>
+
+
+ <div class="sidebar-start-items sidebar-primary__section">
+ <div class="sidebar-start-items__item">
+ </div>
+ </div>
+
+
+
+ <div class="sidebar-end-items sidebar-primary__section">
+ <div class="sidebar-end-items__item">
+ </div>
+ </div>
+
+
+ <div id="rtd-footer-container"></div>
+
+ </div>
+ <main id="main-content" class="bd-main">
+
+
+ <div class="bd-content">
+ <div class="bd-article-container">
+
+ <div class="bd-header-article">
+
+ </div>
+
+
+ <article class="bd-article" role="main">
+
+ <h1>Source code for networkx.readwrite.text</h1><div class="highlight"><pre>
+<span></span><span class="sd">&quot;&quot;&quot;</span>
+<span class="sd">Text-based visual representations of graphs</span>
+<span class="sd">&quot;&quot;&quot;</span>
+<span class="kn">import</span> <span class="nn">sys</span>
+<span class="kn">import</span> <span class="nn">warnings</span>
+<span class="kn">from</span> <span class="nn">collections</span> <span class="kn">import</span> <span class="n">defaultdict</span>
+
+<span class="kn">import</span> <span class="nn">networkx</span> <span class="k">as</span> <span class="nn">nx</span>
+<span class="kn">from</span> <span class="nn">networkx.utils</span> <span class="kn">import</span> <span class="n">open_file</span>
+
+<span class="n">__all__</span> <span class="o">=</span> <span class="p">[</span><span class="s2">&quot;forest_str&quot;</span><span class="p">,</span> <span class="s2">&quot;generate_network_text&quot;</span><span class="p">,</span> <span class="s2">&quot;write_network_text&quot;</span><span class="p">]</span>
+
+
+<span class="k">class</span> <span class="nc">_AsciiBaseGlyphs</span><span class="p">:</span>
+ <span class="n">empty</span> <span class="o">=</span> <span class="s2">&quot;+&quot;</span>
+ <span class="n">newtree_last</span> <span class="o">=</span> <span class="s2">&quot;+-- &quot;</span>
+ <span class="n">newtree_mid</span> <span class="o">=</span> <span class="s2">&quot;+-- &quot;</span>
+ <span class="n">endof_forest</span> <span class="o">=</span> <span class="s2">&quot; &quot;</span>
+ <span class="n">within_forest</span> <span class="o">=</span> <span class="s2">&quot;: &quot;</span>
+ <span class="n">within_tree</span> <span class="o">=</span> <span class="s2">&quot;| &quot;</span>
+
+
+<span class="k">class</span> <span class="nc">AsciiDirectedGlyphs</span><span class="p">(</span><span class="n">_AsciiBaseGlyphs</span><span class="p">):</span>
+ <span class="n">last</span> <span class="o">=</span> <span class="s2">&quot;L-&gt; &quot;</span>
+ <span class="n">mid</span> <span class="o">=</span> <span class="s2">&quot;|-&gt; &quot;</span>
+ <span class="n">backedge</span> <span class="o">=</span> <span class="s2">&quot;&lt;-&quot;</span>
+
+
+<span class="k">class</span> <span class="nc">AsciiUndirectedGlyphs</span><span class="p">(</span><span class="n">_AsciiBaseGlyphs</span><span class="p">):</span>
+ <span class="n">last</span> <span class="o">=</span> <span class="s2">&quot;L-- &quot;</span>
+ <span class="n">mid</span> <span class="o">=</span> <span class="s2">&quot;|-- &quot;</span>
+ <span class="n">backedge</span> <span class="o">=</span> <span class="s2">&quot;-&quot;</span>
+
+
+<span class="k">class</span> <span class="nc">_UtfBaseGlyphs</span><span class="p">:</span>
+ <span class="c1"># Notes on available box and arrow characters</span>
+ <span class="c1"># https://en.wikipedia.org/wiki/Box-drawing_character</span>
+ <span class="c1"># https://stackoverflow.com/questions/2701192/triangle-arrow</span>
+ <span class="n">empty</span> <span class="o">=</span> <span class="s2">&quot;╙&quot;</span>
+ <span class="n">newtree_last</span> <span class="o">=</span> <span class="s2">&quot;╙── &quot;</span>
+ <span class="n">newtree_mid</span> <span class="o">=</span> <span class="s2">&quot;╟── &quot;</span>
+ <span class="n">endof_forest</span> <span class="o">=</span> <span class="s2">&quot; &quot;</span>
+ <span class="n">within_forest</span> <span class="o">=</span> <span class="s2">&quot;╎ &quot;</span>
+ <span class="n">within_tree</span> <span class="o">=</span> <span class="s2">&quot;│ &quot;</span>
+
+
+<span class="k">class</span> <span class="nc">UtfDirectedGlyphs</span><span class="p">(</span><span class="n">_UtfBaseGlyphs</span><span class="p">):</span>
+ <span class="n">last</span> <span class="o">=</span> <span class="s2">&quot;└─╼ &quot;</span>
+ <span class="n">mid</span> <span class="o">=</span> <span class="s2">&quot;├─╼ &quot;</span>
+ <span class="n">backedge</span> <span class="o">=</span> <span class="s2">&quot;╾&quot;</span>
+
+
+<span class="k">class</span> <span class="nc">UtfUndirectedGlyphs</span><span class="p">(</span><span class="n">_UtfBaseGlyphs</span><span class="p">):</span>
+ <span class="n">last</span> <span class="o">=</span> <span class="s2">&quot;└── &quot;</span>
+ <span class="n">mid</span> <span class="o">=</span> <span class="s2">&quot;├── &quot;</span>
+ <span class="n">backedge</span> <span class="o">=</span> <span class="s2">&quot;─&quot;</span>
+
+
+<div class="viewcode-block" id="generate_network_text"><a class="viewcode-back" href="../../../reference/readwrite/generated/networkx.readwrite.text.generate_network_text.html#networkx.readwrite.text.generate_network_text">[docs]</a><span class="k">def</span> <span class="nf">generate_network_text</span><span class="p">(</span>
+ <span class="n">graph</span><span class="p">,</span> <span class="n">with_labels</span><span class="o">=</span><span class="kc">True</span><span class="p">,</span> <span class="n">sources</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span> <span class="n">max_depth</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span> <span class="n">ascii_only</span><span class="o">=</span><span class="kc">False</span>
+<span class="p">):</span>
+<span class="w"> </span><span class="sd">&quot;&quot;&quot;Generate lines in the &quot;network text&quot; format</span>
+
+<span class="sd"> This works via a depth-first traversal of the graph and writing a line for</span>
+<span class="sd"> each unique node encountered. Non-tree edges are written to the right of</span>
+<span class="sd"> each node, and connection to a non-tree edge is indicated with an ellipsis.</span>
+<span class="sd"> This representation works best when the input graph is a forest, but any</span>
+<span class="sd"> graph can be represented.</span>
+
+<span class="sd"> This notation is original to networkx, although it is simple enough that it</span>
+<span class="sd"> may be known in existing literature. See #5602 for details. The procedure</span>
+<span class="sd"> is summarized as follows:</span>
+
+<span class="sd"> 1. Given a set of source nodes (which can be specified, or automatically</span>
+<span class="sd"> discovered via finding the (strongly) connected components and choosing one</span>
+<span class="sd"> node with minimum degree from each), we traverse the graph in depth first</span>
+<span class="sd"> order.</span>
+
+<span class="sd"> 2. Each reachable node will be printed exactly once on it&#39;s own line.</span>
+
+<span class="sd"> 3. Edges are indicated in one of three ways:</span>
+
+<span class="sd"> a. a parent &quot;L-style&quot; connection on the upper left. This corresponds to</span>
+<span class="sd"> a traversal in the directed DFS tree.</span>
+
+<span class="sd"> b. a backref &quot;&lt;-style&quot; connection shown directly on the right. For</span>
+<span class="sd"> directed graphs, these are drawn for any incoming edges to a node that</span>
+<span class="sd"> is not a parent edge. For undirected graphs, these are drawn for only</span>
+<span class="sd"> the non-parent edges that have already been represented (The edges that</span>
+<span class="sd"> have not been represented will be handled in the recursive case).</span>
+
+<span class="sd"> c. a child &quot;L-style&quot; connection on the lower right. Drawing of the</span>
+<span class="sd"> children are handled recursively.</span>
+
+<span class="sd"> 4. The children of each node (wrt the directed DFS tree) are drawn</span>
+<span class="sd"> underneath and to the right of it. In the case that a child node has already</span>
+<span class="sd"> been drawn the connection is replaced with an ellipsis (&quot;...&quot;) to indicate</span>
+<span class="sd"> that there is one or more connections represented elsewhere.</span>
+
+<span class="sd"> 5. If a maximum depth is specified, an edge to nodes past this maximum</span>
+<span class="sd"> depth will be represented by an ellipsis.</span>
+
+<span class="sd"> Parameters</span>
+<span class="sd"> ----------</span>
+<span class="sd"> graph : nx.DiGraph | nx.Graph</span>
+<span class="sd"> Graph to represent</span>
+
+<span class="sd"> with_labels : bool | str</span>
+<span class="sd"> If True will use the &quot;label&quot; attribute of a node to display if it</span>
+<span class="sd"> exists otherwise it will use the node value itself. If given as a</span>
+<span class="sd"> string, then that attribte name will be used instead of &quot;label&quot;.</span>
+<span class="sd"> Defaults to True.</span>
+
+<span class="sd"> sources : List</span>
+<span class="sd"> Specifies which nodes to start traversal from. Note: nodes that are not</span>
+<span class="sd"> reachable from one of these sources may not be shown. If unspecified,</span>
+<span class="sd"> the minimal set of nodes needed to reach all others will be used.</span>
+
+<span class="sd"> max_depth : int | None</span>
+<span class="sd"> The maximum depth to traverse before stopping. Defaults to None.</span>
+
+<span class="sd"> ascii_only : Boolean</span>
+<span class="sd"> If True only ASCII characters are used to construct the visualization</span>
+
+<span class="sd"> Yields</span>
+<span class="sd"> ------</span>
+<span class="sd"> str : a line of generated text</span>
+<span class="sd"> &quot;&quot;&quot;</span>
+ <span class="n">is_directed</span> <span class="o">=</span> <span class="n">graph</span><span class="o">.</span><span class="n">is_directed</span><span class="p">()</span>
+
+ <span class="k">if</span> <span class="n">is_directed</span><span class="p">:</span>
+ <span class="n">glyphs</span> <span class="o">=</span> <span class="n">AsciiDirectedGlyphs</span> <span class="k">if</span> <span class="n">ascii_only</span> <span class="k">else</span> <span class="n">UtfDirectedGlyphs</span>
+ <span class="n">succ</span> <span class="o">=</span> <span class="n">graph</span><span class="o">.</span><span class="n">succ</span>
+ <span class="n">pred</span> <span class="o">=</span> <span class="n">graph</span><span class="o">.</span><span class="n">pred</span>
+ <span class="k">else</span><span class="p">:</span>
+ <span class="n">glyphs</span> <span class="o">=</span> <span class="n">AsciiUndirectedGlyphs</span> <span class="k">if</span> <span class="n">ascii_only</span> <span class="k">else</span> <span class="n">UtfUndirectedGlyphs</span>
+ <span class="n">succ</span> <span class="o">=</span> <span class="n">graph</span><span class="o">.</span><span class="n">adj</span>
+ <span class="n">pred</span> <span class="o">=</span> <span class="n">graph</span><span class="o">.</span><span class="n">adj</span>
+
+ <span class="k">if</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">with_labels</span><span class="p">,</span> <span class="nb">str</span><span class="p">):</span>
+ <span class="n">label_attr</span> <span class="o">=</span> <span class="n">with_labels</span>
+ <span class="k">elif</span> <span class="n">with_labels</span><span class="p">:</span>
+ <span class="n">label_attr</span> <span class="o">=</span> <span class="s2">&quot;label&quot;</span>
+ <span class="k">else</span><span class="p">:</span>
+ <span class="n">label_attr</span> <span class="o">=</span> <span class="kc">None</span>
+
+ <span class="k">if</span> <span class="n">max_depth</span> <span class="o">==</span> <span class="mi">0</span><span class="p">:</span>
+ <span class="k">yield</span> <span class="n">glyphs</span><span class="o">.</span><span class="n">empty</span> <span class="o">+</span> <span class="s2">&quot; ...&quot;</span>
+ <span class="k">elif</span> <span class="nb">len</span><span class="p">(</span><span class="n">graph</span><span class="o">.</span><span class="n">nodes</span><span class="p">)</span> <span class="o">==</span> <span class="mi">0</span><span class="p">:</span>
+ <span class="k">yield</span> <span class="n">glyphs</span><span class="o">.</span><span class="n">empty</span>
+ <span class="k">else</span><span class="p">:</span>
+ <span class="c1"># If the nodes to traverse are unspecified, find the minimal set of</span>
+ <span class="c1"># nodes that will reach the entire graph</span>
+ <span class="k">if</span> <span class="n">sources</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
+ <span class="n">sources</span> <span class="o">=</span> <span class="n">_find_sources</span><span class="p">(</span><span class="n">graph</span><span class="p">)</span>
+
+ <span class="c1"># Populate the stack with each:</span>
+ <span class="c1"># 1. parent node in the DFS tree (or None for root nodes),</span>
+ <span class="c1"># 2. the current node in the DFS tree</span>
+ <span class="c1"># 2. a list of indentations indicating depth</span>
+ <span class="c1"># 3. a flag indicating if the node is the final one to be written.</span>
+ <span class="c1"># Reverse the stack so sources are popped in the correct order.</span>
+ <span class="n">last_idx</span> <span class="o">=</span> <span class="nb">len</span><span class="p">(</span><span class="n">sources</span><span class="p">)</span> <span class="o">-</span> <span class="mi">1</span>
+ <span class="n">stack</span> <span class="o">=</span> <span class="p">[</span>
+ <span class="p">(</span><span class="kc">None</span><span class="p">,</span> <span class="n">node</span><span class="p">,</span> <span class="p">[],</span> <span class="p">(</span><span class="n">idx</span> <span class="o">==</span> <span class="n">last_idx</span><span class="p">))</span> <span class="k">for</span> <span class="n">idx</span><span class="p">,</span> <span class="n">node</span> <span class="ow">in</span> <span class="nb">enumerate</span><span class="p">(</span><span class="n">sources</span><span class="p">)</span>
+ <span class="p">][::</span><span class="o">-</span><span class="mi">1</span><span class="p">]</span>
+
+ <span class="n">num_skipped_children</span> <span class="o">=</span> <span class="n">defaultdict</span><span class="p">(</span><span class="k">lambda</span><span class="p">:</span> <span class="mi">0</span><span class="p">)</span>
+ <span class="n">seen_nodes</span> <span class="o">=</span> <span class="nb">set</span><span class="p">()</span>
+ <span class="k">while</span> <span class="n">stack</span><span class="p">:</span>
+ <span class="n">parent</span><span class="p">,</span> <span class="n">node</span><span class="p">,</span> <span class="n">indents</span><span class="p">,</span> <span class="n">this_islast</span> <span class="o">=</span> <span class="n">stack</span><span class="o">.</span><span class="n">pop</span><span class="p">()</span>
+
+ <span class="k">if</span> <span class="n">node</span> <span class="ow">is</span> <span class="ow">not</span> <span class="bp">Ellipsis</span><span class="p">:</span>
+ <span class="n">skip</span> <span class="o">=</span> <span class="n">node</span> <span class="ow">in</span> <span class="n">seen_nodes</span>
+ <span class="k">if</span> <span class="n">skip</span><span class="p">:</span>
+ <span class="c1"># Mark that we skipped a parent&#39;s child</span>
+ <span class="n">num_skipped_children</span><span class="p">[</span><span class="n">parent</span><span class="p">]</span> <span class="o">+=</span> <span class="mi">1</span>
+
+ <span class="k">if</span> <span class="n">this_islast</span><span class="p">:</span>
+ <span class="c1"># If we reached the last child of a parent, and we skipped</span>
+ <span class="c1"># any of that parents children, then we should emit an</span>
+ <span class="c1"># ellipsis at the end after this.</span>
+ <span class="k">if</span> <span class="n">num_skipped_children</span><span class="p">[</span><span class="n">parent</span><span class="p">]</span> <span class="ow">and</span> <span class="n">parent</span> <span class="ow">is</span> <span class="ow">not</span> <span class="kc">None</span><span class="p">:</span>
+ <span class="c1"># Append the ellipsis to be emitted last</span>
+ <span class="n">next_islast</span> <span class="o">=</span> <span class="kc">True</span>
+ <span class="n">try_frame</span> <span class="o">=</span> <span class="p">(</span><span class="n">node</span><span class="p">,</span> <span class="bp">Ellipsis</span><span class="p">,</span> <span class="n">indents</span><span class="p">,</span> <span class="n">next_islast</span><span class="p">)</span>
+ <span class="n">stack</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">try_frame</span><span class="p">)</span>
+
+ <span class="c1"># Redo this frame, but not as a last object</span>
+ <span class="n">next_islast</span> <span class="o">=</span> <span class="kc">False</span>
+ <span class="n">try_frame</span> <span class="o">=</span> <span class="p">(</span><span class="n">parent</span><span class="p">,</span> <span class="n">node</span><span class="p">,</span> <span class="n">indents</span><span class="p">,</span> <span class="n">next_islast</span><span class="p">)</span>
+ <span class="n">stack</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">try_frame</span><span class="p">)</span>
+ <span class="k">continue</span>
+
+ <span class="k">if</span> <span class="n">skip</span><span class="p">:</span>
+ <span class="k">continue</span>
+ <span class="n">seen_nodes</span><span class="o">.</span><span class="n">add</span><span class="p">(</span><span class="n">node</span><span class="p">)</span>
+
+ <span class="k">if</span> <span class="ow">not</span> <span class="n">indents</span><span class="p">:</span>
+ <span class="c1"># Top level items (i.e. trees in the forest) get different</span>
+ <span class="c1"># glyphs to indicate they are not actually connected</span>
+ <span class="k">if</span> <span class="n">this_islast</span><span class="p">:</span>
+ <span class="n">this_prefix</span> <span class="o">=</span> <span class="n">indents</span> <span class="o">+</span> <span class="p">[</span><span class="n">glyphs</span><span class="o">.</span><span class="n">newtree_last</span><span class="p">]</span>
+ <span class="n">next_prefix</span> <span class="o">=</span> <span class="n">indents</span> <span class="o">+</span> <span class="p">[</span><span class="n">glyphs</span><span class="o">.</span><span class="n">endof_forest</span><span class="p">]</span>
+ <span class="k">else</span><span class="p">:</span>
+ <span class="n">this_prefix</span> <span class="o">=</span> <span class="n">indents</span> <span class="o">+</span> <span class="p">[</span><span class="n">glyphs</span><span class="o">.</span><span class="n">newtree_mid</span><span class="p">]</span>
+ <span class="n">next_prefix</span> <span class="o">=</span> <span class="n">indents</span> <span class="o">+</span> <span class="p">[</span><span class="n">glyphs</span><span class="o">.</span><span class="n">within_forest</span><span class="p">]</span>
+
+ <span class="k">else</span><span class="p">:</span>
+ <span class="c1"># For individual tree edges distinguish between directed and</span>
+ <span class="c1"># undirected cases</span>
+ <span class="k">if</span> <span class="n">this_islast</span><span class="p">:</span>
+ <span class="n">this_prefix</span> <span class="o">=</span> <span class="n">indents</span> <span class="o">+</span> <span class="p">[</span><span class="n">glyphs</span><span class="o">.</span><span class="n">last</span><span class="p">]</span>
+ <span class="n">next_prefix</span> <span class="o">=</span> <span class="n">indents</span> <span class="o">+</span> <span class="p">[</span><span class="n">glyphs</span><span class="o">.</span><span class="n">endof_forest</span><span class="p">]</span>
+ <span class="k">else</span><span class="p">:</span>
+ <span class="n">this_prefix</span> <span class="o">=</span> <span class="n">indents</span> <span class="o">+</span> <span class="p">[</span><span class="n">glyphs</span><span class="o">.</span><span class="n">mid</span><span class="p">]</span>
+ <span class="n">next_prefix</span> <span class="o">=</span> <span class="n">indents</span> <span class="o">+</span> <span class="p">[</span><span class="n">glyphs</span><span class="o">.</span><span class="n">within_tree</span><span class="p">]</span>
+
+ <span class="k">if</span> <span class="n">node</span> <span class="ow">is</span> <span class="bp">Ellipsis</span><span class="p">:</span>
+ <span class="n">label</span> <span class="o">=</span> <span class="s2">&quot; ...&quot;</span>
+ <span class="n">suffix</span> <span class="o">=</span> <span class="s2">&quot;&quot;</span>
+ <span class="n">children</span> <span class="o">=</span> <span class="p">[]</span>
+ <span class="k">else</span><span class="p">:</span>
+ <span class="k">if</span> <span class="n">label_attr</span> <span class="ow">is</span> <span class="ow">not</span> <span class="kc">None</span><span class="p">:</span>
+ <span class="n">label</span> <span class="o">=</span> <span class="nb">str</span><span class="p">(</span><span class="n">graph</span><span class="o">.</span><span class="n">nodes</span><span class="p">[</span><span class="n">node</span><span class="p">]</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="n">label_attr</span><span class="p">,</span> <span class="n">node</span><span class="p">))</span>
+ <span class="k">else</span><span class="p">:</span>
+ <span class="n">label</span> <span class="o">=</span> <span class="nb">str</span><span class="p">(</span><span class="n">node</span><span class="p">)</span>
+
+ <span class="c1"># Determine:</span>
+ <span class="c1"># (1) children to traverse into after showing this node.</span>
+ <span class="c1"># (2) parents to immediately show to the right of this node.</span>
+ <span class="k">if</span> <span class="n">is_directed</span><span class="p">:</span>
+ <span class="c1"># In the directed case we must show every successor node</span>
+ <span class="c1"># note: it may be skipped later, but we don&#39;t have that</span>
+ <span class="c1"># information here.</span>
+ <span class="n">children</span> <span class="o">=</span> <span class="nb">list</span><span class="p">(</span><span class="n">succ</span><span class="p">[</span><span class="n">node</span><span class="p">])</span>
+ <span class="c1"># In the directed case we must show every predecessor</span>
+ <span class="c1"># except for parent we directly traversed from.</span>
+ <span class="n">handled_parents</span> <span class="o">=</span> <span class="p">{</span><span class="n">parent</span><span class="p">}</span>
+ <span class="k">else</span><span class="p">:</span>
+ <span class="c1"># Showing only the unseen children results in a more</span>
+ <span class="c1"># concise representation for the undirected case.</span>
+ <span class="n">children</span> <span class="o">=</span> <span class="p">[</span>
+ <span class="n">child</span> <span class="k">for</span> <span class="n">child</span> <span class="ow">in</span> <span class="n">succ</span><span class="p">[</span><span class="n">node</span><span class="p">]</span> <span class="k">if</span> <span class="n">child</span> <span class="ow">not</span> <span class="ow">in</span> <span class="n">seen_nodes</span>
+ <span class="p">]</span>
+
+ <span class="c1"># In the undirected case, parents are also children, so we</span>
+ <span class="c1"># only need to immediately show the ones we can no longer</span>
+ <span class="c1"># traverse</span>
+ <span class="n">handled_parents</span> <span class="o">=</span> <span class="p">{</span><span class="o">*</span><span class="n">children</span><span class="p">,</span> <span class="n">parent</span><span class="p">}</span>
+
+ <span class="k">if</span> <span class="n">max_depth</span> <span class="ow">is</span> <span class="ow">not</span> <span class="kc">None</span> <span class="ow">and</span> <span class="nb">len</span><span class="p">(</span><span class="n">indents</span><span class="p">)</span> <span class="o">==</span> <span class="n">max_depth</span> <span class="o">-</span> <span class="mi">1</span><span class="p">:</span>
+ <span class="c1"># Use ellipsis to indicate we have reached maximum depth</span>
+ <span class="k">if</span> <span class="n">children</span><span class="p">:</span>
+ <span class="n">children</span> <span class="o">=</span> <span class="p">[</span><span class="bp">Ellipsis</span><span class="p">]</span>
+ <span class="n">handled_parents</span> <span class="o">=</span> <span class="p">{</span><span class="n">parent</span><span class="p">}</span>
+
+ <span class="c1"># The other parents are other predecessors of this node that</span>
+ <span class="c1"># are not handled elsewhere.</span>
+ <span class="n">other_parents</span> <span class="o">=</span> <span class="p">[</span><span class="n">p</span> <span class="k">for</span> <span class="n">p</span> <span class="ow">in</span> <span class="n">pred</span><span class="p">[</span><span class="n">node</span><span class="p">]</span> <span class="k">if</span> <span class="n">p</span> <span class="ow">not</span> <span class="ow">in</span> <span class="n">handled_parents</span><span class="p">]</span>
+ <span class="k">if</span> <span class="n">other_parents</span><span class="p">:</span>
+ <span class="k">if</span> <span class="n">label_attr</span> <span class="ow">is</span> <span class="ow">not</span> <span class="kc">None</span><span class="p">:</span>
+ <span class="n">other_parents_labels</span> <span class="o">=</span> <span class="s2">&quot;, &quot;</span><span class="o">.</span><span class="n">join</span><span class="p">(</span>
+ <span class="p">[</span>
+ <span class="nb">str</span><span class="p">(</span><span class="n">graph</span><span class="o">.</span><span class="n">nodes</span><span class="p">[</span><span class="n">p</span><span class="p">]</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="n">label_attr</span><span class="p">,</span> <span class="n">p</span><span class="p">))</span>
+ <span class="k">for</span> <span class="n">p</span> <span class="ow">in</span> <span class="n">other_parents</span>
+ <span class="p">]</span>
+ <span class="p">)</span>
+ <span class="k">else</span><span class="p">:</span>
+ <span class="n">other_parents_labels</span> <span class="o">=</span> <span class="s2">&quot;, &quot;</span><span class="o">.</span><span class="n">join</span><span class="p">(</span>
+ <span class="p">[</span><span class="nb">str</span><span class="p">(</span><span class="n">p</span><span class="p">)</span> <span class="k">for</span> <span class="n">p</span> <span class="ow">in</span> <span class="n">other_parents</span><span class="p">]</span>
+ <span class="p">)</span>
+ <span class="n">suffix</span> <span class="o">=</span> <span class="s2">&quot; &quot;</span><span class="o">.</span><span class="n">join</span><span class="p">([</span><span class="s2">&quot;&quot;</span><span class="p">,</span> <span class="n">glyphs</span><span class="o">.</span><span class="n">backedge</span><span class="p">,</span> <span class="n">other_parents_labels</span><span class="p">])</span>
+ <span class="k">else</span><span class="p">:</span>
+ <span class="n">suffix</span> <span class="o">=</span> <span class="s2">&quot;&quot;</span>
+
+ <span class="c1"># Emit the line for this node, this will be called for each node</span>
+ <span class="c1"># exactly once.</span>
+ <span class="k">yield</span> <span class="s2">&quot;&quot;</span><span class="o">.</span><span class="n">join</span><span class="p">(</span><span class="n">this_prefix</span> <span class="o">+</span> <span class="p">[</span><span class="n">label</span><span class="p">,</span> <span class="n">suffix</span><span class="p">])</span>
+
+ <span class="c1"># Push children on the stack in reverse order so they are popped in</span>
+ <span class="c1"># the original order.</span>
+ <span class="k">for</span> <span class="n">idx</span><span class="p">,</span> <span class="n">child</span> <span class="ow">in</span> <span class="nb">enumerate</span><span class="p">(</span><span class="n">children</span><span class="p">[::</span><span class="o">-</span><span class="mi">1</span><span class="p">]):</span>
+ <span class="n">next_islast</span> <span class="o">=</span> <span class="n">idx</span> <span class="o">==</span> <span class="mi">0</span>
+ <span class="n">try_frame</span> <span class="o">=</span> <span class="p">(</span><span class="n">node</span><span class="p">,</span> <span class="n">child</span><span class="p">,</span> <span class="n">next_prefix</span><span class="p">,</span> <span class="n">next_islast</span><span class="p">)</span>
+ <span class="n">stack</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">try_frame</span><span class="p">)</span></div>
+
+
+<div class="viewcode-block" id="write_network_text"><a class="viewcode-back" href="../../../reference/readwrite/generated/networkx.readwrite.text.write_network_text.html#networkx.readwrite.text.write_network_text">[docs]</a><span class="nd">@open_file</span><span class="p">(</span><span class="mi">1</span><span class="p">,</span> <span class="s2">&quot;w&quot;</span><span class="p">)</span>
+<span class="k">def</span> <span class="nf">write_network_text</span><span class="p">(</span>
+ <span class="n">graph</span><span class="p">,</span>
+ <span class="n">path</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span>
+ <span class="n">with_labels</span><span class="o">=</span><span class="kc">True</span><span class="p">,</span>
+ <span class="n">sources</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span>
+ <span class="n">max_depth</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span>
+ <span class="n">ascii_only</span><span class="o">=</span><span class="kc">False</span><span class="p">,</span>
+ <span class="n">end</span><span class="o">=</span><span class="s2">&quot;</span><span class="se">\n</span><span class="s2">&quot;</span><span class="p">,</span>
+<span class="p">):</span>
+<span class="w"> </span><span class="sd">&quot;&quot;&quot;Creates a nice text representation of a graph</span>
+
+<span class="sd"> This works via a depth-first traversal of the graph and writing a line for</span>
+<span class="sd"> each unique node encountered. Non-tree edges are written to the right of</span>
+<span class="sd"> each node, and connection to a non-tree edge is indicated with an ellipsis.</span>
+<span class="sd"> This representation works best when the input graph is a forest, but any</span>
+<span class="sd"> graph can be represented.</span>
+
+<span class="sd"> Parameters</span>
+<span class="sd"> ----------</span>
+<span class="sd"> graph : nx.DiGraph | nx.Graph</span>
+<span class="sd"> Graph to represent</span>
+
+<span class="sd"> path : string or file or callable or None</span>
+<span class="sd"> Filename or file handle for data output.</span>
+<span class="sd"> if a function, then it will be called for each generated line.</span>
+<span class="sd"> if None, this will default to &quot;sys.stdout.write&quot;</span>
+
+<span class="sd"> with_labels : bool | str</span>
+<span class="sd"> If True will use the &quot;label&quot; attribute of a node to display if it</span>
+<span class="sd"> exists otherwise it will use the node value itself. If given as a</span>
+<span class="sd"> string, then that attribte name will be used instead of &quot;label&quot;.</span>
+<span class="sd"> Defaults to True.</span>
+
+<span class="sd"> sources : List</span>
+<span class="sd"> Specifies which nodes to start traversal from. Note: nodes that are not</span>
+<span class="sd"> reachable from one of these sources may not be shown. If unspecified,</span>
+<span class="sd"> the minimal set of nodes needed to reach all others will be used.</span>
+
+<span class="sd"> max_depth : int | None</span>
+<span class="sd"> The maximum depth to traverse before stopping. Defaults to None.</span>
+
+<span class="sd"> ascii_only : Boolean</span>
+<span class="sd"> If True only ASCII characters are used to construct the visualization</span>
+
+<span class="sd"> end : string</span>
+<span class="sd"> The line ending characater</span>
+
+<span class="sd"> Examples</span>
+<span class="sd"> --------</span>
+<span class="sd"> &gt;&gt;&gt; graph = nx.balanced_tree(r=2, h=2, create_using=nx.DiGraph)</span>
+<span class="sd"> &gt;&gt;&gt; nx.write_network_text(graph)</span>
+<span class="sd"> ╙── 0</span>
+<span class="sd"> ├─╼ 1</span>
+<span class="sd"> │ ├─╼ 3</span>
+<span class="sd"> │ └─╼ 4</span>
+<span class="sd"> └─╼ 2</span>
+<span class="sd"> ├─╼ 5</span>
+<span class="sd"> └─╼ 6</span>
+
+<span class="sd"> &gt;&gt;&gt; # A near tree with one non-tree edge</span>
+<span class="sd"> &gt;&gt;&gt; graph.add_edge(5, 1)</span>
+<span class="sd"> &gt;&gt;&gt; nx.write_network_text(graph)</span>
+<span class="sd"> ╙── 0</span>
+<span class="sd"> ├─╼ 1 ╾ 5</span>
+<span class="sd"> │ ├─╼ 3</span>
+<span class="sd"> │ └─╼ 4</span>
+<span class="sd"> └─╼ 2</span>
+<span class="sd"> ├─╼ 5</span>
+<span class="sd"> │ └─╼ ...</span>
+<span class="sd"> └─╼ 6</span>
+
+<span class="sd"> &gt;&gt;&gt; graph = nx.cycle_graph(5)</span>
+<span class="sd"> &gt;&gt;&gt; nx.write_network_text(graph)</span>
+<span class="sd"> ╙── 0</span>
+<span class="sd"> ├── 1</span>
+<span class="sd"> │ └── 2</span>
+<span class="sd"> │ └── 3</span>
+<span class="sd"> │ └── 4 ─ 0</span>
+<span class="sd"> └── ...</span>
+
+<span class="sd"> &gt;&gt;&gt; graph = nx.generators.barbell_graph(4, 2)</span>
+<span class="sd"> &gt;&gt;&gt; nx.write_network_text(graph)</span>
+<span class="sd"> ╙── 4</span>
+<span class="sd"> ├── 5</span>
+<span class="sd"> │ └── 6</span>
+<span class="sd"> │ ├── 7</span>
+<span class="sd"> │ │ ├── 8 ─ 6</span>
+<span class="sd"> │ │ │ └── 9 ─ 6, 7</span>
+<span class="sd"> │ │ └── ...</span>
+<span class="sd"> │ └── ...</span>
+<span class="sd"> └── 3</span>
+<span class="sd"> ├── 0</span>
+<span class="sd"> │ ├── 1 ─ 3</span>
+<span class="sd"> │ │ └── 2 ─ 0, 3</span>
+<span class="sd"> │ └── ...</span>
+<span class="sd"> └── ...</span>
+
+<span class="sd"> &gt;&gt;&gt; graph = nx.complete_graph(5, create_using=nx.Graph)</span>
+<span class="sd"> &gt;&gt;&gt; nx.write_network_text(graph)</span>
+<span class="sd"> ╙── 0</span>
+<span class="sd"> ├── 1</span>
+<span class="sd"> │ ├── 2 ─ 0</span>
+<span class="sd"> │ │ ├── 3 ─ 0, 1</span>
+<span class="sd"> │ │ │ └── 4 ─ 0, 1, 2</span>
+<span class="sd"> │ │ └── ...</span>
+<span class="sd"> │ └── ...</span>
+<span class="sd"> └── ...</span>
+
+<span class="sd"> &gt;&gt;&gt; graph = nx.complete_graph(3, create_using=nx.DiGraph)</span>
+<span class="sd"> &gt;&gt;&gt; nx.write_network_text(graph)</span>
+<span class="sd"> ╙── 0 ╾ 1, 2</span>
+<span class="sd"> ├─╼ 1 ╾ 2</span>
+<span class="sd"> │ ├─╼ 2 ╾ 0</span>
+<span class="sd"> │ │ └─╼ ...</span>
+<span class="sd"> │ └─╼ ...</span>
+<span class="sd"> └─╼ ...</span>
+<span class="sd"> &quot;&quot;&quot;</span>
+ <span class="k">if</span> <span class="n">path</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
+ <span class="c1"># The path is unspecified, write to stdout</span>
+ <span class="n">_write</span> <span class="o">=</span> <span class="n">sys</span><span class="o">.</span><span class="n">stdout</span><span class="o">.</span><span class="n">write</span>
+ <span class="k">elif</span> <span class="nb">hasattr</span><span class="p">(</span><span class="n">path</span><span class="p">,</span> <span class="s2">&quot;write&quot;</span><span class="p">):</span>
+ <span class="c1"># The path is already an open file</span>
+ <span class="n">_write</span> <span class="o">=</span> <span class="n">path</span><span class="o">.</span><span class="n">write</span>
+ <span class="k">elif</span> <span class="n">callable</span><span class="p">(</span><span class="n">path</span><span class="p">):</span>
+ <span class="c1"># The path is a custom callable</span>
+ <span class="n">_write</span> <span class="o">=</span> <span class="n">path</span>
+ <span class="k">else</span><span class="p">:</span>
+ <span class="k">raise</span> <span class="ne">TypeError</span><span class="p">(</span><span class="nb">type</span><span class="p">(</span><span class="n">path</span><span class="p">))</span>
+
+ <span class="k">for</span> <span class="n">line</span> <span class="ow">in</span> <span class="n">generate_network_text</span><span class="p">(</span>
+ <span class="n">graph</span><span class="p">,</span>
+ <span class="n">with_labels</span><span class="o">=</span><span class="n">with_labels</span><span class="p">,</span>
+ <span class="n">sources</span><span class="o">=</span><span class="n">sources</span><span class="p">,</span>
+ <span class="n">max_depth</span><span class="o">=</span><span class="n">max_depth</span><span class="p">,</span>
+ <span class="n">ascii_only</span><span class="o">=</span><span class="n">ascii_only</span><span class="p">,</span>
+ <span class="p">):</span>
+ <span class="n">_write</span><span class="p">(</span><span class="n">line</span> <span class="o">+</span> <span class="n">end</span><span class="p">)</span></div>
+
+
+<span class="k">def</span> <span class="nf">_find_sources</span><span class="p">(</span><span class="n">graph</span><span class="p">):</span>
+<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
+<span class="sd"> Determine a minimal set of nodes such that the entire graph is reachable</span>
+<span class="sd"> &quot;&quot;&quot;</span>
+ <span class="c1"># For each connected part of the graph, choose at least</span>
+ <span class="c1"># one node as a starting point, preferably without a parent</span>
+ <span class="k">if</span> <span class="n">graph</span><span class="o">.</span><span class="n">is_directed</span><span class="p">():</span>
+ <span class="c1"># Choose one node from each SCC with minimum in_degree</span>
+ <span class="n">sccs</span> <span class="o">=</span> <span class="nb">list</span><span class="p">(</span><span class="n">nx</span><span class="o">.</span><span class="n">strongly_connected_components</span><span class="p">(</span><span class="n">graph</span><span class="p">))</span>
+ <span class="c1"># condensing the SCCs forms a dag, the nodes in this graph with</span>
+ <span class="c1"># 0 in-degree correspond to the SCCs from which the minimum set</span>
+ <span class="c1"># of nodes from which all other nodes can be reached.</span>
+ <span class="n">scc_graph</span> <span class="o">=</span> <span class="n">nx</span><span class="o">.</span><span class="n">condensation</span><span class="p">(</span><span class="n">graph</span><span class="p">,</span> <span class="n">sccs</span><span class="p">)</span>
+ <span class="n">supernode_to_nodes</span> <span class="o">=</span> <span class="p">{</span><span class="n">sn</span><span class="p">:</span> <span class="p">[]</span> <span class="k">for</span> <span class="n">sn</span> <span class="ow">in</span> <span class="n">scc_graph</span><span class="o">.</span><span class="n">nodes</span><span class="p">()}</span>
+ <span class="c1"># Note: the order of mapping differs between pypy and cpython</span>
+ <span class="c1"># so we have to loop over graph nodes for consistency</span>
+ <span class="n">mapping</span> <span class="o">=</span> <span class="n">scc_graph</span><span class="o">.</span><span class="n">graph</span><span class="p">[</span><span class="s2">&quot;mapping&quot;</span><span class="p">]</span>
+ <span class="k">for</span> <span class="n">n</span> <span class="ow">in</span> <span class="n">graph</span><span class="o">.</span><span class="n">nodes</span><span class="p">:</span>
+ <span class="n">sn</span> <span class="o">=</span> <span class="n">mapping</span><span class="p">[</span><span class="n">n</span><span class="p">]</span>
+ <span class="n">supernode_to_nodes</span><span class="p">[</span><span class="n">sn</span><span class="p">]</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">n</span><span class="p">)</span>
+ <span class="n">sources</span> <span class="o">=</span> <span class="p">[]</span>
+ <span class="k">for</span> <span class="n">sn</span> <span class="ow">in</span> <span class="n">scc_graph</span><span class="o">.</span><span class="n">nodes</span><span class="p">():</span>
+ <span class="k">if</span> <span class="n">scc_graph</span><span class="o">.</span><span class="n">in_degree</span><span class="p">[</span><span class="n">sn</span><span class="p">]</span> <span class="o">==</span> <span class="mi">0</span><span class="p">:</span>
+ <span class="n">scc</span> <span class="o">=</span> <span class="n">supernode_to_nodes</span><span class="p">[</span><span class="n">sn</span><span class="p">]</span>
+ <span class="n">node</span> <span class="o">=</span> <span class="nb">min</span><span class="p">(</span><span class="n">scc</span><span class="p">,</span> <span class="n">key</span><span class="o">=</span><span class="k">lambda</span> <span class="n">n</span><span class="p">:</span> <span class="n">graph</span><span class="o">.</span><span class="n">in_degree</span><span class="p">[</span><span class="n">n</span><span class="p">])</span>
+ <span class="n">sources</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">node</span><span class="p">)</span>
+ <span class="k">else</span><span class="p">:</span>
+ <span class="c1"># For undirected graph, the entire graph will be reachable as</span>
+ <span class="c1"># long as we consider one node from every connected component</span>
+ <span class="n">sources</span> <span class="o">=</span> <span class="p">[</span>
+ <span class="nb">min</span><span class="p">(</span><span class="n">cc</span><span class="p">,</span> <span class="n">key</span><span class="o">=</span><span class="k">lambda</span> <span class="n">n</span><span class="p">:</span> <span class="n">graph</span><span class="o">.</span><span class="n">degree</span><span class="p">[</span><span class="n">n</span><span class="p">])</span>
+ <span class="k">for</span> <span class="n">cc</span> <span class="ow">in</span> <span class="n">nx</span><span class="o">.</span><span class="n">connected_components</span><span class="p">(</span><span class="n">graph</span><span class="p">)</span>
+ <span class="p">]</span>
+ <span class="n">sources</span> <span class="o">=</span> <span class="nb">sorted</span><span class="p">(</span><span class="n">sources</span><span class="p">,</span> <span class="n">key</span><span class="o">=</span><span class="k">lambda</span> <span class="n">n</span><span class="p">:</span> <span class="n">graph</span><span class="o">.</span><span class="n">degree</span><span class="p">[</span><span class="n">n</span><span class="p">])</span>
+ <span class="k">return</span> <span class="n">sources</span>
+
+
+<span class="k">def</span> <span class="nf">forest_str</span><span class="p">(</span><span class="n">graph</span><span class="p">,</span> <span class="n">with_labels</span><span class="o">=</span><span class="kc">True</span><span class="p">,</span> <span class="n">sources</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span> <span class="n">write</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span> <span class="n">ascii_only</span><span class="o">=</span><span class="kc">False</span><span class="p">):</span>
+<span class="w"> </span><span class="sd">&quot;&quot;&quot;Creates a nice utf8 representation of a forest</span>
+
+<span class="sd"> This function has been superseded by</span>
+<span class="sd"> :func:`nx.readwrite.text.generate_network_text`, which should be used</span>
+<span class="sd"> instead.</span>
+
+<span class="sd"> Parameters</span>
+<span class="sd"> ----------</span>
+<span class="sd"> graph : nx.DiGraph | nx.Graph</span>
+<span class="sd"> Graph to represent (must be a tree, forest, or the empty graph)</span>
+
+<span class="sd"> with_labels : bool</span>
+<span class="sd"> If True will use the &quot;label&quot; attribute of a node to display if it</span>
+<span class="sd"> exists otherwise it will use the node value itself. Defaults to True.</span>
+
+<span class="sd"> sources : List</span>
+<span class="sd"> Mainly relevant for undirected forests, specifies which nodes to list</span>
+<span class="sd"> first. If unspecified the root nodes of each tree will be used for</span>
+<span class="sd"> directed forests; for undirected forests this defaults to the nodes</span>
+<span class="sd"> with the smallest degree.</span>
+
+<span class="sd"> write : callable</span>
+<span class="sd"> Function to use to write to, if None new lines are appended to</span>
+<span class="sd"> a list and returned. If set to the `print` function, lines will</span>
+<span class="sd"> be written to stdout as they are generated. If specified,</span>
+<span class="sd"> this function will return None. Defaults to None.</span>
+
+<span class="sd"> ascii_only : Boolean</span>
+<span class="sd"> If True only ASCII characters are used to construct the visualization</span>
+
+<span class="sd"> Returns</span>
+<span class="sd"> -------</span>
+<span class="sd"> str | None :</span>
+<span class="sd"> utf8 representation of the tree / forest</span>
+
+<span class="sd"> Examples</span>
+<span class="sd"> --------</span>
+<span class="sd"> &gt;&gt;&gt; graph = nx.balanced_tree(r=2, h=3, create_using=nx.DiGraph)</span>
+<span class="sd"> &gt;&gt;&gt; print(nx.forest_str(graph))</span>
+<span class="sd"> ╙── 0</span>
+<span class="sd"> ├─╼ 1</span>
+<span class="sd"> │ ├─╼ 3</span>
+<span class="sd"> │ │ ├─╼ 7</span>
+<span class="sd"> │ │ └─╼ 8</span>
+<span class="sd"> │ └─╼ 4</span>
+<span class="sd"> │ ├─╼ 9</span>
+<span class="sd"> │ └─╼ 10</span>
+<span class="sd"> └─╼ 2</span>
+<span class="sd"> ├─╼ 5</span>
+<span class="sd"> │ ├─╼ 11</span>
+<span class="sd"> │ └─╼ 12</span>
+<span class="sd"> └─╼ 6</span>
+<span class="sd"> ├─╼ 13</span>
+<span class="sd"> └─╼ 14</span>
+
+
+<span class="sd"> &gt;&gt;&gt; graph = nx.balanced_tree(r=1, h=2, create_using=nx.Graph)</span>
+<span class="sd"> &gt;&gt;&gt; print(nx.forest_str(graph))</span>
+<span class="sd"> ╙── 0</span>
+<span class="sd"> └── 1</span>
+<span class="sd"> └── 2</span>
+
+<span class="sd"> &gt;&gt;&gt; print(nx.forest_str(graph, ascii_only=True))</span>
+<span class="sd"> +-- 0</span>
+<span class="sd"> L-- 1</span>
+<span class="sd"> L-- 2</span>
+<span class="sd"> &quot;&quot;&quot;</span>
+ <span class="n">msg</span> <span class="o">=</span> <span class="p">(</span>
+ <span class="s2">&quot;</span><span class="se">\n</span><span class="s2">forest_str is deprecated as of version 3.1 and will be removed &quot;</span>
+ <span class="s2">&quot;in version 3.3. Use generate_network_text or write_network_text &quot;</span>
+ <span class="s2">&quot;instead.</span><span class="se">\n</span><span class="s2">&quot;</span>
+ <span class="p">)</span>
+ <span class="n">warnings</span><span class="o">.</span><span class="n">warn</span><span class="p">(</span><span class="n">msg</span><span class="p">,</span> <span class="ne">DeprecationWarning</span><span class="p">)</span>
+
+ <span class="k">if</span> <span class="nb">len</span><span class="p">(</span><span class="n">graph</span><span class="o">.</span><span class="n">nodes</span><span class="p">)</span> <span class="o">&gt;</span> <span class="mi">0</span><span class="p">:</span>
+ <span class="k">if</span> <span class="ow">not</span> <span class="n">nx</span><span class="o">.</span><span class="n">is_forest</span><span class="p">(</span><span class="n">graph</span><span class="p">):</span>
+ <span class="k">raise</span> <span class="n">nx</span><span class="o">.</span><span class="n">NetworkXNotImplemented</span><span class="p">(</span><span class="s2">&quot;input must be a forest or the empty graph&quot;</span><span class="p">)</span>
+
+ <span class="n">printbuf</span> <span class="o">=</span> <span class="p">[]</span>
+ <span class="k">if</span> <span class="n">write</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
+ <span class="n">_write</span> <span class="o">=</span> <span class="n">printbuf</span><span class="o">.</span><span class="n">append</span>
+ <span class="k">else</span><span class="p">:</span>
+ <span class="n">_write</span> <span class="o">=</span> <span class="n">write</span>
+
+ <span class="n">write_network_text</span><span class="p">(</span>
+ <span class="n">graph</span><span class="p">,</span>
+ <span class="n">_write</span><span class="p">,</span>
+ <span class="n">with_labels</span><span class="o">=</span><span class="n">with_labels</span><span class="p">,</span>
+ <span class="n">sources</span><span class="o">=</span><span class="n">sources</span><span class="p">,</span>
+ <span class="n">ascii_only</span><span class="o">=</span><span class="n">ascii_only</span><span class="p">,</span>
+ <span class="n">end</span><span class="o">=</span><span class="s2">&quot;&quot;</span><span class="p">,</span>
+ <span class="p">)</span>
+
+ <span class="k">if</span> <span class="n">write</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
+ <span class="c1"># Only return a string if the custom write function was not specified</span>
+ <span class="k">return</span> <span class="s2">&quot;</span><span class="se">\n</span><span class="s2">&quot;</span><span class="o">.</span><span class="n">join</span><span class="p">(</span><span class="n">printbuf</span><span class="p">)</span>
+</pre></div>
+
+ </article>
+
+
+
+ </div>
+
+
+
+ <div class="bd-sidebar-secondary bd-toc">
+
+<div class="toc-item">
+
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
+</div>
+
+<div class="toc-item">
+
+</div>
+
+ </div>
+
+
+ </div>
+ <footer class="bd-footer-content">
+ <div class="bd-footer-content__inner">
+
+ </div>
+ </footer>
+
+ </main>
+ </div>
+ </div>
+
+
+
+ <!-- Scripts loaded after <body> so the DOM is not blocked -->
+ <script src="../../../_static/scripts/bootstrap.js?digest=796348d33e8b1d947c94"></script>
+<script src="../../../_static/scripts/pydata-sphinx-theme.js?digest=796348d33e8b1d947c94"></script>
+
+ <footer class="bd-footer"><div class="bd-footer__inner container">
+
+ <div class="footer-item">
+
+<p class="copyright">
+
+ &copy; Copyright 2004-2023, NetworkX Developers.<br>
+
+</p>
+
+ </div>
+
+ <div class="footer-item">
+ <p class="theme-version">
+ Built with the
+ <a href="https://pydata-sphinx-theme.readthedocs.io/en/stable/index.html">
+ PyData Sphinx Theme
+ </a>
+ 0.12.0.
+</p>
+ </div>
+
+ <div class="footer-item">
+
+<p class="sphinx-version">
+Created using <a href="http://sphinx-doc.org/">Sphinx</a> 5.2.3.<br>
+</p>
+
+ </div>
+
+</div>
+ </footer>
+ </body>
+</html> \ No newline at end of file
diff --git a/_modules/networkx/relabel.html b/_modules/networkx/relabel.html
index 6b65465e..cd5017c4 100644
--- a/_modules/networkx/relabel.html
+++ b/_modules/networkx/relabel.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.relabel &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.relabel &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/relabel';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/relabel.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../genindex.html" />
<link rel="search" title="Search" href="../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -756,11 +768,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/utils/decorators.html b/_modules/networkx/utils/decorators.html
index f2bddfee..26a726bf 100644
--- a/_modules/networkx/utils/decorators.html
+++ b/_modules/networkx/utils/decorators.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.utils.decorators &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.utils.decorators &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/utils/decorators';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/utils/decorators.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -538,8 +550,8 @@
<span class="p">)</span>
<span class="c1"># 3-way logic: True if &quot;directed&quot; input, False if &quot;undirected&quot; input, else None</span>
- <span class="n">dval</span> <span class="o">=</span> <span class="p">(</span><span class="s2">&quot;directed&quot;</span> <span class="ow">in</span> <span class="n">graph_types</span><span class="p">)</span> <span class="ow">or</span> <span class="ow">not</span> <span class="p">(</span><span class="s2">&quot;undirected&quot;</span> <span class="ow">in</span> <span class="n">graph_types</span><span class="p">)</span> <span class="ow">and</span> <span class="kc">None</span>
- <span class="n">mval</span> <span class="o">=</span> <span class="p">(</span><span class="s2">&quot;multigraph&quot;</span> <span class="ow">in</span> <span class="n">graph_types</span><span class="p">)</span> <span class="ow">or</span> <span class="ow">not</span> <span class="p">(</span><span class="s2">&quot;graph&quot;</span> <span class="ow">in</span> <span class="n">graph_types</span><span class="p">)</span> <span class="ow">and</span> <span class="kc">None</span>
+ <span class="n">dval</span> <span class="o">=</span> <span class="p">(</span><span class="s2">&quot;directed&quot;</span> <span class="ow">in</span> <span class="n">graph_types</span><span class="p">)</span> <span class="ow">or</span> <span class="s2">&quot;undirected&quot;</span> <span class="ow">not</span> <span class="ow">in</span> <span class="n">graph_types</span> <span class="ow">and</span> <span class="kc">None</span>
+ <span class="n">mval</span> <span class="o">=</span> <span class="p">(</span><span class="s2">&quot;multigraph&quot;</span> <span class="ow">in</span> <span class="n">graph_types</span><span class="p">)</span> <span class="ow">or</span> <span class="s2">&quot;graph&quot;</span> <span class="ow">not</span> <span class="ow">in</span> <span class="n">graph_types</span> <span class="ow">and</span> <span class="kc">None</span>
<span class="n">errmsg</span> <span class="o">=</span> <span class="sa">f</span><span class="s2">&quot;not implemented for </span><span class="si">{</span><span class="s1">&#39; &#39;</span><span class="o">.</span><span class="n">join</span><span class="p">(</span><span class="n">graph_types</span><span class="p">)</span><span class="si">}</span><span class="s2"> type&quot;</span>
<span class="k">def</span> <span class="nf">_not_implemented_for</span><span class="p">(</span><span class="n">g</span><span class="p">):</span>
@@ -560,7 +572,7 @@
<span class="s2">&quot;.gzip&quot;</span><span class="p">:</span> <span class="n">gzip</span><span class="o">.</span><span class="n">open</span><span class="p">,</span>
<span class="s2">&quot;.bz2&quot;</span><span class="p">:</span> <span class="n">bz2</span><span class="o">.</span><span class="n">BZ2File</span><span class="p">,</span>
<span class="p">}</span>
-<span class="n">_dispatch_dict</span> <span class="o">=</span> <span class="n">defaultdict</span><span class="p">(</span><span class="k">lambda</span><span class="p">:</span> <span class="nb">open</span><span class="p">,</span> <span class="o">**</span><span class="n">fopeners</span><span class="p">)</span> <span class="c1"># type: ignore</span>
+<span class="n">_dispatch_dict</span> <span class="o">=</span> <span class="n">defaultdict</span><span class="p">(</span><span class="k">lambda</span><span class="p">:</span> <span class="nb">open</span><span class="p">,</span> <span class="o">**</span><span class="n">fopeners</span><span class="p">)</span>
<div class="viewcode-block" id="open_file"><a class="viewcode-back" href="../../../reference/generated/networkx.utils.decorators.open_file.html#networkx.utils.decorators.open_file">[docs]</a><span class="k">def</span> <span class="nf">open_file</span><span class="p">(</span><span class="n">path_arg</span><span class="p">,</span> <span class="n">mode</span><span class="o">=</span><span class="s2">&quot;r&quot;</span><span class="p">):</span>
@@ -1684,11 +1696,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/utils/mapped_queue.html b/_modules/networkx/utils/mapped_queue.html
index b5bf4ed7..cc12bda8 100644
--- a/_modules/networkx/utils/mapped_queue.html
+++ b/_modules/networkx/utils/mapped_queue.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.utils.mapped_queue &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.utils.mapped_queue &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/utils/mapped_queue';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/utils/mapped_queue.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -617,12 +629,12 @@
<div class="viewcode-block" id="MappedQueue.__init__"><a class="viewcode-back" href="../../../reference/generated/networkx.utils.mapped_queue.MappedQueue.html#networkx.utils.mapped_queue.MappedQueue.__init__">[docs]</a> <span class="k">def</span> <span class="fm">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">data</span><span class="o">=</span><span class="kc">None</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Priority queue class with updatable priorities.&quot;&quot;&quot;</span>
<span class="k">if</span> <span class="n">data</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
- <span class="bp">self</span><span class="o">.</span><span class="n">heap</span> <span class="o">=</span> <span class="nb">list</span><span class="p">()</span>
+ <span class="bp">self</span><span class="o">.</span><span class="n">heap</span> <span class="o">=</span> <span class="p">[]</span>
<span class="k">elif</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">data</span><span class="p">,</span> <span class="nb">dict</span><span class="p">):</span>
<span class="bp">self</span><span class="o">.</span><span class="n">heap</span> <span class="o">=</span> <span class="p">[</span><span class="n">_HeapElement</span><span class="p">(</span><span class="n">v</span><span class="p">,</span> <span class="n">k</span><span class="p">)</span> <span class="k">for</span> <span class="n">k</span><span class="p">,</span> <span class="n">v</span> <span class="ow">in</span> <span class="n">data</span><span class="o">.</span><span class="n">items</span><span class="p">()]</span>
<span class="k">else</span><span class="p">:</span>
<span class="bp">self</span><span class="o">.</span><span class="n">heap</span> <span class="o">=</span> <span class="nb">list</span><span class="p">(</span><span class="n">data</span><span class="p">)</span>
- <span class="bp">self</span><span class="o">.</span><span class="n">position</span> <span class="o">=</span> <span class="nb">dict</span><span class="p">()</span>
+ <span class="bp">self</span><span class="o">.</span><span class="n">position</span> <span class="o">=</span> <span class="p">{}</span>
<span class="bp">self</span><span class="o">.</span><span class="n">_heapify</span><span class="p">()</span></div>
<span class="k">def</span> <span class="nf">_heapify</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
@@ -773,11 +785,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/utils/misc.html b/_modules/networkx/utils/misc.html
index cd739238..409ce510 100644
--- a/_modules/networkx/utils/misc.html
+++ b/_modules/networkx/utils/misc.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.utils.misc &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.utils.misc &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/utils/misc';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/utils/misc.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -966,11 +978,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/utils/random_sequence.html b/_modules/networkx/utils/random_sequence.html
index 2bdf5609..7539b774 100644
--- a/_modules/networkx/utils/random_sequence.html
+++ b/_modules/networkx/utils/random_sequence.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.utils.random_sequence &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.utils.random_sequence &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/utils/random_sequence';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/utils/random_sequence.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -639,11 +651,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/utils/rcm.html b/_modules/networkx/utils/rcm.html
index 6137ccc1..170d00ba 100644
--- a/_modules/networkx/utils/rcm.html
+++ b/_modules/networkx/utils/rcm.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.utils.rcm &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.utils.rcm &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/utils/rcm';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/utils/rcm.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -598,7 +610,7 @@
<span class="k">while</span> <span class="n">queue</span><span class="p">:</span>
<span class="n">parent</span> <span class="o">=</span> <span class="n">queue</span><span class="o">.</span><span class="n">popleft</span><span class="p">()</span>
<span class="k">yield</span> <span class="n">parent</span>
- <span class="n">nd</span> <span class="o">=</span> <span class="nb">sorted</span><span class="p">(</span><span class="nb">list</span><span class="p">(</span><span class="n">G</span><span class="o">.</span><span class="n">degree</span><span class="p">(</span><span class="nb">set</span><span class="p">(</span><span class="n">G</span><span class="p">[</span><span class="n">parent</span><span class="p">])</span> <span class="o">-</span> <span class="n">visited</span><span class="p">)),</span> <span class="n">key</span><span class="o">=</span><span class="n">itemgetter</span><span class="p">(</span><span class="mi">1</span><span class="p">))</span>
+ <span class="n">nd</span> <span class="o">=</span> <span class="nb">sorted</span><span class="p">(</span><span class="n">G</span><span class="o">.</span><span class="n">degree</span><span class="p">(</span><span class="nb">set</span><span class="p">(</span><span class="n">G</span><span class="p">[</span><span class="n">parent</span><span class="p">])</span> <span class="o">-</span> <span class="n">visited</span><span class="p">),</span> <span class="n">key</span><span class="o">=</span><span class="n">itemgetter</span><span class="p">(</span><span class="mi">1</span><span class="p">))</span>
<span class="n">children</span> <span class="o">=</span> <span class="p">[</span><span class="n">n</span> <span class="k">for</span> <span class="n">n</span><span class="p">,</span> <span class="n">d</span> <span class="ow">in</span> <span class="n">nd</span><span class="p">]</span>
<span class="n">visited</span><span class="o">.</span><span class="n">update</span><span class="p">(</span><span class="n">children</span><span class="p">)</span>
<span class="n">queue</span><span class="o">.</span><span class="n">extend</span><span class="p">(</span><span class="n">children</span><span class="p">)</span>
@@ -633,11 +645,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">
diff --git a/_modules/networkx/utils/union_find.html b/_modules/networkx/utils/union_find.html
index 5c46b002..8fc8b247 100644
--- a/_modules/networkx/utils/union_find.html
+++ b/_modules/networkx/utils/union_find.html
@@ -5,7 +5,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>networkx.utils.union_find &#8212; NetworkX 3.0rc2.dev0 documentation</title>
+ <title>networkx.utils.union_find &#8212; NetworkX 3.1rc1.dev0 documentation</title>
@@ -46,12 +46,18 @@
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/networkx/utils/union_find';</script>
<link rel="canonical" href="https://networkx.org/documentation/stable/_modules/networkx/utils/union_find.html" />
<link rel="search" type="application/opensearchdescription+xml"
- title="Search within NetworkX 3.0rc2.dev0 documentation"
+ title="Search within NetworkX 3.1rc1.dev0 documentation"
href="../../../_static/opensearch.xml"/>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
+<script
+ defer
+ data-domain="networkx.org"
+ src="https://views.scientific-python.org/js/script.js"
+></script>
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="docsearch:language" content="en">
+ <meta name="docsearch:language" content="en">
</head>
@@ -93,6 +99,12 @@
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
</form>
</div>
+ </div><div class="bd-header-announcement container-fluid" id="header-announcement">
+
+
+
+<div class="bd-header-announcement__content"><p><a href='https://forms.gle/NUGcBxyjx5onbAgc8'> NetworkX User Survey 2023</a> 🎉 Fill out the survey to tell us about your ideas, complaints, praises of NetworkX!</p></div>
+
</div>
@@ -244,7 +256,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -407,7 +419,7 @@
id="dLabelMore"
data-toggle="dropdown"
>
- v3.0rc2.dev0
+ v3.1rc1.dev0
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dLabelMore">
@@ -546,7 +558,7 @@
<span class="sd"> &quot;&quot;&quot;</span>
<span class="c1"># Ensure fully pruned paths</span>
- <span class="k">for</span> <span class="n">x</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">parents</span><span class="o">.</span><span class="n">keys</span><span class="p">():</span>
+ <span class="k">for</span> <span class="n">x</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">parents</span><span class="p">:</span>
<span class="n">_</span> <span class="o">=</span> <span class="bp">self</span><span class="p">[</span><span class="n">x</span><span class="p">]</span> <span class="c1"># Evaluated for side-effect only</span>
<span class="k">yield from</span> <span class="n">groups</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">parents</span><span class="p">)</span><span class="o">.</span><span class="n">values</span><span class="p">()</span>
@@ -581,11 +593,11 @@
<div class="toc-item">
-<div id="searchbox"></div>
-</div>
-
-<div class="toc-item">
-
+<form class="bd-search d-flex align-items-center" action="../../../search.html" method="get">
+ <i class="fa-solid fa-magnifying-glass"></i>
+ <input type="search" class="form-control" name="q" id="search-input" placeholder="Search the docs ..." aria-label="Search the docs ..." autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
+ <span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span>
+</form>
</div>
<div class="toc-item">