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,33 @@
|
|
|
1
|
+
import pytest
|
|
2
|
+
|
|
3
|
+
import networkx as nx
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class TestRandomClusteredGraph:
|
|
7
|
+
def test_custom_joint_degree_sequence(self):
|
|
8
|
+
node = [1, 1, 1, 2, 1, 2, 0, 0]
|
|
9
|
+
tri = [0, 0, 0, 0, 0, 1, 1, 1]
|
|
10
|
+
joint_degree_sequence = zip(node, tri)
|
|
11
|
+
G = nx.random_clustered_graph(joint_degree_sequence)
|
|
12
|
+
assert G.number_of_nodes() == 8
|
|
13
|
+
assert G.number_of_edges() == 7
|
|
14
|
+
|
|
15
|
+
def test_tuple_joint_degree_sequence(self):
|
|
16
|
+
G = nx.random_clustered_graph([(1, 2), (2, 1), (1, 1), (1, 1), (1, 1), (2, 0)])
|
|
17
|
+
assert G.number_of_nodes() == 6
|
|
18
|
+
assert G.number_of_edges() == 10
|
|
19
|
+
|
|
20
|
+
def test_invalid_joint_degree_sequence_type(self):
|
|
21
|
+
with pytest.raises(nx.NetworkXError, match="Invalid degree sequence"):
|
|
22
|
+
nx.random_clustered_graph([[1, 1], [2, 1], [0, 1]])
|
|
23
|
+
|
|
24
|
+
def test_invalid_joint_degree_sequence_value(self):
|
|
25
|
+
with pytest.raises(nx.NetworkXError, match="Invalid degree sequence"):
|
|
26
|
+
nx.random_clustered_graph([[1, 1], [1, 2], [0, 1]])
|
|
27
|
+
|
|
28
|
+
def test_directed_graph_raises_error(self):
|
|
29
|
+
with pytest.raises(nx.NetworkXError, match="Directed Graph not supported"):
|
|
30
|
+
nx.random_clustered_graph(
|
|
31
|
+
[(1, 2), (2, 1), (1, 1), (1, 1), (1, 1), (2, 0)],
|
|
32
|
+
create_using=nx.DiGraph,
|
|
33
|
+
)
|
|
@@ -0,0 +1,495 @@
|
|
|
1
|
+
"""Unit tests for the :mod:`networkx.generators.random_graphs` module."""
|
|
2
|
+
|
|
3
|
+
import pytest
|
|
4
|
+
|
|
5
|
+
import networkx as nx
|
|
6
|
+
|
|
7
|
+
_gnp_generators = [
|
|
8
|
+
nx.gnp_random_graph,
|
|
9
|
+
nx.fast_gnp_random_graph,
|
|
10
|
+
nx.binomial_graph,
|
|
11
|
+
nx.erdos_renyi_graph,
|
|
12
|
+
]
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
@pytest.mark.parametrize("generator", _gnp_generators)
|
|
16
|
+
@pytest.mark.parametrize("directed", (True, False))
|
|
17
|
+
def test_gnp_generators_negative_edge_probability(generator, directed):
|
|
18
|
+
"""If the edge probability `p` is <=0, the resulting graph should have no edges."""
|
|
19
|
+
G = generator(10, -1.1, directed=directed)
|
|
20
|
+
assert len(G) == 10
|
|
21
|
+
assert G.number_of_edges() == 0
|
|
22
|
+
assert G.is_directed() == directed
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
@pytest.mark.parametrize("generator", _gnp_generators)
|
|
26
|
+
@pytest.mark.parametrize(
|
|
27
|
+
("directed", "expected_num_edges"),
|
|
28
|
+
[(False, 45), (True, 90)],
|
|
29
|
+
)
|
|
30
|
+
def test_gnp_generators_greater_than_1_edge_probability(
|
|
31
|
+
generator, directed, expected_num_edges
|
|
32
|
+
):
|
|
33
|
+
"""If the edge probability `p` is >=1, the resulting graph should be complete."""
|
|
34
|
+
G = generator(10, 1.1, directed=directed)
|
|
35
|
+
assert len(G) == 10
|
|
36
|
+
assert G.number_of_edges() == expected_num_edges
|
|
37
|
+
assert G.is_directed() == directed
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
@pytest.mark.parametrize("generator", _gnp_generators)
|
|
41
|
+
@pytest.mark.parametrize("directed", (True, False))
|
|
42
|
+
def test_gnp_generators_basic(generator, directed):
|
|
43
|
+
"""If the edge probability `p` is >0 and <1, test only the basic properties."""
|
|
44
|
+
G = generator(10, 0.1, directed=directed)
|
|
45
|
+
assert len(G) == 10
|
|
46
|
+
assert G.is_directed() == directed
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
@pytest.mark.parametrize("generator", _gnp_generators)
|
|
50
|
+
def test_gnp_generators_for_p_close_to_1(generator):
|
|
51
|
+
"""If the edge probability `p` is close to 1, the resulting graph should have all edges."""
|
|
52
|
+
runs = 100
|
|
53
|
+
edges = sum(
|
|
54
|
+
generator(10, 0.99999, directed=True).number_of_edges() for _ in range(runs)
|
|
55
|
+
)
|
|
56
|
+
assert abs(edges / float(runs) - 90) <= runs * 2.0 / 100
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
@pytest.mark.parametrize("generator", _gnp_generators)
|
|
60
|
+
@pytest.mark.parametrize("p", (0.2, 0.8))
|
|
61
|
+
@pytest.mark.parametrize("directed", (True, False))
|
|
62
|
+
def test_gnp_generators_edge_probability(generator, p, directed):
|
|
63
|
+
"""Test that gnp generators generate edges according to the their probability `p`."""
|
|
64
|
+
runs = 5000
|
|
65
|
+
n = 5
|
|
66
|
+
edge_counts = [[0] * n for _ in range(n)]
|
|
67
|
+
for i in range(runs):
|
|
68
|
+
G = generator(n, p, directed=directed)
|
|
69
|
+
for v, w in G.edges:
|
|
70
|
+
edge_counts[v][w] += 1
|
|
71
|
+
if not directed:
|
|
72
|
+
edge_counts[w][v] += 1
|
|
73
|
+
for v in range(n):
|
|
74
|
+
for w in range(n):
|
|
75
|
+
if v == w:
|
|
76
|
+
# There should be no loops
|
|
77
|
+
assert edge_counts[v][w] == 0
|
|
78
|
+
else:
|
|
79
|
+
# Each edge should have been generated with probability close to p
|
|
80
|
+
assert abs(edge_counts[v][w] / float(runs) - p) <= 0.03
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
@pytest.mark.parametrize(
|
|
84
|
+
"generator", [nx.gnp_random_graph, nx.binomial_graph, nx.erdos_renyi_graph]
|
|
85
|
+
)
|
|
86
|
+
@pytest.mark.parametrize(
|
|
87
|
+
("seed", "directed", "expected_num_edges"),
|
|
88
|
+
[(42, False, 1219), (42, True, 2454), (314, False, 1247), (314, True, 2476)],
|
|
89
|
+
)
|
|
90
|
+
def test_gnp_random_graph_aliases(generator, seed, directed, expected_num_edges):
|
|
91
|
+
"""Test that aliases give the same result with the same seed."""
|
|
92
|
+
G = generator(100, 0.25, seed=seed, directed=directed)
|
|
93
|
+
assert len(G) == 100
|
|
94
|
+
assert G.number_of_edges() == expected_num_edges
|
|
95
|
+
assert G.is_directed() == directed
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
class TestGeneratorsRandom:
|
|
99
|
+
def test_random_graph(self):
|
|
100
|
+
seed = 42
|
|
101
|
+
G = nx.gnm_random_graph(100, 20, seed)
|
|
102
|
+
G = nx.gnm_random_graph(100, 20, seed, directed=True)
|
|
103
|
+
G = nx.dense_gnm_random_graph(100, 20, seed)
|
|
104
|
+
|
|
105
|
+
G = nx.barabasi_albert_graph(100, 1, seed)
|
|
106
|
+
G = nx.barabasi_albert_graph(100, 3, seed)
|
|
107
|
+
assert G.number_of_edges() == (97 * 3)
|
|
108
|
+
|
|
109
|
+
G = nx.barabasi_albert_graph(100, 3, seed, nx.complete_graph(5))
|
|
110
|
+
assert G.number_of_edges() == (10 + 95 * 3)
|
|
111
|
+
|
|
112
|
+
G = nx.extended_barabasi_albert_graph(100, 1, 0, 0, seed)
|
|
113
|
+
assert G.number_of_edges() == 99
|
|
114
|
+
G = nx.extended_barabasi_albert_graph(100, 3, 0, 0, seed)
|
|
115
|
+
assert G.number_of_edges() == 97 * 3
|
|
116
|
+
G = nx.extended_barabasi_albert_graph(100, 1, 0, 0.5, seed)
|
|
117
|
+
assert G.number_of_edges() == 99
|
|
118
|
+
G = nx.extended_barabasi_albert_graph(100, 2, 0.5, 0, seed)
|
|
119
|
+
assert G.number_of_edges() > 100 * 3
|
|
120
|
+
assert G.number_of_edges() < 100 * 4
|
|
121
|
+
|
|
122
|
+
G = nx.extended_barabasi_albert_graph(100, 2, 0.3, 0.3, seed)
|
|
123
|
+
assert G.number_of_edges() > 100 * 2
|
|
124
|
+
assert G.number_of_edges() < 100 * 4
|
|
125
|
+
|
|
126
|
+
G = nx.powerlaw_cluster_graph(100, 1, 1.0, seed)
|
|
127
|
+
G = nx.powerlaw_cluster_graph(100, 3, 0.0, seed)
|
|
128
|
+
assert G.number_of_edges() == (97 * 3)
|
|
129
|
+
|
|
130
|
+
G = nx.random_regular_graph(10, 20, seed)
|
|
131
|
+
|
|
132
|
+
pytest.raises(nx.NetworkXError, nx.random_regular_graph, 3, 21)
|
|
133
|
+
pytest.raises(nx.NetworkXError, nx.random_regular_graph, 33, 21)
|
|
134
|
+
|
|
135
|
+
constructor = [(10, 20, 0.8), (20, 40, 0.8)]
|
|
136
|
+
G = nx.random_shell_graph(constructor, seed)
|
|
137
|
+
|
|
138
|
+
def is_caterpillar(g):
|
|
139
|
+
"""
|
|
140
|
+
A tree is a caterpillar iff all nodes of degree >=3 are surrounded
|
|
141
|
+
by at most two nodes of degree two or greater.
|
|
142
|
+
ref: http://mathworld.wolfram.com/CaterpillarGraph.html
|
|
143
|
+
"""
|
|
144
|
+
deg_over_3 = [n for n in g if g.degree(n) >= 3]
|
|
145
|
+
for n in deg_over_3:
|
|
146
|
+
nbh_deg_over_2 = [nbh for nbh in g.neighbors(n) if g.degree(nbh) >= 2]
|
|
147
|
+
if not len(nbh_deg_over_2) <= 2:
|
|
148
|
+
return False
|
|
149
|
+
return True
|
|
150
|
+
|
|
151
|
+
def is_lobster(g):
|
|
152
|
+
"""
|
|
153
|
+
A tree is a lobster if it has the property that the removal of leaf
|
|
154
|
+
nodes leaves a caterpillar graph (Gallian 2007)
|
|
155
|
+
ref: http://mathworld.wolfram.com/LobsterGraph.html
|
|
156
|
+
"""
|
|
157
|
+
non_leafs = [n for n in g if g.degree(n) > 1]
|
|
158
|
+
return is_caterpillar(g.subgraph(non_leafs))
|
|
159
|
+
|
|
160
|
+
G = nx.random_lobster_graph(10, 0.1, 0.5, seed)
|
|
161
|
+
assert max(G.degree(n) for n in G.nodes()) > 3
|
|
162
|
+
assert is_lobster(G)
|
|
163
|
+
pytest.raises(nx.NetworkXError, nx.random_lobster_graph, 10, 0.1, 1, seed)
|
|
164
|
+
pytest.raises(nx.NetworkXError, nx.random_lobster_graph, 10, 1, 1, seed)
|
|
165
|
+
pytest.raises(nx.NetworkXError, nx.random_lobster_graph, 10, 1, 0.5, seed)
|
|
166
|
+
|
|
167
|
+
# docstring says this should be a caterpillar
|
|
168
|
+
G = nx.random_lobster_graph(10, 0.1, 0.0, seed)
|
|
169
|
+
assert is_caterpillar(G)
|
|
170
|
+
|
|
171
|
+
# difficult to find seed that requires few tries
|
|
172
|
+
seq = nx.random_powerlaw_tree_sequence(10, 3, seed=14, tries=1)
|
|
173
|
+
G = nx.random_powerlaw_tree(10, 3, seed=14, tries=1)
|
|
174
|
+
|
|
175
|
+
def test_dual_barabasi_albert(self, m1=1, m2=4, p=0.5):
|
|
176
|
+
"""
|
|
177
|
+
Tests that the dual BA random graph generated behaves consistently.
|
|
178
|
+
|
|
179
|
+
Tests the exceptions are raised as expected.
|
|
180
|
+
|
|
181
|
+
The graphs generation are repeated several times to prevent lucky shots
|
|
182
|
+
|
|
183
|
+
"""
|
|
184
|
+
seeds = [42, 314, 2718]
|
|
185
|
+
initial_graph = nx.complete_graph(10)
|
|
186
|
+
|
|
187
|
+
for seed in seeds:
|
|
188
|
+
# This should be BA with m = m1
|
|
189
|
+
BA1 = nx.barabasi_albert_graph(100, m1, seed)
|
|
190
|
+
DBA1 = nx.dual_barabasi_albert_graph(100, m1, m2, 1, seed)
|
|
191
|
+
assert BA1.edges() == DBA1.edges()
|
|
192
|
+
|
|
193
|
+
# This should be BA with m = m2
|
|
194
|
+
BA2 = nx.barabasi_albert_graph(100, m2, seed)
|
|
195
|
+
DBA2 = nx.dual_barabasi_albert_graph(100, m1, m2, 0, seed)
|
|
196
|
+
assert BA2.edges() == DBA2.edges()
|
|
197
|
+
|
|
198
|
+
BA3 = nx.barabasi_albert_graph(100, m1, seed)
|
|
199
|
+
DBA3 = nx.dual_barabasi_albert_graph(100, m1, m1, p, seed)
|
|
200
|
+
# We can't compare edges here since randomness is "consumed" when drawing
|
|
201
|
+
# between m1 and m2
|
|
202
|
+
assert BA3.size() == DBA3.size()
|
|
203
|
+
|
|
204
|
+
DBA = nx.dual_barabasi_albert_graph(100, m1, m2, p, seed, initial_graph)
|
|
205
|
+
BA1 = nx.barabasi_albert_graph(100, m1, seed, initial_graph)
|
|
206
|
+
BA2 = nx.barabasi_albert_graph(100, m2, seed, initial_graph)
|
|
207
|
+
assert (
|
|
208
|
+
min(BA1.size(), BA2.size()) <= DBA.size() <= max(BA1.size(), BA2.size())
|
|
209
|
+
)
|
|
210
|
+
|
|
211
|
+
# Testing exceptions
|
|
212
|
+
dbag = nx.dual_barabasi_albert_graph
|
|
213
|
+
pytest.raises(nx.NetworkXError, dbag, m1, m1, m2, 0)
|
|
214
|
+
pytest.raises(nx.NetworkXError, dbag, m2, m1, m2, 0)
|
|
215
|
+
pytest.raises(nx.NetworkXError, dbag, 100, m1, m2, -0.5)
|
|
216
|
+
pytest.raises(nx.NetworkXError, dbag, 100, m1, m2, 1.5)
|
|
217
|
+
initial = nx.complete_graph(max(m1, m2) - 1)
|
|
218
|
+
pytest.raises(nx.NetworkXError, dbag, 100, m1, m2, p, initial_graph=initial)
|
|
219
|
+
|
|
220
|
+
def test_extended_barabasi_albert(self, m=2):
|
|
221
|
+
"""
|
|
222
|
+
Tests that the extended BA random graph generated behaves consistently.
|
|
223
|
+
|
|
224
|
+
Tests the exceptions are raised as expected.
|
|
225
|
+
|
|
226
|
+
The graphs generation are repeated several times to prevent lucky-shots
|
|
227
|
+
|
|
228
|
+
"""
|
|
229
|
+
seeds = [42, 314, 2718]
|
|
230
|
+
|
|
231
|
+
for seed in seeds:
|
|
232
|
+
BA_model = nx.barabasi_albert_graph(100, m, seed)
|
|
233
|
+
BA_model_edges = BA_model.number_of_edges()
|
|
234
|
+
|
|
235
|
+
# This behaves just like BA, the number of edges must be the same
|
|
236
|
+
G1 = nx.extended_barabasi_albert_graph(100, m, 0, 0, seed)
|
|
237
|
+
assert G1.size() == BA_model_edges
|
|
238
|
+
|
|
239
|
+
# More than twice more edges should have been added
|
|
240
|
+
G1 = nx.extended_barabasi_albert_graph(100, m, 0.8, 0, seed)
|
|
241
|
+
assert G1.size() > BA_model_edges * 2
|
|
242
|
+
|
|
243
|
+
# Only edge rewiring, so the number of edges less than original
|
|
244
|
+
G2 = nx.extended_barabasi_albert_graph(100, m, 0, 0.8, seed)
|
|
245
|
+
assert G2.size() == BA_model_edges
|
|
246
|
+
|
|
247
|
+
# Mixed scenario: less edges than G1 and more edges than G2
|
|
248
|
+
G3 = nx.extended_barabasi_albert_graph(100, m, 0.3, 0.3, seed)
|
|
249
|
+
assert G3.size() > G2.size()
|
|
250
|
+
assert G3.size() < G1.size()
|
|
251
|
+
|
|
252
|
+
# Testing exceptions
|
|
253
|
+
ebag = nx.extended_barabasi_albert_graph
|
|
254
|
+
pytest.raises(nx.NetworkXError, ebag, m, m, 0, 0)
|
|
255
|
+
pytest.raises(nx.NetworkXError, ebag, 1, 0.5, 0, 0)
|
|
256
|
+
pytest.raises(nx.NetworkXError, ebag, 100, 2, 0.5, 0.5)
|
|
257
|
+
|
|
258
|
+
def test_random_zero_regular_graph(self):
|
|
259
|
+
"""Tests that a 0-regular graph has the correct number of nodes and
|
|
260
|
+
edges.
|
|
261
|
+
|
|
262
|
+
"""
|
|
263
|
+
seed = 42
|
|
264
|
+
G = nx.random_regular_graph(0, 10, seed)
|
|
265
|
+
assert len(G) == 10
|
|
266
|
+
assert G.number_of_edges() == 0
|
|
267
|
+
|
|
268
|
+
def test_gnm(self):
|
|
269
|
+
G = nx.gnm_random_graph(10, 3)
|
|
270
|
+
assert len(G) == 10
|
|
271
|
+
assert G.number_of_edges() == 3
|
|
272
|
+
|
|
273
|
+
G = nx.gnm_random_graph(10, 3, seed=42)
|
|
274
|
+
assert len(G) == 10
|
|
275
|
+
assert G.number_of_edges() == 3
|
|
276
|
+
|
|
277
|
+
G = nx.gnm_random_graph(10, 100)
|
|
278
|
+
assert len(G) == 10
|
|
279
|
+
assert G.number_of_edges() == 45
|
|
280
|
+
|
|
281
|
+
G = nx.gnm_random_graph(10, 100, directed=True)
|
|
282
|
+
assert len(G) == 10
|
|
283
|
+
assert G.number_of_edges() == 90
|
|
284
|
+
|
|
285
|
+
G = nx.gnm_random_graph(10, -1.1)
|
|
286
|
+
assert len(G) == 10
|
|
287
|
+
assert G.number_of_edges() == 0
|
|
288
|
+
|
|
289
|
+
def test_watts_strogatz_big_k(self):
|
|
290
|
+
# Test to make sure than n <= k
|
|
291
|
+
pytest.raises(nx.NetworkXError, nx.watts_strogatz_graph, 10, 11, 0.25)
|
|
292
|
+
pytest.raises(nx.NetworkXError, nx.newman_watts_strogatz_graph, 10, 11, 0.25)
|
|
293
|
+
|
|
294
|
+
# could create an infinite loop, now doesn't
|
|
295
|
+
# infinite loop used to occur when a node has degree n-1 and needs to rewire
|
|
296
|
+
nx.watts_strogatz_graph(10, 9, 0.25, seed=0)
|
|
297
|
+
nx.newman_watts_strogatz_graph(10, 9, 0.5, seed=0)
|
|
298
|
+
|
|
299
|
+
# Test k==n scenario
|
|
300
|
+
nx.watts_strogatz_graph(10, 10, 0.25, seed=0)
|
|
301
|
+
nx.newman_watts_strogatz_graph(10, 10, 0.25, seed=0)
|
|
302
|
+
|
|
303
|
+
def test_random_kernel_graph(self):
|
|
304
|
+
def integral(u, w, z):
|
|
305
|
+
return c * (z - w)
|
|
306
|
+
|
|
307
|
+
def root(u, w, r):
|
|
308
|
+
return r / c + w
|
|
309
|
+
|
|
310
|
+
c = 1
|
|
311
|
+
graph = nx.random_kernel_graph(1000, integral, root, seed=42)
|
|
312
|
+
assert len(graph) == 1000
|
|
313
|
+
|
|
314
|
+
def test_random_kernel_graph_default_root(self):
|
|
315
|
+
"""When `kernel_root` is not provided, `sp.optimize.brentq` is used to
|
|
316
|
+
construct the default kernel.
|
|
317
|
+
"""
|
|
318
|
+
pytest.importorskip("scipy")
|
|
319
|
+
|
|
320
|
+
def integral(u, w, z):
|
|
321
|
+
return z - w
|
|
322
|
+
|
|
323
|
+
graph = nx.random_kernel_graph(1000, integral, seed=42)
|
|
324
|
+
assert len(graph) == 1000
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
@pytest.mark.parametrize(
|
|
328
|
+
("k", "expected_num_nodes", "expected_num_edges"),
|
|
329
|
+
[
|
|
330
|
+
(2, 10, 10),
|
|
331
|
+
(4, 10, 20),
|
|
332
|
+
],
|
|
333
|
+
)
|
|
334
|
+
def test_watts_strogatz(k, expected_num_nodes, expected_num_edges):
|
|
335
|
+
G = nx.watts_strogatz_graph(10, k, 0.25, seed=42)
|
|
336
|
+
assert len(G) == expected_num_nodes
|
|
337
|
+
assert G.number_of_edges() == expected_num_edges
|
|
338
|
+
|
|
339
|
+
|
|
340
|
+
def test_newman_watts_strogatz_zero_probability():
|
|
341
|
+
G = nx.newman_watts_strogatz_graph(10, 2, 0.0, seed=42)
|
|
342
|
+
assert len(G) == 10
|
|
343
|
+
assert G.number_of_edges() == 10
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
def test_newman_watts_strogatz_nonzero_probability():
|
|
347
|
+
G = nx.newman_watts_strogatz_graph(10, 4, 0.25, seed=42)
|
|
348
|
+
assert len(G) == 10
|
|
349
|
+
assert G.number_of_edges() >= 20
|
|
350
|
+
|
|
351
|
+
|
|
352
|
+
def test_connected_watts_strogatz():
|
|
353
|
+
G = nx.connected_watts_strogatz_graph(10, 2, 0.1, tries=10, seed=42)
|
|
354
|
+
assert len(G) == 10
|
|
355
|
+
assert G.number_of_edges() == 10
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
def test_connected_watts_strogatz_zero_tries():
|
|
359
|
+
with pytest.raises(nx.NetworkXError, match="Maximum number of tries exceeded"):
|
|
360
|
+
nx.connected_watts_strogatz_graph(10, 2, 0.1, tries=0)
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
def test_connected_watts_strogatz_graph_disconnected():
|
|
364
|
+
"""Test that `connected_watts_strogatz_graph` properly loops when disconnected."""
|
|
365
|
+
with pytest.raises(nx.NetworkXError, match="Maximum number of tries exceeded"):
|
|
366
|
+
nx.connected_watts_strogatz_graph(10, 0, 0.0)
|
|
367
|
+
|
|
368
|
+
|
|
369
|
+
@pytest.mark.parametrize(
|
|
370
|
+
"generator, kwargs",
|
|
371
|
+
[
|
|
372
|
+
(nx.fast_gnp_random_graph, {"n": 20, "p": 0.2, "directed": False}),
|
|
373
|
+
(nx.fast_gnp_random_graph, {"n": 20, "p": 0.2, "directed": True}),
|
|
374
|
+
(nx.gnp_random_graph, {"n": 20, "p": 0.2, "directed": False}),
|
|
375
|
+
(nx.gnp_random_graph, {"n": 20, "p": 0.2, "directed": True}),
|
|
376
|
+
(nx.dense_gnm_random_graph, {"n": 30, "m": 4}),
|
|
377
|
+
(nx.gnm_random_graph, {"n": 30, "m": 4, "directed": False}),
|
|
378
|
+
(nx.gnm_random_graph, {"n": 30, "m": 4, "directed": True}),
|
|
379
|
+
(nx.newman_watts_strogatz_graph, {"n": 50, "k": 5, "p": 0.1}),
|
|
380
|
+
(nx.watts_strogatz_graph, {"n": 50, "k": 5, "p": 0.1}),
|
|
381
|
+
(nx.connected_watts_strogatz_graph, {"n": 50, "k": 5, "p": 0.1}),
|
|
382
|
+
(nx.random_regular_graph, {"d": 5, "n": 20}),
|
|
383
|
+
(nx.barabasi_albert_graph, {"n": 40, "m": 3}),
|
|
384
|
+
(nx.dual_barabasi_albert_graph, {"n": 40, "m1": 3, "m2": 2, "p": 0.1}),
|
|
385
|
+
(nx.extended_barabasi_albert_graph, {"n": 40, "m": 3, "p": 0.1, "q": 0.2}),
|
|
386
|
+
(nx.powerlaw_cluster_graph, {"n": 40, "m": 3, "p": 0.1}),
|
|
387
|
+
(nx.random_lobster_graph, {"n": 40, "p1": 0.1, "p2": 0.2}),
|
|
388
|
+
(nx.random_shell_graph, {"constructor": [(10, 20, 0.8), (20, 40, 0.8)]}),
|
|
389
|
+
(nx.random_powerlaw_tree, {"n": 10, "seed": 14, "tries": 1}),
|
|
390
|
+
(
|
|
391
|
+
nx.random_kernel_graph,
|
|
392
|
+
{
|
|
393
|
+
"n": 10,
|
|
394
|
+
"kernel_integral": lambda u, w, z: z - w,
|
|
395
|
+
"kernel_root": lambda u, w, r: r + w,
|
|
396
|
+
},
|
|
397
|
+
),
|
|
398
|
+
],
|
|
399
|
+
)
|
|
400
|
+
@pytest.mark.parametrize("create_using_instance", [False, True])
|
|
401
|
+
def test_create_using(generator, kwargs, create_using_instance):
|
|
402
|
+
class DummyGraph(nx.Graph):
|
|
403
|
+
pass
|
|
404
|
+
|
|
405
|
+
class DummyDiGraph(nx.DiGraph):
|
|
406
|
+
pass
|
|
407
|
+
|
|
408
|
+
create_using_type = DummyDiGraph if kwargs.get("directed") else DummyGraph
|
|
409
|
+
create_using = create_using_type() if create_using_instance else create_using_type
|
|
410
|
+
graph = generator(**kwargs, create_using=create_using)
|
|
411
|
+
assert isinstance(graph, create_using_type)
|
|
412
|
+
|
|
413
|
+
|
|
414
|
+
@pytest.mark.parametrize("directed", [True, False])
|
|
415
|
+
@pytest.mark.parametrize("fn", (nx.fast_gnp_random_graph, nx.gnp_random_graph))
|
|
416
|
+
def test_gnp_fns_disallow_multigraph(fn, directed):
|
|
417
|
+
with pytest.raises(nx.NetworkXError, match="must not be a multi-graph"):
|
|
418
|
+
fn(20, 0.2, create_using=nx.MultiGraph)
|
|
419
|
+
|
|
420
|
+
|
|
421
|
+
@pytest.mark.parametrize("fn", (nx.gnm_random_graph, nx.dense_gnm_random_graph))
|
|
422
|
+
@pytest.mark.parametrize("graphtype", (nx.DiGraph, nx.MultiGraph, nx.MultiDiGraph))
|
|
423
|
+
def test_gnm_fns_disallow_directed_and_multigraph(fn, graphtype):
|
|
424
|
+
with pytest.raises(nx.NetworkXError, match="must not be"):
|
|
425
|
+
fn(10, 20, create_using=graphtype)
|
|
426
|
+
|
|
427
|
+
|
|
428
|
+
@pytest.mark.parametrize(
|
|
429
|
+
"fn",
|
|
430
|
+
(
|
|
431
|
+
nx.newman_watts_strogatz_graph,
|
|
432
|
+
nx.watts_strogatz_graph,
|
|
433
|
+
nx.connected_watts_strogatz_graph,
|
|
434
|
+
),
|
|
435
|
+
)
|
|
436
|
+
@pytest.mark.parametrize("graphtype", (nx.DiGraph, nx.MultiGraph, nx.MultiDiGraph))
|
|
437
|
+
def test_watts_strogatz_disallow_directed_and_multigraph(fn, graphtype):
|
|
438
|
+
with pytest.raises(nx.NetworkXError, match="must not be"):
|
|
439
|
+
fn(10, 2, 0.2, create_using=graphtype)
|
|
440
|
+
|
|
441
|
+
|
|
442
|
+
@pytest.mark.parametrize("graphtype", (nx.DiGraph, nx.MultiGraph, nx.MultiDiGraph))
|
|
443
|
+
def test_random_regular_graph_disallow_directed_and_multigraph(graphtype):
|
|
444
|
+
with pytest.raises(nx.NetworkXError, match="must not be"):
|
|
445
|
+
nx.random_regular_graph(2, 10, create_using=graphtype)
|
|
446
|
+
|
|
447
|
+
|
|
448
|
+
@pytest.mark.parametrize("graphtype", (nx.DiGraph, nx.MultiGraph, nx.MultiDiGraph))
|
|
449
|
+
def test_barabasi_albert_disallow_directed_and_multigraph(graphtype):
|
|
450
|
+
with pytest.raises(nx.NetworkXError, match="must not be"):
|
|
451
|
+
nx.barabasi_albert_graph(10, 3, create_using=graphtype)
|
|
452
|
+
|
|
453
|
+
|
|
454
|
+
@pytest.mark.parametrize("graphtype", (nx.DiGraph, nx.MultiGraph, nx.MultiDiGraph))
|
|
455
|
+
def test_dual_barabasi_albert_disallow_directed_and_multigraph(graphtype):
|
|
456
|
+
with pytest.raises(nx.NetworkXError, match="must not be"):
|
|
457
|
+
nx.dual_barabasi_albert_graph(10, 2, 1, 0.4, create_using=graphtype)
|
|
458
|
+
|
|
459
|
+
|
|
460
|
+
@pytest.mark.parametrize("graphtype", (nx.DiGraph, nx.MultiGraph, nx.MultiDiGraph))
|
|
461
|
+
def test_extended_barabasi_albert_disallow_directed_and_multigraph(graphtype):
|
|
462
|
+
with pytest.raises(nx.NetworkXError, match="must not be"):
|
|
463
|
+
nx.extended_barabasi_albert_graph(10, 2, 0.2, 0.3, create_using=graphtype)
|
|
464
|
+
|
|
465
|
+
|
|
466
|
+
@pytest.mark.parametrize("graphtype", (nx.DiGraph, nx.MultiGraph, nx.MultiDiGraph))
|
|
467
|
+
def test_powerlaw_cluster_disallow_directed_and_multigraph(graphtype):
|
|
468
|
+
with pytest.raises(nx.NetworkXError, match="must not be"):
|
|
469
|
+
nx.powerlaw_cluster_graph(10, 5, 0.2, create_using=graphtype)
|
|
470
|
+
|
|
471
|
+
|
|
472
|
+
@pytest.mark.parametrize("graphtype", (nx.DiGraph, nx.MultiGraph, nx.MultiDiGraph))
|
|
473
|
+
def test_random_lobster_disallow_directed_and_multigraph(graphtype):
|
|
474
|
+
with pytest.raises(nx.NetworkXError, match="must not be"):
|
|
475
|
+
nx.random_lobster_graph(10, 0.1, 0.1, create_using=graphtype)
|
|
476
|
+
|
|
477
|
+
|
|
478
|
+
@pytest.mark.parametrize("graphtype", (nx.DiGraph, nx.MultiGraph, nx.MultiDiGraph))
|
|
479
|
+
def test_random_shell_disallow_directed_and_multigraph(graphtype):
|
|
480
|
+
with pytest.raises(nx.NetworkXError, match="must not be"):
|
|
481
|
+
nx.random_shell_graph([(10, 20, 2), (10, 20, 5)], create_using=graphtype)
|
|
482
|
+
|
|
483
|
+
|
|
484
|
+
@pytest.mark.parametrize("graphtype", (nx.DiGraph, nx.MultiGraph, nx.MultiDiGraph))
|
|
485
|
+
def test_random_powerlaw_tree_disallow_directed_and_multigraph(graphtype):
|
|
486
|
+
with pytest.raises(nx.NetworkXError, match="must not be"):
|
|
487
|
+
nx.random_powerlaw_tree(10, create_using=graphtype)
|
|
488
|
+
|
|
489
|
+
|
|
490
|
+
@pytest.mark.parametrize("graphtype", (nx.DiGraph, nx.MultiGraph, nx.MultiDiGraph))
|
|
491
|
+
def test_random_kernel_disallow_directed_and_multigraph(graphtype):
|
|
492
|
+
with pytest.raises(nx.NetworkXError, match="must not be"):
|
|
493
|
+
nx.random_kernel_graph(
|
|
494
|
+
10, lambda y, a, b: a + b, lambda u, w, r: r + w, create_using=graphtype
|
|
495
|
+
)
|