okstra 0.108.0 → 0.109.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/runtime/BUILD.json +2 -2
- package/runtime/prompts/profiles/_common-contract.md +1 -1
- package/runtime/python/okstra_ctl/graphify_cmd.py +225 -0
- package/runtime/python/okstra_ctl/resolve_task_key.py +15 -9
- package/runtime/python/okstra_project/__init__.py +2 -0
- package/runtime/python/okstra_project/state.py +36 -0
- package/runtime/python/okstra_vendor/__init__.py +41 -0
- package/runtime/python/okstra_vendor/graphify/.vendored-version +1 -0
- package/runtime/python/okstra_vendor/graphify/__init__.py +28 -0
- package/runtime/python/okstra_vendor/graphify/__main__.py +1371 -0
- package/runtime/python/okstra_vendor/graphify/analyze.py +540 -0
- package/runtime/python/okstra_vendor/graphify/benchmark.py +129 -0
- package/runtime/python/okstra_vendor/graphify/build.py +107 -0
- package/runtime/python/okstra_vendor/graphify/cache.py +169 -0
- package/runtime/python/okstra_vendor/graphify/cluster.py +137 -0
- package/runtime/python/okstra_vendor/graphify/detect.py +510 -0
- package/runtime/python/okstra_vendor/graphify/export.py +1014 -0
- package/runtime/python/okstra_vendor/graphify/extract.py +3277 -0
- package/runtime/python/okstra_vendor/graphify/hooks.py +220 -0
- package/runtime/python/okstra_vendor/graphify/ingest.py +297 -0
- package/runtime/python/okstra_vendor/graphify/manifest.py +4 -0
- package/runtime/python/okstra_vendor/graphify/report.py +175 -0
- package/runtime/python/okstra_vendor/graphify/security.py +203 -0
- package/runtime/python/okstra_vendor/graphify/serve.py +373 -0
- package/runtime/python/okstra_vendor/graphify/skill-aider.md +1184 -0
- package/runtime/python/okstra_vendor/graphify/skill-claw.md +1184 -0
- package/runtime/python/okstra_vendor/graphify/skill-codex.md +1242 -0
- package/runtime/python/okstra_vendor/graphify/skill-copilot.md +1268 -0
- package/runtime/python/okstra_vendor/graphify/skill-droid.md +1239 -0
- package/runtime/python/okstra_vendor/graphify/skill-kiro.md +1183 -0
- package/runtime/python/okstra_vendor/graphify/skill-opencode.md +1238 -0
- package/runtime/python/okstra_vendor/graphify/skill-trae.md +1208 -0
- package/runtime/python/okstra_vendor/graphify/skill-vscode.md +253 -0
- package/runtime/python/okstra_vendor/graphify/skill-windows.md +1245 -0
- package/runtime/python/okstra_vendor/graphify/skill.md +1319 -0
- package/runtime/python/okstra_vendor/graphify/transcribe.py +182 -0
- package/runtime/python/okstra_vendor/graphify/validate.py +72 -0
- package/runtime/python/okstra_vendor/graphify/watch.py +188 -0
- package/runtime/python/okstra_vendor/graphify/wiki.py +214 -0
- package/runtime/python/okstra_vendor/networkx/__init__.py +62 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/__init__.py +134 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/approximation/__init__.py +26 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/approximation/clique.py +259 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/approximation/clustering_coefficient.py +71 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/approximation/connectivity.py +412 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/approximation/density.py +396 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/approximation/distance_measures.py +150 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/approximation/dominating_set.py +149 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/approximation/kcomponents.py +369 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/approximation/matching.py +44 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/approximation/maxcut.py +143 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/approximation/ramsey.py +53 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/approximation/steinertree.py +265 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/approximation/tests/__init__.py +0 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/approximation/tests/test_approx_clust_coeff.py +41 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/approximation/tests/test_clique.py +112 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/approximation/tests/test_connectivity.py +199 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/approximation/tests/test_density.py +146 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/approximation/tests/test_distance_measures.py +59 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/approximation/tests/test_dominating_set.py +78 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/approximation/tests/test_kcomponents.py +303 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/approximation/tests/test_matching.py +8 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/approximation/tests/test_maxcut.py +94 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/approximation/tests/test_ramsey.py +31 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/approximation/tests/test_steinertree.py +306 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/approximation/tests/test_traveling_salesman.py +1014 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/approximation/tests/test_treewidth.py +274 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/approximation/tests/test_vertex_cover.py +68 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/approximation/traveling_salesman.py +1508 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/approximation/treewidth.py +255 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/approximation/vertex_cover.py +83 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/assortativity/__init__.py +5 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/assortativity/connectivity.py +122 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/assortativity/correlation.py +302 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/assortativity/mixing.py +255 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/assortativity/neighbor_degree.py +160 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/assortativity/pairs.py +127 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/assortativity/tests/__init__.py +0 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/assortativity/tests/base_test.py +81 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/assortativity/tests/test_connectivity.py +143 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/assortativity/tests/test_correlation.py +122 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/assortativity/tests/test_mixing.py +174 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/assortativity/tests/test_neighbor_degree.py +107 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/assortativity/tests/test_pairs.py +87 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/asteroidal.py +164 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/bipartite/__init__.py +88 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/bipartite/basic.py +322 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/bipartite/centrality.py +290 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/bipartite/cluster.py +289 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/bipartite/covering.py +57 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/bipartite/edgelist.py +360 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/bipartite/extendability.py +105 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/bipartite/generators.py +603 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/bipartite/link_analysis.py +316 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/bipartite/matching.py +590 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/bipartite/matrix.py +232 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/bipartite/projection.py +526 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/bipartite/redundancy.py +112 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/bipartite/spectral.py +69 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/bipartite/tests/__init__.py +0 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/bipartite/tests/test_basic.py +125 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/bipartite/tests/test_centrality.py +192 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/bipartite/tests/test_cluster.py +84 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/bipartite/tests/test_covering.py +33 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/bipartite/tests/test_edgelist.py +240 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/bipartite/tests/test_extendability.py +334 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/bipartite/tests/test_generators.py +407 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/bipartite/tests/test_link_analysis.py +218 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/bipartite/tests/test_matching.py +327 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/bipartite/tests/test_matrix.py +138 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/bipartite/tests/test_project.py +409 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/bipartite/tests/test_redundancy.py +35 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/bipartite/tests/test_spectral_bipartivity.py +80 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/boundary.py +168 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/bridges.py +205 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/broadcasting.py +164 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/centrality/__init__.py +20 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/centrality/betweenness.py +591 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/centrality/betweenness_subset.py +236 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/centrality/closeness.py +282 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/centrality/current_flow_betweenness.py +364 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/centrality/current_flow_betweenness_subset.py +227 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/centrality/current_flow_closeness.py +96 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/centrality/degree_alg.py +150 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/centrality/dispersion.py +107 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/centrality/eigenvector.py +357 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/centrality/flow_matrix.py +130 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/centrality/group.py +787 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/centrality/harmonic.py +88 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/centrality/katz.py +331 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/centrality/laplacian.py +150 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/centrality/load.py +200 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/centrality/percolation.py +128 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/centrality/reaching.py +209 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/centrality/second_order.py +141 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/centrality/subgraph_alg.py +361 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/centrality/tests/__init__.py +0 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/centrality/tests/test_betweenness_centrality.py +923 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/centrality/tests/test_betweenness_centrality_subset.py +354 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/centrality/tests/test_closeness_centrality.py +274 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/centrality/tests/test_current_flow_betweenness_centrality.py +259 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/centrality/tests/test_current_flow_betweenness_centrality_subset.py +147 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/centrality/tests/test_current_flow_closeness.py +43 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/centrality/tests/test_degree_centrality.py +144 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/centrality/tests/test_dispersion.py +73 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/centrality/tests/test_eigenvector_centrality.py +186 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/centrality/tests/test_group.py +277 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/centrality/tests/test_harmonic_centrality.py +122 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/centrality/tests/test_katz_centrality.py +345 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/centrality/tests/test_laplacian_centrality.py +220 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/centrality/tests/test_load_centrality.py +344 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/centrality/tests/test_percolation_centrality.py +87 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/centrality/tests/test_reaching.py +140 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/centrality/tests/test_second_order_centrality.py +82 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/centrality/tests/test_subgraph.py +110 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/centrality/tests/test_trophic.py +302 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/centrality/tests/test_voterank.py +64 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/centrality/trophic.py +181 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/centrality/voterank_alg.py +95 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/chains.py +172 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/chordal.py +443 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/clique.py +818 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/cluster.py +732 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/coloring/__init__.py +4 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/coloring/equitable_coloring.py +505 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/coloring/greedy_coloring.py +565 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/coloring/tests/__init__.py +0 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/coloring/tests/test_coloring.py +863 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/communicability_alg.py +163 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/community/__init__.py +28 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/community/asyn_fluid.py +153 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/community/bipartitions.py +354 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/community/centrality.py +171 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/community/community_utils.py +30 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/community/divisive.py +216 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/community/kclique.py +79 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/community/label_propagation.py +338 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/community/leiden.py +162 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/community/local.py +220 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/community/louvain.py +384 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/community/lukes.py +227 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/community/modularity_max.py +452 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/community/quality.py +347 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/community/tests/__init__.py +0 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/community/tests/test_asyn_fluid.py +147 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/community/tests/test_bipartitions.py +157 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/community/tests/test_centrality.py +85 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/community/tests/test_divisive.py +106 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/community/tests/test_kclique.py +91 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/community/tests/test_label_propagation.py +241 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/community/tests/test_leiden.py +138 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/community/tests/test_local.py +76 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/community/tests/test_louvain.py +264 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/community/tests/test_lukes.py +152 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/community/tests/test_modularity_max.py +340 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/community/tests/test_quality.py +139 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/community/tests/test_utils.py +26 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/components/__init__.py +6 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/components/attracting.py +115 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/components/biconnected.py +394 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/components/connected.py +282 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/components/semiconnected.py +71 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/components/strongly_connected.py +359 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/components/tests/__init__.py +0 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/components/tests/test_attracting.py +70 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/components/tests/test_biconnected.py +248 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/components/tests/test_connected.py +138 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/components/tests/test_semiconnected.py +55 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/components/tests/test_strongly_connected.py +193 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/components/tests/test_weakly_connected.py +96 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/components/weakly_connected.py +196 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/connectivity/__init__.py +11 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/connectivity/connectivity.py +811 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/connectivity/cuts.py +616 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/connectivity/disjoint_paths.py +408 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/connectivity/edge_augmentation.py +1270 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/connectivity/edge_kcomponents.py +592 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/connectivity/kcomponents.py +220 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/connectivity/kcutsets.py +235 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/connectivity/stoerwagner.py +152 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/connectivity/tests/__init__.py +0 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/connectivity/tests/test_connectivity.py +421 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/connectivity/tests/test_cuts.py +309 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/connectivity/tests/test_disjoint_paths.py +249 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/connectivity/tests/test_edge_augmentation.py +502 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/connectivity/tests/test_edge_kcomponents.py +488 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/connectivity/tests/test_kcomponents.py +323 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/connectivity/tests/test_kcutsets.py +280 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/connectivity/tests/test_stoer_wagner.py +102 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/connectivity/utils.py +88 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/core.py +588 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/covering.py +142 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/cuts.py +416 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/cycles.py +1234 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/d_separation.py +677 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/dag.py +1392 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/distance_measures.py +1095 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/distance_regular.py +272 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/dominance.py +142 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/dominating.py +268 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/efficiency_measures.py +167 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/euler.py +470 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/flow/__init__.py +11 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/flow/boykovkolmogorov.py +370 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/flow/capacityscaling.py +407 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/flow/dinitz_alg.py +238 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/flow/edmondskarp.py +241 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/flow/gomory_hu.py +178 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/flow/maxflow.py +611 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/flow/mincost.py +356 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/flow/networksimplex.py +662 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/flow/preflowpush.py +425 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/flow/shortestaugmentingpath.py +300 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/flow/tests/__init__.py +0 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/flow/tests/gl1.gpickle.bz2 +0 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/flow/tests/gw1.gpickle.bz2 +0 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/flow/tests/netgen-2.gpickle.bz2 +0 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/flow/tests/test_gomory_hu.py +128 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/flow/tests/test_maxflow.py +573 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/flow/tests/test_maxflow_large_graph.py +155 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/flow/tests/test_mincost.py +475 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/flow/tests/test_networksimplex.py +481 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/flow/tests/wlm3.gpickle.bz2 +0 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/flow/utils.py +194 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/graph_hashing.py +435 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/graphical.py +483 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/hierarchy.py +57 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/hybrid.py +196 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/isolate.py +107 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/isomorphism/__init__.py +7 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/isomorphism/ismags.py +1306 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/isomorphism/isomorph.py +336 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/isomorphism/isomorphvf2.py +1262 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/isomorphism/matchhelpers.py +352 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/isomorphism/temporalisomorphvf2.py +308 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/isomorphism/tests/__init__.py +0 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/isomorphism/tests/iso_r01_s80.A99 +0 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/isomorphism/tests/iso_r01_s80.B99 +0 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/isomorphism/tests/si2_b06_m200.A99 +0 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/isomorphism/tests/si2_b06_m200.B99 +0 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/isomorphism/tests/test_ismags.py +719 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/isomorphism/tests/test_isomorphism.py +103 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/isomorphism/tests/test_isomorphvf2.py +490 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/isomorphism/tests/test_match_helpers.py +64 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/isomorphism/tests/test_temporalisomorphvf2.py +212 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/isomorphism/tests/test_tree_isomorphism.py +202 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/isomorphism/tests/test_vf2pp.py +1655 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/isomorphism/tests/test_vf2pp_helpers.py +3118 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/isomorphism/tests/test_vf2userfunc.py +196 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/isomorphism/tree_isomorphism.py +264 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/isomorphism/vf2pp.py +1102 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/isomorphism/vf2userfunc.py +192 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/link_analysis/__init__.py +2 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/link_analysis/hits_alg.py +337 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/link_analysis/pagerank_alg.py +498 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/link_analysis/tests/__init__.py +0 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/link_analysis/tests/test_hits.py +77 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/link_analysis/tests/test_pagerank.py +213 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/link_prediction.py +687 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/lowest_common_ancestors.py +280 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/matching.py +1148 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/minors/__init__.py +27 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/minors/contraction.py +738 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/minors/tests/test_contraction.py +544 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/mis.py +78 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/moral.py +59 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/node_classification.py +219 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/non_randomness.py +155 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/operators/__init__.py +4 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/operators/all.py +324 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/operators/binary.py +468 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/operators/product.py +633 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/operators/tests/__init__.py +0 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/operators/tests/test_all.py +328 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/operators/tests/test_binary.py +451 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/operators/tests/test_product.py +491 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/operators/tests/test_unary.py +55 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/operators/unary.py +77 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/perfect_graph.py +73 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/planar_drawing.py +464 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/planarity.py +1463 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/polynomials.py +306 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/reciprocity.py +98 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/regular.py +167 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/richclub.py +138 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/shortest_paths/__init__.py +5 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/shortest_paths/astar.py +239 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/shortest_paths/dense.py +264 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/shortest_paths/generic.py +716 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/shortest_paths/tests/__init__.py +0 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/shortest_paths/tests/test_astar.py +254 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/shortest_paths/tests/test_dense.py +212 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/shortest_paths/tests/test_dense_numpy.py +88 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/shortest_paths/tests/test_generic.py +511 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/shortest_paths/tests/test_unweighted.py +149 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/shortest_paths/tests/test_weighted.py +983 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/shortest_paths/unweighted.py +625 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/shortest_paths/weighted.py +2542 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/similarity.py +2107 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/simple_paths.py +966 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/smallworld.py +404 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/smetric.py +30 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/sparsifiers.py +296 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/structuralholes.py +374 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/summarization.py +564 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/swap.py +406 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/tests/__init__.py +0 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/tests/test_asteroidal.py +23 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/tests/test_boundary.py +154 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/tests/test_bridges.py +144 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/tests/test_broadcasting.py +109 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/tests/test_chains.py +136 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/tests/test_chordal.py +129 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/tests/test_clique.py +300 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/tests/test_cluster.py +678 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/tests/test_communicability.py +80 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/tests/test_core.py +266 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/tests/test_covering.py +85 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/tests/test_cuts.py +171 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/tests/test_cycles.py +984 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/tests/test_d_separation.py +340 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/tests/test_dag.py +835 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/tests/test_distance_measures.py +831 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/tests/test_distance_regular.py +85 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/tests/test_dominance.py +299 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/tests/test_dominating.py +115 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/tests/test_efficiency.py +58 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/tests/test_euler.py +314 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/tests/test_graph_hashing.py +872 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/tests/test_graphical.py +163 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/tests/test_hierarchy.py +46 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/tests/test_hybrid.py +24 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/tests/test_isolate.py +26 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/tests/test_link_prediction.py +615 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/tests/test_lowest_common_ancestors.py +459 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/tests/test_matching.py +556 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/tests/test_max_weight_clique.py +179 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/tests/test_mis.py +62 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/tests/test_moral.py +15 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/tests/test_node_classification.py +140 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/tests/test_non_randomness.py +60 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/tests/test_perfect_graph.py +27 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/tests/test_planar_drawing.py +274 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/tests/test_planarity.py +556 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/tests/test_polynomials.py +57 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/tests/test_reciprocity.py +37 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/tests/test_regular.py +88 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/tests/test_richclub.py +149 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/tests/test_similarity.py +1158 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/tests/test_simple_paths.py +803 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/tests/test_smallworld.py +76 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/tests/test_smetric.py +8 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/tests/test_sparsifiers.py +138 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/tests/test_structuralholes.py +191 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/tests/test_summarization.py +642 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/tests/test_swap.py +179 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/tests/test_threshold.py +270 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/tests/test_time_dependent.py +431 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/tests/test_tournament.py +161 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/tests/test_triads.py +248 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/tests/test_vitality.py +41 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/tests/test_voronoi.py +103 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/tests/test_walks.py +54 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/tests/test_wiener.py +157 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/threshold.py +981 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/time_dependent.py +142 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/tournament.py +406 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/traversal/__init__.py +5 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/traversal/beamsearch.py +90 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/traversal/breadth_first_search.py +576 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/traversal/depth_first_search.py +529 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/traversal/edgebfs.py +185 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/traversal/edgedfs.py +182 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/traversal/tests/__init__.py +0 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/traversal/tests/test_beamsearch.py +25 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/traversal/tests/test_bfs.py +203 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/traversal/tests/test_dfs.py +307 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/traversal/tests/test_edgebfs.py +147 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/traversal/tests/test_edgedfs.py +131 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/tree/__init__.py +7 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/tree/branchings.py +1042 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/tree/coding.py +413 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/tree/decomposition.py +88 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/tree/distance_measures.py +219 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/tree/mst.py +1281 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/tree/operations.py +106 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/tree/recognition.py +273 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/tree/tests/__init__.py +0 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/tree/tests/test_branchings.py +624 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/tree/tests/test_coding.py +114 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/tree/tests/test_decomposition.py +79 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/tree/tests/test_distance_measures.py +99 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/tree/tests/test_mst.py +934 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/tree/tests/test_operations.py +53 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/tree/tests/test_recognition.py +174 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/triads.py +500 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/vitality.py +76 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/voronoi.py +86 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/walks.py +77 -0
- package/runtime/python/okstra_vendor/networkx/algorithms/wiener.py +278 -0
- package/runtime/python/okstra_vendor/networkx/classes/__init__.py +13 -0
- package/runtime/python/okstra_vendor/networkx/classes/coreviews.py +435 -0
- package/runtime/python/okstra_vendor/networkx/classes/digraph.py +1363 -0
- package/runtime/python/okstra_vendor/networkx/classes/filters.py +95 -0
- package/runtime/python/okstra_vendor/networkx/classes/function.py +1549 -0
- package/runtime/python/okstra_vendor/networkx/classes/graph.py +2082 -0
- package/runtime/python/okstra_vendor/networkx/classes/graphviews.py +269 -0
- package/runtime/python/okstra_vendor/networkx/classes/multidigraph.py +977 -0
- package/runtime/python/okstra_vendor/networkx/classes/multigraph.py +1294 -0
- package/runtime/python/okstra_vendor/networkx/classes/reportviews.py +1447 -0
- package/runtime/python/okstra_vendor/networkx/classes/tests/__init__.py +0 -0
- package/runtime/python/okstra_vendor/networkx/classes/tests/dispatch_interface.py +192 -0
- package/runtime/python/okstra_vendor/networkx/classes/tests/historical_tests.py +476 -0
- package/runtime/python/okstra_vendor/networkx/classes/tests/test_coreviews.py +362 -0
- package/runtime/python/okstra_vendor/networkx/classes/tests/test_digraph.py +331 -0
- package/runtime/python/okstra_vendor/networkx/classes/tests/test_digraph_historical.py +110 -0
- package/runtime/python/okstra_vendor/networkx/classes/tests/test_filters.py +177 -0
- package/runtime/python/okstra_vendor/networkx/classes/tests/test_function.py +1045 -0
- package/runtime/python/okstra_vendor/networkx/classes/tests/test_graph.py +950 -0
- package/runtime/python/okstra_vendor/networkx/classes/tests/test_graph_historical.py +12 -0
- package/runtime/python/okstra_vendor/networkx/classes/tests/test_graphviews.py +349 -0
- package/runtime/python/okstra_vendor/networkx/classes/tests/test_multidigraph.py +459 -0
- package/runtime/python/okstra_vendor/networkx/classes/tests/test_multigraph.py +528 -0
- package/runtime/python/okstra_vendor/networkx/classes/tests/test_reportviews.py +1421 -0
- package/runtime/python/okstra_vendor/networkx/classes/tests/test_special.py +131 -0
- package/runtime/python/okstra_vendor/networkx/classes/tests/test_subgraphviews.py +371 -0
- package/runtime/python/okstra_vendor/networkx/conftest.py +261 -0
- package/runtime/python/okstra_vendor/networkx/convert.py +502 -0
- package/runtime/python/okstra_vendor/networkx/convert_matrix.py +1314 -0
- package/runtime/python/okstra_vendor/networkx/drawing/__init__.py +7 -0
- package/runtime/python/okstra_vendor/networkx/drawing/layout.py +2036 -0
- package/runtime/python/okstra_vendor/networkx/drawing/nx_agraph.py +470 -0
- package/runtime/python/okstra_vendor/networkx/drawing/nx_latex.py +570 -0
- package/runtime/python/okstra_vendor/networkx/drawing/nx_pydot.py +361 -0
- package/runtime/python/okstra_vendor/networkx/drawing/nx_pylab.py +2978 -0
- package/runtime/python/okstra_vendor/networkx/drawing/tests/__init__.py +0 -0
- package/runtime/python/okstra_vendor/networkx/drawing/tests/baseline/test_display_complex.png +0 -0
- package/runtime/python/okstra_vendor/networkx/drawing/tests/baseline/test_display_empty_graph.png +0 -0
- package/runtime/python/okstra_vendor/networkx/drawing/tests/baseline/test_display_house_with_colors.png +0 -0
- package/runtime/python/okstra_vendor/networkx/drawing/tests/baseline/test_display_labels_and_colors.png +0 -0
- package/runtime/python/okstra_vendor/networkx/drawing/tests/baseline/test_display_shortest_path.png +0 -0
- package/runtime/python/okstra_vendor/networkx/drawing/tests/baseline/test_house_with_colors.png +0 -0
- package/runtime/python/okstra_vendor/networkx/drawing/tests/test_agraph.py +237 -0
- package/runtime/python/okstra_vendor/networkx/drawing/tests/test_image_comparison_pylab_mpl.py +229 -0
- package/runtime/python/okstra_vendor/networkx/drawing/tests/test_latex.py +285 -0
- package/runtime/python/okstra_vendor/networkx/drawing/tests/test_layout.py +631 -0
- package/runtime/python/okstra_vendor/networkx/drawing/tests/test_pydot.py +146 -0
- package/runtime/python/okstra_vendor/networkx/drawing/tests/test_pylab.py +1582 -0
- package/runtime/python/okstra_vendor/networkx/exception.py +131 -0
- package/runtime/python/okstra_vendor/networkx/generators/__init__.py +34 -0
- package/runtime/python/okstra_vendor/networkx/generators/atlas.dat.gz +0 -0
- package/runtime/python/okstra_vendor/networkx/generators/atlas.py +227 -0
- package/runtime/python/okstra_vendor/networkx/generators/classic.py +1091 -0
- package/runtime/python/okstra_vendor/networkx/generators/cographs.py +68 -0
- package/runtime/python/okstra_vendor/networkx/generators/community.py +1070 -0
- package/runtime/python/okstra_vendor/networkx/generators/degree_seq.py +886 -0
- package/runtime/python/okstra_vendor/networkx/generators/directed.py +572 -0
- package/runtime/python/okstra_vendor/networkx/generators/duplication.py +174 -0
- package/runtime/python/okstra_vendor/networkx/generators/ego.py +66 -0
- package/runtime/python/okstra_vendor/networkx/generators/expanders.py +499 -0
- package/runtime/python/okstra_vendor/networkx/generators/geometric.py +1037 -0
- package/runtime/python/okstra_vendor/networkx/generators/harary_graph.py +163 -0
- package/runtime/python/okstra_vendor/networkx/generators/internet_as_graphs.py +443 -0
- package/runtime/python/okstra_vendor/networkx/generators/intersection.py +125 -0
- package/runtime/python/okstra_vendor/networkx/generators/interval_graph.py +70 -0
- package/runtime/python/okstra_vendor/networkx/generators/joint_degree_seq.py +664 -0
- package/runtime/python/okstra_vendor/networkx/generators/lattice.py +405 -0
- package/runtime/python/okstra_vendor/networkx/generators/line.py +501 -0
- package/runtime/python/okstra_vendor/networkx/generators/mycielski.py +110 -0
- package/runtime/python/okstra_vendor/networkx/generators/nonisomorphic_trees.py +259 -0
- package/runtime/python/okstra_vendor/networkx/generators/random_clustered.py +117 -0
- package/runtime/python/okstra_vendor/networkx/generators/random_graphs.py +1416 -0
- package/runtime/python/okstra_vendor/networkx/generators/small.py +1070 -0
- package/runtime/python/okstra_vendor/networkx/generators/social.py +554 -0
- package/runtime/python/okstra_vendor/networkx/generators/spectral_graph_forge.py +120 -0
- package/runtime/python/okstra_vendor/networkx/generators/stochastic.py +54 -0
- package/runtime/python/okstra_vendor/networkx/generators/sudoku.py +131 -0
- package/runtime/python/okstra_vendor/networkx/generators/tests/__init__.py +0 -0
- package/runtime/python/okstra_vendor/networkx/generators/tests/test_atlas.py +75 -0
- package/runtime/python/okstra_vendor/networkx/generators/tests/test_classic.py +642 -0
- package/runtime/python/okstra_vendor/networkx/generators/tests/test_cographs.py +20 -0
- package/runtime/python/okstra_vendor/networkx/generators/tests/test_community.py +362 -0
- package/runtime/python/okstra_vendor/networkx/generators/tests/test_degree_seq.py +224 -0
- package/runtime/python/okstra_vendor/networkx/generators/tests/test_directed.py +189 -0
- package/runtime/python/okstra_vendor/networkx/generators/tests/test_duplication.py +103 -0
- package/runtime/python/okstra_vendor/networkx/generators/tests/test_ego.py +39 -0
- package/runtime/python/okstra_vendor/networkx/generators/tests/test_expanders.py +182 -0
- package/runtime/python/okstra_vendor/networkx/generators/tests/test_geometric.py +488 -0
- package/runtime/python/okstra_vendor/networkx/generators/tests/test_harary_graph.py +133 -0
- package/runtime/python/okstra_vendor/networkx/generators/tests/test_internet_as_graphs.py +221 -0
- package/runtime/python/okstra_vendor/networkx/generators/tests/test_intersection.py +28 -0
- package/runtime/python/okstra_vendor/networkx/generators/tests/test_interval_graph.py +144 -0
- package/runtime/python/okstra_vendor/networkx/generators/tests/test_joint_degree_seq.py +125 -0
- package/runtime/python/okstra_vendor/networkx/generators/tests/test_lattice.py +264 -0
- package/runtime/python/okstra_vendor/networkx/generators/tests/test_line.py +316 -0
- package/runtime/python/okstra_vendor/networkx/generators/tests/test_mycielski.py +30 -0
- package/runtime/python/okstra_vendor/networkx/generators/tests/test_nonisomorphic_trees.py +82 -0
- package/runtime/python/okstra_vendor/networkx/generators/tests/test_random_clustered.py +33 -0
- package/runtime/python/okstra_vendor/networkx/generators/tests/test_random_graphs.py +495 -0
- package/runtime/python/okstra_vendor/networkx/generators/tests/test_small.py +220 -0
- package/runtime/python/okstra_vendor/networkx/generators/tests/test_spectral_graph_forge.py +49 -0
- package/runtime/python/okstra_vendor/networkx/generators/tests/test_stochastic.py +72 -0
- package/runtime/python/okstra_vendor/networkx/generators/tests/test_sudoku.py +92 -0
- package/runtime/python/okstra_vendor/networkx/generators/tests/test_time_series.py +64 -0
- package/runtime/python/okstra_vendor/networkx/generators/tests/test_trees.py +195 -0
- package/runtime/python/okstra_vendor/networkx/generators/tests/test_triads.py +15 -0
- package/runtime/python/okstra_vendor/networkx/generators/time_series.py +74 -0
- package/runtime/python/okstra_vendor/networkx/generators/trees.py +1070 -0
- package/runtime/python/okstra_vendor/networkx/generators/triads.py +94 -0
- package/runtime/python/okstra_vendor/networkx/lazy_imports.py +188 -0
- package/runtime/python/okstra_vendor/networkx/linalg/__init__.py +13 -0
- package/runtime/python/okstra_vendor/networkx/linalg/algebraicconnectivity.py +650 -0
- package/runtime/python/okstra_vendor/networkx/linalg/attrmatrix.py +466 -0
- package/runtime/python/okstra_vendor/networkx/linalg/bethehessianmatrix.py +77 -0
- package/runtime/python/okstra_vendor/networkx/linalg/graphmatrix.py +168 -0
- package/runtime/python/okstra_vendor/networkx/linalg/laplacianmatrix.py +512 -0
- package/runtime/python/okstra_vendor/networkx/linalg/modularitymatrix.py +166 -0
- package/runtime/python/okstra_vendor/networkx/linalg/spectrum.py +186 -0
- package/runtime/python/okstra_vendor/networkx/linalg/tests/__init__.py +0 -0
- package/runtime/python/okstra_vendor/networkx/linalg/tests/test_algebraic_connectivity.py +400 -0
- package/runtime/python/okstra_vendor/networkx/linalg/tests/test_attrmatrix.py +108 -0
- package/runtime/python/okstra_vendor/networkx/linalg/tests/test_bethehessian.py +40 -0
- package/runtime/python/okstra_vendor/networkx/linalg/tests/test_graphmatrix.py +275 -0
- package/runtime/python/okstra_vendor/networkx/linalg/tests/test_laplacian.py +334 -0
- package/runtime/python/okstra_vendor/networkx/linalg/tests/test_modularity.py +86 -0
- package/runtime/python/okstra_vendor/networkx/linalg/tests/test_spectrum.py +70 -0
- package/runtime/python/okstra_vendor/networkx/readwrite/__init__.py +17 -0
- package/runtime/python/okstra_vendor/networkx/readwrite/adjlist.py +330 -0
- package/runtime/python/okstra_vendor/networkx/readwrite/edgelist.py +489 -0
- package/runtime/python/okstra_vendor/networkx/readwrite/gexf.py +1084 -0
- package/runtime/python/okstra_vendor/networkx/readwrite/gml.py +879 -0
- package/runtime/python/okstra_vendor/networkx/readwrite/graph6.py +427 -0
- package/runtime/python/okstra_vendor/networkx/readwrite/graphml.py +1053 -0
- package/runtime/python/okstra_vendor/networkx/readwrite/json_graph/__init__.py +19 -0
- package/runtime/python/okstra_vendor/networkx/readwrite/json_graph/adjacency.py +156 -0
- package/runtime/python/okstra_vendor/networkx/readwrite/json_graph/cytoscape.py +190 -0
- package/runtime/python/okstra_vendor/networkx/readwrite/json_graph/node_link.py +261 -0
- package/runtime/python/okstra_vendor/networkx/readwrite/json_graph/tests/__init__.py +0 -0
- package/runtime/python/okstra_vendor/networkx/readwrite/json_graph/tests/test_adjacency.py +78 -0
- package/runtime/python/okstra_vendor/networkx/readwrite/json_graph/tests/test_cytoscape.py +78 -0
- package/runtime/python/okstra_vendor/networkx/readwrite/json_graph/tests/test_node_link.py +109 -0
- package/runtime/python/okstra_vendor/networkx/readwrite/json_graph/tests/test_tree.py +48 -0
- package/runtime/python/okstra_vendor/networkx/readwrite/json_graph/tree.py +137 -0
- package/runtime/python/okstra_vendor/networkx/readwrite/leda.py +108 -0
- package/runtime/python/okstra_vendor/networkx/readwrite/multiline_adjlist.py +393 -0
- package/runtime/python/okstra_vendor/networkx/readwrite/p2g.py +113 -0
- package/runtime/python/okstra_vendor/networkx/readwrite/pajek.py +286 -0
- package/runtime/python/okstra_vendor/networkx/readwrite/sparse6.py +379 -0
- package/runtime/python/okstra_vendor/networkx/readwrite/tests/__init__.py +0 -0
- package/runtime/python/okstra_vendor/networkx/readwrite/tests/test_adjlist.py +354 -0
- package/runtime/python/okstra_vendor/networkx/readwrite/tests/test_edgelist.py +318 -0
- package/runtime/python/okstra_vendor/networkx/readwrite/tests/test_gexf.py +612 -0
- package/runtime/python/okstra_vendor/networkx/readwrite/tests/test_gml.py +744 -0
- package/runtime/python/okstra_vendor/networkx/readwrite/tests/test_graph6.py +181 -0
- package/runtime/python/okstra_vendor/networkx/readwrite/tests/test_graphml.py +1531 -0
- package/runtime/python/okstra_vendor/networkx/readwrite/tests/test_leda.py +30 -0
- package/runtime/python/okstra_vendor/networkx/readwrite/tests/test_p2g.py +63 -0
- package/runtime/python/okstra_vendor/networkx/readwrite/tests/test_pajek.py +128 -0
- package/runtime/python/okstra_vendor/networkx/readwrite/tests/test_sparse6.py +166 -0
- package/runtime/python/okstra_vendor/networkx/readwrite/tests/test_text.py +1742 -0
- package/runtime/python/okstra_vendor/networkx/readwrite/text.py +851 -0
- package/runtime/python/okstra_vendor/networkx/relabel.py +285 -0
- package/runtime/python/okstra_vendor/networkx/tests/__init__.py +0 -0
- package/runtime/python/okstra_vendor/networkx/tests/test_all_random_functions.py +248 -0
- package/runtime/python/okstra_vendor/networkx/tests/test_convert.py +321 -0
- package/runtime/python/okstra_vendor/networkx/tests/test_convert_numpy.py +531 -0
- package/runtime/python/okstra_vendor/networkx/tests/test_convert_pandas.py +349 -0
- package/runtime/python/okstra_vendor/networkx/tests/test_convert_scipy.py +281 -0
- package/runtime/python/okstra_vendor/networkx/tests/test_exceptions.py +40 -0
- package/runtime/python/okstra_vendor/networkx/tests/test_import.py +11 -0
- package/runtime/python/okstra_vendor/networkx/tests/test_lazy_imports.py +96 -0
- package/runtime/python/okstra_vendor/networkx/tests/test_relabel.py +349 -0
- package/runtime/python/okstra_vendor/networkx/tests/test_removed_functions_exception_messages.py +8 -0
- package/runtime/python/okstra_vendor/networkx/utils/__init__.py +8 -0
- package/runtime/python/okstra_vendor/networkx/utils/backends.py +2171 -0
- package/runtime/python/okstra_vendor/networkx/utils/configs.py +396 -0
- package/runtime/python/okstra_vendor/networkx/utils/decorators.py +1233 -0
- package/runtime/python/okstra_vendor/networkx/utils/heaps.py +338 -0
- package/runtime/python/okstra_vendor/networkx/utils/mapped_queue.py +297 -0
- package/runtime/python/okstra_vendor/networkx/utils/misc.py +703 -0
- package/runtime/python/okstra_vendor/networkx/utils/random_sequence.py +198 -0
- package/runtime/python/okstra_vendor/networkx/utils/rcm.py +159 -0
- package/runtime/python/okstra_vendor/networkx/utils/tests/__init__.py +0 -0
- package/runtime/python/okstra_vendor/networkx/utils/tests/test__init.py +11 -0
- package/runtime/python/okstra_vendor/networkx/utils/tests/test_backends.py +225 -0
- package/runtime/python/okstra_vendor/networkx/utils/tests/test_config.py +263 -0
- package/runtime/python/okstra_vendor/networkx/utils/tests/test_decorators.py +510 -0
- package/runtime/python/okstra_vendor/networkx/utils/tests/test_heaps.py +131 -0
- package/runtime/python/okstra_vendor/networkx/utils/tests/test_mapped_queue.py +268 -0
- package/runtime/python/okstra_vendor/networkx/utils/tests/test_misc.py +393 -0
- package/runtime/python/okstra_vendor/networkx/utils/tests/test_random_sequence.py +53 -0
- package/runtime/python/okstra_vendor/networkx/utils/tests/test_rcm.py +63 -0
- package/runtime/python/okstra_vendor/networkx/utils/tests/test_unionfind.py +55 -0
- package/runtime/python/okstra_vendor/networkx/utils/union_find.py +106 -0
- package/runtime/skills/okstra-graphify/SKILL.md +161 -0
- package/runtime/skills/okstra-inspect/SKILL.md +17 -9
- package/runtime/templates/reports/settings.template.json +4 -0
- package/src/cli-registry.mjs +7 -0
- package/src/commands/graphify.mjs +32 -0
- package/src/commands/lifecycle/doctor.mjs +9 -0
- package/src/lib/skill-catalog.mjs +1 -0
|
@@ -0,0 +1,616 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Flow based cut algorithms
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
import itertools
|
|
6
|
+
|
|
7
|
+
import networkx as nx
|
|
8
|
+
|
|
9
|
+
# Define the default maximum flow function to use in all flow based
|
|
10
|
+
# cut algorithms.
|
|
11
|
+
from networkx.algorithms.flow import build_residual_network, edmonds_karp
|
|
12
|
+
|
|
13
|
+
from .utils import build_auxiliary_edge_connectivity, build_auxiliary_node_connectivity
|
|
14
|
+
|
|
15
|
+
default_flow_func = edmonds_karp
|
|
16
|
+
|
|
17
|
+
__all__ = [
|
|
18
|
+
"minimum_st_node_cut",
|
|
19
|
+
"minimum_node_cut",
|
|
20
|
+
"minimum_st_edge_cut",
|
|
21
|
+
"minimum_edge_cut",
|
|
22
|
+
]
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
@nx._dispatchable(
|
|
26
|
+
graphs={"G": 0, "auxiliary?": 4},
|
|
27
|
+
preserve_edge_attrs={"auxiliary": {"capacity": float("inf")}},
|
|
28
|
+
preserve_graph_attrs={"auxiliary"},
|
|
29
|
+
)
|
|
30
|
+
def minimum_st_edge_cut(G, s, t, flow_func=None, auxiliary=None, residual=None):
|
|
31
|
+
"""Returns the edges of the cut-set of a minimum (s, t)-cut.
|
|
32
|
+
|
|
33
|
+
This function returns the set of edges of minimum cardinality that,
|
|
34
|
+
if removed, would destroy all paths among source and target in G.
|
|
35
|
+
Edge weights are not considered. See :meth:`minimum_cut` for
|
|
36
|
+
computing minimum cuts considering edge weights.
|
|
37
|
+
|
|
38
|
+
Parameters
|
|
39
|
+
----------
|
|
40
|
+
G : NetworkX graph
|
|
41
|
+
|
|
42
|
+
s : node
|
|
43
|
+
Source node for the flow.
|
|
44
|
+
|
|
45
|
+
t : node
|
|
46
|
+
Sink node for the flow.
|
|
47
|
+
|
|
48
|
+
auxiliary : NetworkX DiGraph
|
|
49
|
+
Auxiliary digraph to compute flow based node connectivity. It has
|
|
50
|
+
to have a graph attribute called mapping with a dictionary mapping
|
|
51
|
+
node names in G and in the auxiliary digraph. If provided
|
|
52
|
+
it will be reused instead of recreated. Default value: None.
|
|
53
|
+
|
|
54
|
+
flow_func : function
|
|
55
|
+
A function for computing the maximum flow among a pair of nodes.
|
|
56
|
+
The function has to accept at least three parameters: a Digraph,
|
|
57
|
+
a source node, and a target node. And return a residual network
|
|
58
|
+
that follows NetworkX conventions (see :meth:`maximum_flow` for
|
|
59
|
+
details). If flow_func is None, the default maximum flow function
|
|
60
|
+
(:meth:`edmonds_karp`) is used. See :meth:`node_connectivity` for
|
|
61
|
+
details. The choice of the default function may change from version
|
|
62
|
+
to version and should not be relied on. Default value: None.
|
|
63
|
+
|
|
64
|
+
residual : NetworkX DiGraph
|
|
65
|
+
Residual network to compute maximum flow. If provided it will be
|
|
66
|
+
reused instead of recreated. Default value: None.
|
|
67
|
+
|
|
68
|
+
Returns
|
|
69
|
+
-------
|
|
70
|
+
cutset : set
|
|
71
|
+
Set of edges that, if removed from the graph, will disconnect it.
|
|
72
|
+
|
|
73
|
+
See also
|
|
74
|
+
--------
|
|
75
|
+
:meth:`minimum_cut`
|
|
76
|
+
:meth:`minimum_node_cut`
|
|
77
|
+
:meth:`minimum_edge_cut`
|
|
78
|
+
:meth:`stoer_wagner`
|
|
79
|
+
:meth:`node_connectivity`
|
|
80
|
+
:meth:`edge_connectivity`
|
|
81
|
+
:meth:`maximum_flow`
|
|
82
|
+
:meth:`edmonds_karp`
|
|
83
|
+
:meth:`preflow_push`
|
|
84
|
+
:meth:`shortest_augmenting_path`
|
|
85
|
+
|
|
86
|
+
Examples
|
|
87
|
+
--------
|
|
88
|
+
This function is not imported in the base NetworkX namespace, so you
|
|
89
|
+
have to explicitly import it from the connectivity package:
|
|
90
|
+
|
|
91
|
+
>>> from networkx.algorithms.connectivity import minimum_st_edge_cut
|
|
92
|
+
|
|
93
|
+
We use in this example the platonic icosahedral graph, which has edge
|
|
94
|
+
connectivity 5.
|
|
95
|
+
|
|
96
|
+
>>> G = nx.icosahedral_graph()
|
|
97
|
+
>>> len(minimum_st_edge_cut(G, 0, 6))
|
|
98
|
+
5
|
|
99
|
+
|
|
100
|
+
If you need to compute local edge cuts on several pairs of
|
|
101
|
+
nodes in the same graph, it is recommended that you reuse the
|
|
102
|
+
data structures that NetworkX uses in the computation: the
|
|
103
|
+
auxiliary digraph for edge connectivity, and the residual
|
|
104
|
+
network for the underlying maximum flow computation.
|
|
105
|
+
|
|
106
|
+
Example of how to compute local edge cuts among all pairs of
|
|
107
|
+
nodes of the platonic icosahedral graph reusing the data
|
|
108
|
+
structures.
|
|
109
|
+
|
|
110
|
+
>>> import itertools
|
|
111
|
+
>>> # You also have to explicitly import the function for
|
|
112
|
+
>>> # building the auxiliary digraph from the connectivity package
|
|
113
|
+
>>> from networkx.algorithms.connectivity import build_auxiliary_edge_connectivity
|
|
114
|
+
>>> H = build_auxiliary_edge_connectivity(G)
|
|
115
|
+
>>> # And the function for building the residual network from the
|
|
116
|
+
>>> # flow package
|
|
117
|
+
>>> from networkx.algorithms.flow import build_residual_network
|
|
118
|
+
>>> # Note that the auxiliary digraph has an edge attribute named capacity
|
|
119
|
+
>>> R = build_residual_network(H, "capacity")
|
|
120
|
+
>>> result = dict.fromkeys(G, dict())
|
|
121
|
+
>>> # Reuse the auxiliary digraph and the residual network by passing them
|
|
122
|
+
>>> # as parameters
|
|
123
|
+
>>> for u, v in itertools.combinations(G, 2):
|
|
124
|
+
... k = len(minimum_st_edge_cut(G, u, v, auxiliary=H, residual=R))
|
|
125
|
+
... result[u][v] = k
|
|
126
|
+
>>> all(result[u][v] == 5 for u, v in itertools.combinations(G, 2))
|
|
127
|
+
True
|
|
128
|
+
|
|
129
|
+
You can also use alternative flow algorithms for computing edge
|
|
130
|
+
cuts. For instance, in dense networks the algorithm
|
|
131
|
+
:meth:`shortest_augmenting_path` will usually perform better than
|
|
132
|
+
the default :meth:`edmonds_karp` which is faster for sparse
|
|
133
|
+
networks with highly skewed degree distributions. Alternative flow
|
|
134
|
+
functions have to be explicitly imported from the flow package.
|
|
135
|
+
|
|
136
|
+
>>> from networkx.algorithms.flow import shortest_augmenting_path
|
|
137
|
+
>>> len(minimum_st_edge_cut(G, 0, 6, flow_func=shortest_augmenting_path))
|
|
138
|
+
5
|
|
139
|
+
|
|
140
|
+
"""
|
|
141
|
+
if flow_func is None:
|
|
142
|
+
flow_func = default_flow_func
|
|
143
|
+
|
|
144
|
+
if auxiliary is None:
|
|
145
|
+
H = build_auxiliary_edge_connectivity(G)
|
|
146
|
+
else:
|
|
147
|
+
H = auxiliary
|
|
148
|
+
|
|
149
|
+
kwargs = {"capacity": "capacity", "flow_func": flow_func, "residual": residual}
|
|
150
|
+
|
|
151
|
+
cut_value, partition = nx.minimum_cut(H, s, t, **kwargs)
|
|
152
|
+
reachable, non_reachable = partition
|
|
153
|
+
# Any edge in the original graph linking the two sets in the
|
|
154
|
+
# partition is part of the edge cutset
|
|
155
|
+
cutset = set()
|
|
156
|
+
for u, nbrs in ((n, G[n]) for n in reachable):
|
|
157
|
+
cutset.update((u, v) for v in nbrs if v in non_reachable)
|
|
158
|
+
|
|
159
|
+
return cutset
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
@nx._dispatchable(
|
|
163
|
+
graphs={"G": 0, "auxiliary?": 4},
|
|
164
|
+
preserve_node_attrs={"auxiliary": {"id": None}},
|
|
165
|
+
preserve_graph_attrs={"auxiliary"},
|
|
166
|
+
)
|
|
167
|
+
def minimum_st_node_cut(G, s, t, flow_func=None, auxiliary=None, residual=None):
|
|
168
|
+
r"""Returns a set of nodes of minimum cardinality that disconnect source
|
|
169
|
+
from target in G.
|
|
170
|
+
|
|
171
|
+
This function returns the set of nodes of minimum cardinality that,
|
|
172
|
+
if removed, would destroy all paths among source and target in G.
|
|
173
|
+
|
|
174
|
+
Parameters
|
|
175
|
+
----------
|
|
176
|
+
G : NetworkX graph
|
|
177
|
+
|
|
178
|
+
s : node
|
|
179
|
+
Source node.
|
|
180
|
+
|
|
181
|
+
t : node
|
|
182
|
+
Target node.
|
|
183
|
+
|
|
184
|
+
flow_func : function
|
|
185
|
+
A function for computing the maximum flow among a pair of nodes.
|
|
186
|
+
The function has to accept at least three parameters: a Digraph,
|
|
187
|
+
a source node, and a target node. And return a residual network
|
|
188
|
+
that follows NetworkX conventions (see :meth:`maximum_flow` for
|
|
189
|
+
details). If flow_func is None, the default maximum flow function
|
|
190
|
+
(:meth:`edmonds_karp`) is used. See below for details. The choice
|
|
191
|
+
of the default function may change from version to version and
|
|
192
|
+
should not be relied on. Default value: None.
|
|
193
|
+
|
|
194
|
+
auxiliary : NetworkX DiGraph
|
|
195
|
+
Auxiliary digraph to compute flow based node connectivity. It has
|
|
196
|
+
to have a graph attribute called mapping with a dictionary mapping
|
|
197
|
+
node names in G and in the auxiliary digraph. If provided
|
|
198
|
+
it will be reused instead of recreated. Default value: None.
|
|
199
|
+
|
|
200
|
+
residual : NetworkX DiGraph
|
|
201
|
+
Residual network to compute maximum flow. If provided it will be
|
|
202
|
+
reused instead of recreated. Default value: None.
|
|
203
|
+
|
|
204
|
+
Returns
|
|
205
|
+
-------
|
|
206
|
+
cutset : set
|
|
207
|
+
Set of nodes that, if removed, would destroy all paths between
|
|
208
|
+
source and target in G.
|
|
209
|
+
|
|
210
|
+
Returns an empty set if source and target are either in different
|
|
211
|
+
components or are directly connected by an edge, as no node removal
|
|
212
|
+
can destroy the path.
|
|
213
|
+
|
|
214
|
+
Examples
|
|
215
|
+
--------
|
|
216
|
+
This function is not imported in the base NetworkX namespace, so you
|
|
217
|
+
have to explicitly import it from the connectivity package:
|
|
218
|
+
|
|
219
|
+
>>> from networkx.algorithms.connectivity import minimum_st_node_cut
|
|
220
|
+
|
|
221
|
+
We use in this example the platonic icosahedral graph, which has node
|
|
222
|
+
connectivity 5.
|
|
223
|
+
|
|
224
|
+
>>> G = nx.icosahedral_graph()
|
|
225
|
+
>>> len(minimum_st_node_cut(G, 0, 6))
|
|
226
|
+
5
|
|
227
|
+
|
|
228
|
+
If you need to compute local st cuts between several pairs of
|
|
229
|
+
nodes in the same graph, it is recommended that you reuse the
|
|
230
|
+
data structures that NetworkX uses in the computation: the
|
|
231
|
+
auxiliary digraph for node connectivity and node cuts, and the
|
|
232
|
+
residual network for the underlying maximum flow computation.
|
|
233
|
+
|
|
234
|
+
Example of how to compute local st node cuts reusing the data
|
|
235
|
+
structures:
|
|
236
|
+
|
|
237
|
+
>>> # You also have to explicitly import the function for
|
|
238
|
+
>>> # building the auxiliary digraph from the connectivity package
|
|
239
|
+
>>> from networkx.algorithms.connectivity import build_auxiliary_node_connectivity
|
|
240
|
+
>>> H = build_auxiliary_node_connectivity(G)
|
|
241
|
+
>>> # And the function for building the residual network from the
|
|
242
|
+
>>> # flow package
|
|
243
|
+
>>> from networkx.algorithms.flow import build_residual_network
|
|
244
|
+
>>> # Note that the auxiliary digraph has an edge attribute named capacity
|
|
245
|
+
>>> R = build_residual_network(H, "capacity")
|
|
246
|
+
>>> # Reuse the auxiliary digraph and the residual network by passing them
|
|
247
|
+
>>> # as parameters
|
|
248
|
+
>>> len(minimum_st_node_cut(G, 0, 6, auxiliary=H, residual=R))
|
|
249
|
+
5
|
|
250
|
+
|
|
251
|
+
You can also use alternative flow algorithms for computing minimum st
|
|
252
|
+
node cuts. For instance, in dense networks the algorithm
|
|
253
|
+
:meth:`shortest_augmenting_path` will usually perform better than
|
|
254
|
+
the default :meth:`edmonds_karp` which is faster for sparse
|
|
255
|
+
networks with highly skewed degree distributions. Alternative flow
|
|
256
|
+
functions have to be explicitly imported from the flow package.
|
|
257
|
+
|
|
258
|
+
>>> from networkx.algorithms.flow import shortest_augmenting_path
|
|
259
|
+
>>> len(minimum_st_node_cut(G, 0, 6, flow_func=shortest_augmenting_path))
|
|
260
|
+
5
|
|
261
|
+
|
|
262
|
+
Notes
|
|
263
|
+
-----
|
|
264
|
+
This is a flow based implementation of minimum node cut. The algorithm
|
|
265
|
+
is based in solving a number of maximum flow computations to determine
|
|
266
|
+
the capacity of the minimum cut on an auxiliary directed network that
|
|
267
|
+
corresponds to the minimum node cut of G. It handles both directed
|
|
268
|
+
and undirected graphs. This implementation is based on algorithm 11
|
|
269
|
+
in [1]_.
|
|
270
|
+
|
|
271
|
+
See also
|
|
272
|
+
--------
|
|
273
|
+
:meth:`minimum_node_cut`
|
|
274
|
+
:meth:`minimum_edge_cut`
|
|
275
|
+
:meth:`stoer_wagner`
|
|
276
|
+
:meth:`node_connectivity`
|
|
277
|
+
:meth:`edge_connectivity`
|
|
278
|
+
:meth:`maximum_flow`
|
|
279
|
+
:meth:`edmonds_karp`
|
|
280
|
+
:meth:`preflow_push`
|
|
281
|
+
:meth:`shortest_augmenting_path`
|
|
282
|
+
|
|
283
|
+
References
|
|
284
|
+
----------
|
|
285
|
+
.. [1] Abdol-Hossein Esfahanian. Connectivity Algorithms.
|
|
286
|
+
http://www.cse.msu.edu/~cse835/Papers/Graph_connectivity_revised.pdf
|
|
287
|
+
|
|
288
|
+
"""
|
|
289
|
+
if auxiliary is None:
|
|
290
|
+
H = build_auxiliary_node_connectivity(G)
|
|
291
|
+
else:
|
|
292
|
+
H = auxiliary
|
|
293
|
+
|
|
294
|
+
mapping = H.graph.get("mapping", None)
|
|
295
|
+
if mapping is None:
|
|
296
|
+
raise nx.NetworkXError("Invalid auxiliary digraph.")
|
|
297
|
+
if G.has_edge(s, t) or G.has_edge(t, s):
|
|
298
|
+
return set()
|
|
299
|
+
kwargs = {"flow_func": flow_func, "residual": residual, "auxiliary": H}
|
|
300
|
+
|
|
301
|
+
# The edge cut in the auxiliary digraph corresponds to the node cut in the
|
|
302
|
+
# original graph.
|
|
303
|
+
edge_cut = minimum_st_edge_cut(H, f"{mapping[s]}B", f"{mapping[t]}A", **kwargs)
|
|
304
|
+
# Each node in the original graph maps to two nodes of the auxiliary graph
|
|
305
|
+
node_cut = {H.nodes[node]["id"] for edge in edge_cut for node in edge}
|
|
306
|
+
return node_cut - {s, t}
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
@nx._dispatchable
|
|
310
|
+
def minimum_node_cut(G, s=None, t=None, flow_func=None):
|
|
311
|
+
r"""Returns a set of nodes of minimum cardinality that disconnects G.
|
|
312
|
+
|
|
313
|
+
If source and target nodes are provided, this function returns the
|
|
314
|
+
set of nodes of minimum cardinality that, if removed, would destroy
|
|
315
|
+
all paths among source and target in G. If not, it returns a set
|
|
316
|
+
of nodes of minimum cardinality that disconnects G.
|
|
317
|
+
|
|
318
|
+
Parameters
|
|
319
|
+
----------
|
|
320
|
+
G : NetworkX graph
|
|
321
|
+
|
|
322
|
+
s : node
|
|
323
|
+
Source node. Optional. Default value: None.
|
|
324
|
+
|
|
325
|
+
t : node
|
|
326
|
+
Target node. Optional. Default value: None.
|
|
327
|
+
|
|
328
|
+
flow_func : function
|
|
329
|
+
A function for computing the maximum flow among a pair of nodes.
|
|
330
|
+
The function has to accept at least three parameters: a Digraph,
|
|
331
|
+
a source node, and a target node. And return a residual network
|
|
332
|
+
that follows NetworkX conventions (see :meth:`maximum_flow` for
|
|
333
|
+
details). If flow_func is None, the default maximum flow function
|
|
334
|
+
(:meth:`edmonds_karp`) is used. See below for details. The
|
|
335
|
+
choice of the default function may change from version
|
|
336
|
+
to version and should not be relied on. Default value: None.
|
|
337
|
+
|
|
338
|
+
Returns
|
|
339
|
+
-------
|
|
340
|
+
cutset : set
|
|
341
|
+
Set of nodes that, if removed, would disconnect G. If source
|
|
342
|
+
and target nodes are provided, the set contains the nodes that
|
|
343
|
+
if removed, would destroy all paths between source and target.
|
|
344
|
+
|
|
345
|
+
Examples
|
|
346
|
+
--------
|
|
347
|
+
>>> # Platonic icosahedral graph has node connectivity 5
|
|
348
|
+
>>> G = nx.icosahedral_graph()
|
|
349
|
+
>>> node_cut = nx.minimum_node_cut(G)
|
|
350
|
+
>>> len(node_cut)
|
|
351
|
+
5
|
|
352
|
+
|
|
353
|
+
You can use alternative flow algorithms for the underlying maximum
|
|
354
|
+
flow computation. In dense networks the algorithm
|
|
355
|
+
:meth:`shortest_augmenting_path` will usually perform better
|
|
356
|
+
than the default :meth:`edmonds_karp`, which is faster for
|
|
357
|
+
sparse networks with highly skewed degree distributions. Alternative
|
|
358
|
+
flow functions have to be explicitly imported from the flow package.
|
|
359
|
+
|
|
360
|
+
>>> from networkx.algorithms.flow import shortest_augmenting_path
|
|
361
|
+
>>> node_cut == nx.minimum_node_cut(G, flow_func=shortest_augmenting_path)
|
|
362
|
+
True
|
|
363
|
+
|
|
364
|
+
If you specify a pair of nodes (source and target) as parameters,
|
|
365
|
+
this function returns a local st node cut.
|
|
366
|
+
|
|
367
|
+
>>> len(nx.minimum_node_cut(G, 3, 7))
|
|
368
|
+
5
|
|
369
|
+
|
|
370
|
+
If you need to perform several local st cuts among different
|
|
371
|
+
pairs of nodes on the same graph, it is recommended that you reuse
|
|
372
|
+
the data structures used in the maximum flow computations. See
|
|
373
|
+
:meth:`minimum_st_node_cut` for details.
|
|
374
|
+
|
|
375
|
+
Notes
|
|
376
|
+
-----
|
|
377
|
+
This is a flow based implementation of minimum node cut. The algorithm
|
|
378
|
+
is based in solving a number of maximum flow computations to determine
|
|
379
|
+
the capacity of the minimum cut on an auxiliary directed network that
|
|
380
|
+
corresponds to the minimum node cut of G. It handles both directed
|
|
381
|
+
and undirected graphs. This implementation is based on algorithm 11
|
|
382
|
+
in [1]_.
|
|
383
|
+
|
|
384
|
+
See also
|
|
385
|
+
--------
|
|
386
|
+
:meth:`minimum_st_node_cut`
|
|
387
|
+
:meth:`minimum_cut`
|
|
388
|
+
:meth:`minimum_edge_cut`
|
|
389
|
+
:meth:`stoer_wagner`
|
|
390
|
+
:meth:`node_connectivity`
|
|
391
|
+
:meth:`edge_connectivity`
|
|
392
|
+
:meth:`maximum_flow`
|
|
393
|
+
:meth:`edmonds_karp`
|
|
394
|
+
:meth:`preflow_push`
|
|
395
|
+
:meth:`shortest_augmenting_path`
|
|
396
|
+
|
|
397
|
+
References
|
|
398
|
+
----------
|
|
399
|
+
.. [1] Abdol-Hossein Esfahanian. Connectivity Algorithms.
|
|
400
|
+
http://www.cse.msu.edu/~cse835/Papers/Graph_connectivity_revised.pdf
|
|
401
|
+
|
|
402
|
+
"""
|
|
403
|
+
if (s is not None and t is None) or (s is None and t is not None):
|
|
404
|
+
raise nx.NetworkXError("Both source and target must be specified.")
|
|
405
|
+
|
|
406
|
+
# Local minimum node cut.
|
|
407
|
+
if s is not None and t is not None:
|
|
408
|
+
if s not in G:
|
|
409
|
+
raise nx.NetworkXError(f"node {s} not in graph")
|
|
410
|
+
if t not in G:
|
|
411
|
+
raise nx.NetworkXError(f"node {t} not in graph")
|
|
412
|
+
return minimum_st_node_cut(G, s, t, flow_func=flow_func)
|
|
413
|
+
|
|
414
|
+
# Global minimum node cut.
|
|
415
|
+
# Analog to the algorithm 11 for global node connectivity in [1].
|
|
416
|
+
if G.is_directed():
|
|
417
|
+
if not nx.is_weakly_connected(G):
|
|
418
|
+
raise nx.NetworkXError("Input graph is not connected")
|
|
419
|
+
iter_func = itertools.permutations
|
|
420
|
+
|
|
421
|
+
def neighbors(v):
|
|
422
|
+
return itertools.chain.from_iterable([G.predecessors(v), G.successors(v)])
|
|
423
|
+
|
|
424
|
+
else:
|
|
425
|
+
if not nx.is_connected(G):
|
|
426
|
+
raise nx.NetworkXError("Input graph is not connected")
|
|
427
|
+
iter_func = itertools.combinations
|
|
428
|
+
neighbors = G.neighbors
|
|
429
|
+
|
|
430
|
+
# Reuse the auxiliary digraph and the residual network.
|
|
431
|
+
H = build_auxiliary_node_connectivity(G)
|
|
432
|
+
R = build_residual_network(H, "capacity")
|
|
433
|
+
kwargs = {"flow_func": flow_func, "auxiliary": H, "residual": R}
|
|
434
|
+
|
|
435
|
+
# Choose a node with minimum degree.
|
|
436
|
+
v = min(G, key=G.degree)
|
|
437
|
+
# Initial node cutset is all neighbors of the node with minimum degree.
|
|
438
|
+
min_cut = set(G[v])
|
|
439
|
+
# Compute st node cuts between v and all its non-neighbors nodes in G.
|
|
440
|
+
for w in set(G) - set(neighbors(v)) - {v}:
|
|
441
|
+
this_cut = minimum_st_node_cut(G, v, w, **kwargs)
|
|
442
|
+
if len(min_cut) >= len(this_cut):
|
|
443
|
+
min_cut = this_cut
|
|
444
|
+
# Also for non adjacent pairs of neighbors of v.
|
|
445
|
+
for x, y in iter_func(neighbors(v), 2):
|
|
446
|
+
if y in G[x]:
|
|
447
|
+
continue
|
|
448
|
+
this_cut = minimum_st_node_cut(G, x, y, **kwargs)
|
|
449
|
+
if len(min_cut) >= len(this_cut):
|
|
450
|
+
min_cut = this_cut
|
|
451
|
+
|
|
452
|
+
return min_cut
|
|
453
|
+
|
|
454
|
+
|
|
455
|
+
@nx._dispatchable
|
|
456
|
+
def minimum_edge_cut(G, s=None, t=None, flow_func=None):
|
|
457
|
+
r"""Returns a set of edges of minimum cardinality that disconnects G.
|
|
458
|
+
|
|
459
|
+
If source and target nodes are provided, this function returns the
|
|
460
|
+
set of edges of minimum cardinality that, if removed, would break
|
|
461
|
+
all paths among source and target in G. If not, it returns a set of
|
|
462
|
+
edges of minimum cardinality that disconnects G.
|
|
463
|
+
|
|
464
|
+
Parameters
|
|
465
|
+
----------
|
|
466
|
+
G : NetworkX graph
|
|
467
|
+
|
|
468
|
+
s : node
|
|
469
|
+
Source node. Optional. Default value: None.
|
|
470
|
+
|
|
471
|
+
t : node
|
|
472
|
+
Target node. Optional. Default value: None.
|
|
473
|
+
|
|
474
|
+
flow_func : function
|
|
475
|
+
A function for computing the maximum flow among a pair of nodes.
|
|
476
|
+
The function has to accept at least three parameters: a Digraph,
|
|
477
|
+
a source node, and a target node. And return a residual network
|
|
478
|
+
that follows NetworkX conventions (see :meth:`maximum_flow` for
|
|
479
|
+
details). If flow_func is None, the default maximum flow function
|
|
480
|
+
(:meth:`edmonds_karp`) is used. See below for details. The
|
|
481
|
+
choice of the default function may change from version
|
|
482
|
+
to version and should not be relied on. Default value: None.
|
|
483
|
+
|
|
484
|
+
Returns
|
|
485
|
+
-------
|
|
486
|
+
cutset : set
|
|
487
|
+
Set of edges that, if removed, would disconnect G. If source
|
|
488
|
+
and target nodes are provided, the set contains the edges that
|
|
489
|
+
if removed, would destroy all paths between source and target.
|
|
490
|
+
|
|
491
|
+
Examples
|
|
492
|
+
--------
|
|
493
|
+
>>> # Platonic icosahedral graph has edge connectivity 5
|
|
494
|
+
>>> G = nx.icosahedral_graph()
|
|
495
|
+
>>> len(nx.minimum_edge_cut(G))
|
|
496
|
+
5
|
|
497
|
+
|
|
498
|
+
You can use alternative flow algorithms for the underlying
|
|
499
|
+
maximum flow computation. In dense networks the algorithm
|
|
500
|
+
:meth:`shortest_augmenting_path` will usually perform better
|
|
501
|
+
than the default :meth:`edmonds_karp`, which is faster for
|
|
502
|
+
sparse networks with highly skewed degree distributions.
|
|
503
|
+
Alternative flow functions have to be explicitly imported
|
|
504
|
+
from the flow package.
|
|
505
|
+
|
|
506
|
+
>>> from networkx.algorithms.flow import shortest_augmenting_path
|
|
507
|
+
>>> len(nx.minimum_edge_cut(G, flow_func=shortest_augmenting_path))
|
|
508
|
+
5
|
|
509
|
+
|
|
510
|
+
If you specify a pair of nodes (source and target) as parameters,
|
|
511
|
+
this function returns the value of local edge connectivity.
|
|
512
|
+
|
|
513
|
+
>>> nx.edge_connectivity(G, 3, 7)
|
|
514
|
+
5
|
|
515
|
+
|
|
516
|
+
If you need to perform several local computations among different
|
|
517
|
+
pairs of nodes on the same graph, it is recommended that you reuse
|
|
518
|
+
the data structures used in the maximum flow computations. See
|
|
519
|
+
:meth:`local_edge_connectivity` for details.
|
|
520
|
+
|
|
521
|
+
Notes
|
|
522
|
+
-----
|
|
523
|
+
This is a flow based implementation of minimum edge cut. For
|
|
524
|
+
undirected graphs the algorithm works by finding a 'small' dominating
|
|
525
|
+
set of nodes of G (see algorithm 7 in [1]_) and computing the maximum
|
|
526
|
+
flow between an arbitrary node in the dominating set and the rest of
|
|
527
|
+
nodes in it. This is an implementation of algorithm 6 in [1]_. For
|
|
528
|
+
directed graphs, the algorithm does n calls to the max flow function.
|
|
529
|
+
The function raises an error if the directed graph is not weakly
|
|
530
|
+
connected and returns an empty set if it is weakly connected.
|
|
531
|
+
It is an implementation of algorithm 8 in [1]_.
|
|
532
|
+
|
|
533
|
+
See also
|
|
534
|
+
--------
|
|
535
|
+
:meth:`minimum_st_edge_cut`
|
|
536
|
+
:meth:`minimum_node_cut`
|
|
537
|
+
:meth:`stoer_wagner`
|
|
538
|
+
:meth:`node_connectivity`
|
|
539
|
+
:meth:`edge_connectivity`
|
|
540
|
+
:meth:`maximum_flow`
|
|
541
|
+
:meth:`edmonds_karp`
|
|
542
|
+
:meth:`preflow_push`
|
|
543
|
+
:meth:`shortest_augmenting_path`
|
|
544
|
+
|
|
545
|
+
References
|
|
546
|
+
----------
|
|
547
|
+
.. [1] Abdol-Hossein Esfahanian. Connectivity Algorithms.
|
|
548
|
+
http://www.cse.msu.edu/~cse835/Papers/Graph_connectivity_revised.pdf
|
|
549
|
+
|
|
550
|
+
"""
|
|
551
|
+
if (s is not None and t is None) or (s is None and t is not None):
|
|
552
|
+
raise nx.NetworkXError("Both source and target must be specified.")
|
|
553
|
+
|
|
554
|
+
# reuse auxiliary digraph and residual network
|
|
555
|
+
H = build_auxiliary_edge_connectivity(G)
|
|
556
|
+
R = build_residual_network(H, "capacity")
|
|
557
|
+
kwargs = {"flow_func": flow_func, "residual": R, "auxiliary": H}
|
|
558
|
+
|
|
559
|
+
# Local minimum edge cut if s and t are not None
|
|
560
|
+
if s is not None and t is not None:
|
|
561
|
+
if s not in G:
|
|
562
|
+
raise nx.NetworkXError(f"node {s} not in graph")
|
|
563
|
+
if t not in G:
|
|
564
|
+
raise nx.NetworkXError(f"node {t} not in graph")
|
|
565
|
+
return minimum_st_edge_cut(H, s, t, **kwargs)
|
|
566
|
+
|
|
567
|
+
# Global minimum edge cut
|
|
568
|
+
# Analog to the algorithm for global edge connectivity
|
|
569
|
+
if G.is_directed():
|
|
570
|
+
# Based on algorithm 8 in [1]
|
|
571
|
+
if not nx.is_weakly_connected(G):
|
|
572
|
+
raise nx.NetworkXError("Input graph is not connected")
|
|
573
|
+
|
|
574
|
+
# Initial cutset is all edges of a node with minimum degree
|
|
575
|
+
node = min(G, key=G.degree)
|
|
576
|
+
min_cut = set(G.edges(node))
|
|
577
|
+
nodes = list(G)
|
|
578
|
+
n = len(nodes)
|
|
579
|
+
for i in range(n):
|
|
580
|
+
try:
|
|
581
|
+
this_cut = minimum_st_edge_cut(H, nodes[i], nodes[i + 1], **kwargs)
|
|
582
|
+
if len(this_cut) <= len(min_cut):
|
|
583
|
+
min_cut = this_cut
|
|
584
|
+
except IndexError: # Last node!
|
|
585
|
+
this_cut = minimum_st_edge_cut(H, nodes[i], nodes[0], **kwargs)
|
|
586
|
+
if len(this_cut) <= len(min_cut):
|
|
587
|
+
min_cut = this_cut
|
|
588
|
+
|
|
589
|
+
return min_cut
|
|
590
|
+
|
|
591
|
+
else: # undirected
|
|
592
|
+
# Based on algorithm 6 in [1]
|
|
593
|
+
if not nx.is_connected(G):
|
|
594
|
+
raise nx.NetworkXError("Input graph is not connected")
|
|
595
|
+
|
|
596
|
+
# Initial cutset is all edges of a node with minimum degree
|
|
597
|
+
node = min(G, key=G.degree)
|
|
598
|
+
min_cut = set(G.edges(node))
|
|
599
|
+
# A dominating set is \lambda-covering
|
|
600
|
+
# We need a dominating set with at least two nodes
|
|
601
|
+
for node in G:
|
|
602
|
+
D = nx.dominating_set(G, start_with=node)
|
|
603
|
+
v = D.pop()
|
|
604
|
+
if D:
|
|
605
|
+
break
|
|
606
|
+
else:
|
|
607
|
+
# in complete graphs the dominating set will always be of one node
|
|
608
|
+
# thus we return min_cut, which now contains the edges of a node
|
|
609
|
+
# with minimum degree
|
|
610
|
+
return min_cut
|
|
611
|
+
for w in D:
|
|
612
|
+
this_cut = minimum_st_edge_cut(H, v, w, **kwargs)
|
|
613
|
+
if len(this_cut) <= len(min_cut):
|
|
614
|
+
min_cut = this_cut
|
|
615
|
+
|
|
616
|
+
return min_cut
|