Offset 1, 4 lines modified | Offset 1, 4 lines modified | ||
1 | · | 1 | ·8d005d381b18f4249b5aa1749ed7758f·6066896·doc·optional·python-igraph-doc_0.11.8+ds-1_all.deb |
2 | ·ace5997fdba528d27362e579dc84188a·383092·debug·optional·python3-igraph-dbgsym_0.11.8+ds-1_armhf.deb | 2 | ·ace5997fdba528d27362e579dc84188a·383092·debug·optional·python3-igraph-dbgsym_0.11.8+ds-1_armhf.deb |
3 | ·aa77cb4b778a3b3aa76420ecd8b5032c·309292·python·optional·python3-igraph_0.11.8+ds-1_armhf.deb | 3 | ·aa77cb4b778a3b3aa76420ecd8b5032c·309292·python·optional·python3-igraph_0.11.8+ds-1_armhf.deb |
Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | -rw-r--r--···0········0········0········4·2024-11-10·15:46:20.000000·debian-binary | 1 | -rw-r--r--···0········0········0········4·2024-11-10·15:46:20.000000·debian-binary |
2 | -rw-r--r--···0········0········0····1267 | 2 | -rw-r--r--···0········0········0····12676·2024-11-10·15:46:20.000000·control.tar.xz |
3 | -rw-r--r--···0········0········0··6054028·2024-11-10·15:46:20.000000·data.tar.xz | 3 | -rw-r--r--···0········0········0··6054028·2024-11-10·15:46:20.000000·data.tar.xz |
Offset 208, 15 lines modified | Offset 208, 15 lines modified | ||
208 | -rw-r--r--···0·root·········(0)·root·········(0)·····3746·2024-11-10·15:46:20.000000·./usr/share/doc/python-igraph-doc/html/_sources/tutorials/quickstart.rst.txt | 208 | -rw-r--r--···0·root·········(0)·root·········(0)·····3746·2024-11-10·15:46:20.000000·./usr/share/doc/python-igraph-doc/html/_sources/tutorials/quickstart.rst.txt |
209 | -rw-r--r--···0·root·········(0)·root·········(0)···222470·2024-11-10·15:46:20.000000·./usr/share/doc/python-igraph-doc/html/_sources/tutorials/ring_animation.rst.txt | 209 | -rw-r--r--···0·root·········(0)·root·········(0)···222470·2024-11-10·15:46:20.000000·./usr/share/doc/python-igraph-doc/html/_sources/tutorials/ring_animation.rst.txt |
210 | -rw-r--r--···0·root·········(0)·root·········(0)·····4963·2024-11-10·15:46:20.000000·./usr/share/doc/python-igraph-doc/html/_sources/tutorials/shortest_path_visualisation.rst.txt | 210 | -rw-r--r--···0·root·········(0)·root·········(0)·····4963·2024-11-10·15:46:20.000000·./usr/share/doc/python-igraph-doc/html/_sources/tutorials/shortest_path_visualisation.rst.txt |
211 | -rw-r--r--···0·root·········(0)·root·········(0)·····3662·2024-11-10·15:46:20.000000·./usr/share/doc/python-igraph-doc/html/_sources/tutorials/simplify.rst.txt | 211 | -rw-r--r--···0·root·········(0)·root·········(0)·····3662·2024-11-10·15:46:20.000000·./usr/share/doc/python-igraph-doc/html/_sources/tutorials/simplify.rst.txt |
212 | -rw-r--r--···0·root·········(0)·root·········(0)·····3879·2024-11-10·15:46:20.000000·./usr/share/doc/python-igraph-doc/html/_sources/tutorials/spanning_trees.rst.txt | 212 | -rw-r--r--···0·root·········(0)·root·········(0)·····3879·2024-11-10·15:46:20.000000·./usr/share/doc/python-igraph-doc/html/_sources/tutorials/spanning_trees.rst.txt |
213 | -rw-r--r--···0·root·········(0)·root·········(0)·····4545·2024-11-10·15:46:20.000000·./usr/share/doc/python-igraph-doc/html/_sources/tutorials/topological_sort.rst.txt | 213 | -rw-r--r--···0·root·········(0)·root·········(0)·····4545·2024-11-10·15:46:20.000000·./usr/share/doc/python-igraph-doc/html/_sources/tutorials/topological_sort.rst.txt |
214 | -rw-r--r--···0·root·········(0)·root·········(0)·····5253·2024-11-10·15:46:20.000000·./usr/share/doc/python-igraph-doc/html/_sources/tutorials/visual_style.rst.txt | 214 | -rw-r--r--···0·root·········(0)·root·········(0)·····5253·2024-11-10·15:46:20.000000·./usr/share/doc/python-igraph-doc/html/_sources/tutorials/visual_style.rst.txt |
215 | -rw-r--r--···0·root·········(0)·root·········(0)·····394 | 215 | -rw-r--r--···0·root·········(0)·root·········(0)·····3945·2024-11-10·15:46:20.000000·./usr/share/doc/python-igraph-doc/html/_sources/tutorials/visualize_cliques.rst.txt |
216 | -rw-r--r--···0·root·········(0)·root·········(0)·····3852·2024-11-10·15:46:20.000000·./usr/share/doc/python-igraph-doc/html/_sources/tutorials/visualize_communities.rst.txt | 216 | -rw-r--r--···0·root·········(0)·root·········(0)·····3852·2024-11-10·15:46:20.000000·./usr/share/doc/python-igraph-doc/html/_sources/tutorials/visualize_communities.rst.txt |
217 | -rw-r--r--···0·root·········(0)·root·········(0)····10541·2024-11-10·14:24:43.000000·./usr/share/doc/python-igraph-doc/html/_sources/visualisation.rst.txt | 217 | -rw-r--r--···0·root·········(0)·root·········(0)····10541·2024-11-10·14:24:43.000000·./usr/share/doc/python-igraph-doc/html/_sources/visualisation.rst.txt |
218 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-11-10·15:46:20.000000·./usr/share/doc/python-igraph-doc/html/_static/ | 218 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-11-10·15:46:20.000000·./usr/share/doc/python-igraph-doc/html/_static/ |
219 | -rw-r--r--···0·root·········(0)·root·········(0)·····4289·2024-11-10·15:46:20.000000·./usr/share/doc/python-igraph-doc/html/_static/_sphinx_javascript_frameworks_compat.js | 219 | -rw-r--r--···0·root·········(0)·root·········(0)·····4289·2024-11-10·15:46:20.000000·./usr/share/doc/python-igraph-doc/html/_static/_sphinx_javascript_frameworks_compat.js |
220 | -rw-r--r--···0·root·········(0)·root·········(0)····15094·2024-11-10·15:46:20.000000·./usr/share/doc/python-igraph-doc/html/_static/basic.css | 220 | -rw-r--r--···0·root·········(0)·root·········(0)····15094·2024-11-10·15:46:20.000000·./usr/share/doc/python-igraph-doc/html/_static/basic.css |
221 | -rw-r--r--···0·root·········(0)·root·········(0)·····3380·2024-06-19·10:46:11.000000·./usr/share/doc/python-igraph-doc/html/_static/binder_badge_logo.svg | 221 | -rw-r--r--···0·root·········(0)·root·········(0)·····3380·2024-06-19·10:46:11.000000·./usr/share/doc/python-igraph-doc/html/_static/binder_badge_logo.svg |
222 | -rw-r--r--···0·root·········(0)·root·········(0)····21404·2024-06-19·10:46:11.000000·./usr/share/doc/python-igraph-doc/html/_static/broken_example.png | 222 | -rw-r--r--···0·root·········(0)·root·········(0)····21404·2024-06-19·10:46:11.000000·./usr/share/doc/python-igraph-doc/html/_static/broken_example.png |
Offset 461, 15 lines modified | Offset 461, 15 lines modified | ||
461 | -rw-r--r--···0·root·········(0)·root·········(0)····18430·2024-11-10·15:46:20.000000·./usr/share/doc/python-igraph-doc/html/faq.html | 461 | -rw-r--r--···0·root·········(0)·root·········(0)····18430·2024-11-10·15:46:20.000000·./usr/share/doc/python-igraph-doc/html/faq.html |
462 | -rw-r--r--···0·root·········(0)·root·········(0)····31934·2024-11-10·15:46:20.000000·./usr/share/doc/python-igraph-doc/html/generation.html | 462 | -rw-r--r--···0·root·········(0)·root·········(0)····31934·2024-11-10·15:46:20.000000·./usr/share/doc/python-igraph-doc/html/generation.html |
463 | -rw-r--r--···0·root·········(0)·root·········(0)·····4759·2024-11-10·15:46:20.000000·./usr/share/doc/python-igraph-doc/html/genindex.html | 463 | -rw-r--r--···0·root·········(0)·root·········(0)·····4759·2024-11-10·15:46:20.000000·./usr/share/doc/python-igraph-doc/html/genindex.html |
464 | -rw-r--r--···0·root·········(0)·root·········(0)····10616·2024-11-10·15:46:20.000000·./usr/share/doc/python-igraph-doc/html/index.html | 464 | -rw-r--r--···0·root·········(0)·root·········(0)····10616·2024-11-10·15:46:20.000000·./usr/share/doc/python-igraph-doc/html/index.html |
465 | -rw-r--r--···0·root·········(0)·root·········(0)····25754·2024-11-10·15:46:20.000000·./usr/share/doc/python-igraph-doc/html/install.html | 465 | -rw-r--r--···0·root·········(0)·root·········(0)····25754·2024-11-10·15:46:20.000000·./usr/share/doc/python-igraph-doc/html/install.html |
466 | -rw-r--r--···0·root·········(0)·root·········(0)·····1935·2024-11-10·15:46:20.000000·./usr/share/doc/python-igraph-doc/html/objects.inv | 466 | -rw-r--r--···0·root·········(0)·root·········(0)·····1935·2024-11-10·15:46:20.000000·./usr/share/doc/python-igraph-doc/html/objects.inv |
467 | -rw-r--r--···0·root·········(0)·root·········(0)·····5158·2024-11-10·15:46:20.000000·./usr/share/doc/python-igraph-doc/html/search.html | 467 | -rw-r--r--···0·root·········(0)·root·········(0)·····5158·2024-11-10·15:46:20.000000·./usr/share/doc/python-igraph-doc/html/search.html |
468 | -rw-r--r--···0·root·········(0)·root·········(0)····784 | 468 | -rw-r--r--···0·root·········(0)·root·········(0)····78473·2024-11-10·15:46:20.000000·./usr/share/doc/python-igraph-doc/html/searchindex.js |
469 | -rw-r--r--···0·root·········(0)·root·········(0)····15492·2024-11-10·15:46:20.000000·./usr/share/doc/python-igraph-doc/html/sg_execution_times.html | 469 | -rw-r--r--···0·root·········(0)·root·········(0)····15492·2024-11-10·15:46:20.000000·./usr/share/doc/python-igraph-doc/html/sg_execution_times.html |
470 | -rw-r--r--···0·root·········(0)·root·········(0)···128509·2024-11-10·15:46:20.000000·./usr/share/doc/python-igraph-doc/html/tutorial.es.html | 470 | -rw-r--r--···0·root·········(0)·root·········(0)···128509·2024-11-10·15:46:20.000000·./usr/share/doc/python-igraph-doc/html/tutorial.es.html |
471 | -rw-r--r--···0·root·········(0)·root·········(0)···135840·2024-11-10·15:46:20.000000·./usr/share/doc/python-igraph-doc/html/tutorial.html | 471 | -rw-r--r--···0·root·········(0)·root·········(0)···135840·2024-11-10·15:46:20.000000·./usr/share/doc/python-igraph-doc/html/tutorial.html |
472 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-11-10·15:46:20.000000·./usr/share/doc/python-igraph-doc/html/tutorials/ | 472 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-11-10·15:46:20.000000·./usr/share/doc/python-igraph-doc/html/tutorials/ |
473 | -rw-r--r--···0·root·········(0)·root·········(0)····14862·2024-11-10·15:46:20.000000·./usr/share/doc/python-igraph-doc/html/tutorials/articulation_points.html | 473 | -rw-r--r--···0·root·········(0)·root·········(0)····14862·2024-11-10·15:46:20.000000·./usr/share/doc/python-igraph-doc/html/tutorials/articulation_points.html |
474 | -rw-r--r--···0·root·········(0)·root·········(0)····28047·2024-11-10·15:46:20.000000·./usr/share/doc/python-igraph-doc/html/tutorials/betweenness.html | 474 | -rw-r--r--···0·root·········(0)·root·········(0)····28047·2024-11-10·15:46:20.000000·./usr/share/doc/python-igraph-doc/html/tutorials/betweenness.html |
475 | -rw-r--r--···0·root·········(0)·root·········(0)····21013·2024-11-10·15:46:20.000000·./usr/share/doc/python-igraph-doc/html/tutorials/bipartite_matching.html | 475 | -rw-r--r--···0·root·········(0)·root·········(0)····21013·2024-11-10·15:46:20.000000·./usr/share/doc/python-igraph-doc/html/tutorials/bipartite_matching.html |
Offset 490, 18 lines modified | Offset 490, 18 lines modified | ||
490 | -rw-r--r--···0·root·········(0)·root·········(0)····22900·2024-11-10·15:46:20.000000·./usr/share/doc/python-igraph-doc/html/tutorials/quickstart.html | 490 | -rw-r--r--···0·root·········(0)·root·········(0)····22900·2024-11-10·15:46:20.000000·./usr/share/doc/python-igraph-doc/html/tutorials/quickstart.html |
491 | -rw-r--r--···0·root·········(0)·root·········(0)···222904·2024-11-10·15:46:20.000000·./usr/share/doc/python-igraph-doc/html/tutorials/ring_animation.html | 491 | -rw-r--r--···0·root·········(0)·root·········(0)···222904·2024-11-10·15:46:20.000000·./usr/share/doc/python-igraph-doc/html/tutorials/ring_animation.html |
492 | -rw-r--r--···0·root·········(0)·root·········(0)····24514·2024-11-10·15:46:20.000000·./usr/share/doc/python-igraph-doc/html/tutorials/shortest_path_visualisation.html | 492 | -rw-r--r--···0·root·········(0)·root·········(0)····24514·2024-11-10·15:46:20.000000·./usr/share/doc/python-igraph-doc/html/tutorials/shortest_path_visualisation.html |
493 | -rw-r--r--···0·root·········(0)·root·········(0)····20275·2024-11-10·15:46:20.000000·./usr/share/doc/python-igraph-doc/html/tutorials/simplify.html | 493 | -rw-r--r--···0·root·········(0)·root·········(0)····20275·2024-11-10·15:46:20.000000·./usr/share/doc/python-igraph-doc/html/tutorials/simplify.html |
494 | -rw-r--r--···0·root·········(0)·root·········(0)····20262·2024-11-10·15:46:20.000000·./usr/share/doc/python-igraph-doc/html/tutorials/spanning_trees.html | 494 | -rw-r--r--···0·root·········(0)·root·········(0)····20262·2024-11-10·15:46:20.000000·./usr/share/doc/python-igraph-doc/html/tutorials/spanning_trees.html |
495 | -rw-r--r--···0·root·········(0)·root·········(0)····21909·2024-11-10·15:46:20.000000·./usr/share/doc/python-igraph-doc/html/tutorials/topological_sort.html | 495 | -rw-r--r--···0·root·········(0)·root·········(0)····21909·2024-11-10·15:46:20.000000·./usr/share/doc/python-igraph-doc/html/tutorials/topological_sort.html |
496 | -rw-r--r--···0·root·········(0)·root·········(0)····23992·2024-11-10·15:46:20.000000·./usr/share/doc/python-igraph-doc/html/tutorials/visual_style.html | 496 | -rw-r--r--···0·root·········(0)·root·········(0)····23992·2024-11-10·15:46:20.000000·./usr/share/doc/python-igraph-doc/html/tutorials/visual_style.html |
497 | -rw-r--r--···0·root·········(0)·root·········(0)····2092 | 497 | -rw-r--r--···0·root·········(0)·root·········(0)····20927·2024-11-10·15:46:20.000000·./usr/share/doc/python-igraph-doc/html/tutorials/visualize_cliques.html |
498 | -rw-r--r--···0·root·········(0)·root·········(0)····20453·2024-11-10·15:46:20.000000·./usr/share/doc/python-igraph-doc/html/tutorials/visualize_communities.html | 498 | -rw-r--r--···0·root·········(0)·root·········(0)····20453·2024-11-10·15:46:20.000000·./usr/share/doc/python-igraph-doc/html/tutorials/visualize_communities.html |
499 | -rw-r--r--···0·root·········(0)·root·········(0)····33649·2024-11-10·15:46:20.000000·./usr/share/doc/python-igraph-doc/html/visualisation.html | 499 | -rw-r--r--···0·root·········(0)·root·········(0)····33649·2024-11-10·15:46:20.000000·./usr/share/doc/python-igraph-doc/html/visualisation.html |
500 | -rw-r--r--···0·root·········(0)·root·········(0)··18937 | 500 | -rw-r--r--···0·root·········(0)·root·········(0)··1893746·2024-11-10·15:46:20.000000·./usr/share/doc/python-igraph-doc/igraph.pdf.gz |
501 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-11-10·15:46:20.000000·./usr/share/doc-base/ | 501 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-11-10·15:46:20.000000·./usr/share/doc-base/ |
502 | -rw-r--r--···0·root·········(0)·root·········(0)······362·2024-05-10·15:38:04.000000·./usr/share/doc-base/python-igraph-doc.igraph | 502 | -rw-r--r--···0·root·········(0)·root·········(0)······362·2024-05-10·15:38:04.000000·./usr/share/doc-base/python-igraph-doc.igraph |
503 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-11-10·15:46:20.000000·./usr/share/lintian/ | 503 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-11-10·15:46:20.000000·./usr/share/lintian/ |
504 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-11-10·15:46:20.000000·./usr/share/lintian/overrides/ | 504 | drwxr-xr-x···0·root·········(0)·root·········(0)········0·2024-11-10·15:46:20.000000·./usr/share/lintian/overrides/ |
505 | -rw-r--r--···0·root·········(0)·root·········(0)······154·2024-05-10·15:38:04.000000·./usr/share/lintian/overrides/python-igraph-doc | 505 | -rw-r--r--···0·root·········(0)·root·········(0)······154·2024-05-10·15:38:04.000000·./usr/share/lintian/overrides/python-igraph-doc |
506 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-11-10·15:46:20.000000·./usr/share/doc/python-igraph-doc/html/_static/css/badge_only.css·->·../../../../../sphinx_rtd_theme/static/css/badge_only.css | 506 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-11-10·15:46:20.000000·./usr/share/doc/python-igraph-doc/html/_static/css/badge_only.css·->·../../../../../sphinx_rtd_theme/static/css/badge_only.css |
507 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-11-10·15:46:20.000000·./usr/share/doc/python-igraph-doc/html/_static/css/theme.css·->·../../../../../sphinx_rtd_theme/static/css/theme.css | 507 | lrwxrwxrwx···0·root·········(0)·root·········(0)········0·2024-11-10·15:46:20.000000·./usr/share/doc/python-igraph-doc/html/_static/css/theme.css·->·../../../../../sphinx_rtd_theme/static/css/theme.css |
Offset 108, 15 lines modified | Offset 108, 15 lines modified | ||
108 | ..·rst-class::·sphx-glr-timing | 108 | ..·rst-class::·sphx-glr-timing |
109 | ···**Total·running·time·of·the·script:**·(0·minutes·0.7 | 109 | ···**Total·running·time·of·the·script:**·(0·minutes·0.796·seconds) |
110 | ..·_sphx_glr_download_tutorials_articulation_points.py: | 110 | ..·_sphx_glr_download_tutorials_articulation_points.py: |
111 | ..·only::·html | 111 | ..·only::·html |
112 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example | 112 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example |
Offset 193, 15 lines modified | Offset 193, 15 lines modified | ||
193 | ..·rst-class::·sphx-glr-timing | 193 | ..·rst-class::·sphx-glr-timing |
194 | ···**Total·running·time·of·the·script:**·(0·minutes·1 | 194 | ···**Total·running·time·of·the·script:**·(0·minutes·12.443·seconds) |
195 | ..·_sphx_glr_download_tutorials_betweenness.py: | 195 | ..·_sphx_glr_download_tutorials_betweenness.py: |
196 | ..·only::·html | 196 | ..·only::·html |
197 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example | 197 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example |
Offset 161, 22 lines modified | Offset 161, 22 lines modified | ||
161 | ..·rst-class::·sphx-glr-script-out | 161 | ..·rst-class::·sphx-glr-script-out |
162 | ·..·code-block::·none | 162 | ·..·code-block::·none |
163 | ····<igraph.drawing.matplotlib.graph.GraphArtist·object·at·0x | 163 | ····<igraph.drawing.matplotlib.graph.GraphArtist·object·at·0xab73ab40> |
164 | ..·rst-class::·sphx-glr-timing | 164 | ..·rst-class::·sphx-glr-timing |
165 | ···**Total·running·time·of·the·script:**·(0·minutes·0.7 | 165 | ···**Total·running·time·of·the·script:**·(0·minutes·0.774·seconds) |
166 | ..·_sphx_glr_download_tutorials_bipartite_matching.py: | 166 | ..·_sphx_glr_download_tutorials_bipartite_matching.py: |
167 | ..·only::·html | 167 | ..·only::·html |
168 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example | 168 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example |
Offset 176, 15 lines modified | Offset 176, 15 lines modified | ||
176 | ..·rst-class::·sphx-glr-timing | 176 | ..·rst-class::·sphx-glr-timing |
177 | ···**Total·running·time·of·the·script:**·(0·minutes· | 177 | ···**Total·running·time·of·the·script:**·(0·minutes·0.980·seconds) |
178 | ..·_sphx_glr_download_tutorials_bipartite_matching_maxflow.py: | 178 | ..·_sphx_glr_download_tutorials_bipartite_matching_maxflow.py: |
179 | ..·only::·html | 179 | ..·only::·html |
180 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example | 180 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example |
Offset 209, 15 lines modified | Offset 209, 15 lines modified | ||
209 | ..·rst-class::·sphx-glr-timing | 209 | ..·rst-class::·sphx-glr-timing |
210 | ···**Total·running·time·of·the·script:**·(0·minutes·2. | 210 | ···**Total·running·time·of·the·script:**·(0·minutes·2.192·seconds) |
211 | ..·_sphx_glr_download_tutorials_bridges.py: | 211 | ..·_sphx_glr_download_tutorials_bridges.py: |
212 | ..·only::·html | 212 | ..·only::·html |
213 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example | 213 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example |
Offset 401, 15 lines modified | Offset 401, 15 lines modified | ||
401 | ..·rst-class::·sphx-glr-timing | 401 | ..·rst-class::·sphx-glr-timing |
402 | ···**Total·running·time·of·the·script:**·(0·minutes· | 402 | ···**Total·running·time·of·the·script:**·(0·minutes·7.766·seconds) |
403 | ..·_sphx_glr_download_tutorials_cluster_contraction.py: | 403 | ..·_sphx_glr_download_tutorials_cluster_contraction.py: |
404 | ..·only::·html | 404 | ..·only::·html |
405 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example | 405 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example |
Offset 173, 15 lines modified | Offset 173, 15 lines modified | ||
173 | ..·rst-class::·sphx-glr-timing | 173 | ..·rst-class::·sphx-glr-timing |
174 | ···**Total·running·time·of·the·script:**·(0·minutes· | 174 | ···**Total·running·time·of·the·script:**·(0·minutes·2.872·seconds) |
175 | ..·_sphx_glr_download_tutorials_complement.py: | 175 | ..·_sphx_glr_download_tutorials_complement.py: |
176 | ..·only::·html | 176 | ..·only::·html |
177 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example | 177 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example |
Offset 159, 15 lines modified | Offset 159, 15 lines modified | ||
159 | ····To·use·a·consistent·style·between·individual·plots·(e.g.·vertex·sizes, | 159 | ····To·use·a·consistent·style·between·individual·plots·(e.g.·vertex·sizes, |
160 | ····colors,·layout·etc.)·check·out·:ref:`tutorials-visual-style`. | 160 | ····colors,·layout·etc.)·check·out·:ref:`tutorials-visual-style`. |
161 | ..·rst-class::·sphx-glr-timing | 161 | ..·rst-class::·sphx-glr-timing |
162 | ···**Total·running·time·of·the·script:**·(0·minutes· | 162 | ···**Total·running·time·of·the·script:**·(0·minutes·7.854·seconds) |
163 | ..·_sphx_glr_download_tutorials_configuration.py: | 163 | ..·_sphx_glr_download_tutorials_configuration.py: |
164 | ..·only::·html | 164 | ..·only::·html |
165 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example | 165 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example |
Offset 117, 15 lines modified | Offset 117, 15 lines modified | ||
117 | ····We·use·the·integers·from·0·to·200·instead·of·0·to·255·in·our·vertex | 117 | ····We·use·the·integers·from·0·to·200·instead·of·0·to·255·in·our·vertex |
118 | ····colors,·since·255·in·the·:class:`igraph.drawing.colors.RainbowPalette` | 118 | ····colors,·since·255·in·the·:class:`igraph.drawing.colors.RainbowPalette` |
119 | ····corresponds·to·looping·back·to·red.·This·gives·us·nicely·distinct·hues. | 119 | ····corresponds·to·looping·back·to·red.·This·gives·us·nicely·distinct·hues. |
120 | ..·rst-class::·sphx-glr-timing | 120 | ..·rst-class::·sphx-glr-timing |
121 | ···**Total·running·time·of·the·script:**·(0·minutes·3. | 121 | ···**Total·running·time·of·the·script:**·(0·minutes·3.515·seconds) |
122 | ..·_sphx_glr_download_tutorials_connected_components.py: | 122 | ..·_sphx_glr_download_tutorials_connected_components.py: |
123 | ..·only::·html | 123 | ..·only::·html |
124 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example | 124 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example |
Offset 140, 15 lines modified | Offset 140, 15 lines modified | ||
140 | ..·rst-class::·sphx-glr-script-out | 140 | ..·rst-class::·sphx-glr-script-out |
141 | ·..·code-block::·none | 141 | ·..·code-block::·none |
142 | ····<igraph.Graph·object·at·0x | 142 | ····<igraph.Graph·object·at·0xae4367b0> |
143 | ..·GENERATED·FROM·PYTHON·SOURCE·LINES·52-54 | 143 | ..·GENERATED·FROM·PYTHON·SOURCE·LINES·52-54 |
144 | Finally,·plotting·the·graph·gives·a·good·idea·of·what·the·triangulation·looks | 144 | Finally,·plotting·the·graph·gives·a·good·idea·of·what·the·triangulation·looks |
145 | like: | 145 | like: |
Offset 244, 15 lines modified | Offset 244, 15 lines modified | ||
244 | ..·rst-class::·sphx-glr-timing | 244 | ..·rst-class::·sphx-glr-timing |
245 | ···**Total·running·time·of·the·script:**·(0·minutes· | 245 | ···**Total·running·time·of·the·script:**·(0·minutes·3.519·seconds) |
246 | ..·_sphx_glr_download_tutorials_delaunay-triangulation.py: | 246 | ..·_sphx_glr_download_tutorials_delaunay-triangulation.py: |
247 | ..·only::·html | 247 | ..·only::·html |
248 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example | 248 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example |
Offset 186, 15 lines modified | Offset 186, 15 lines modified | ||
186 | ..·rst-class::·sphx-glr-timing | 186 | ..·rst-class::·sphx-glr-timing |
187 | ···**Total·running·time·of·the·script:**·(0·minutes·5.5 | 187 | ···**Total·running·time·of·the·script:**·(0·minutes·5.572·seconds) |
188 | ..·_sphx_glr_download_tutorials_erdos_renyi.py: | 188 | ..·_sphx_glr_download_tutorials_erdos_renyi.py: |
189 | ..·only::·html | 189 | ..·only::·html |
190 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example | 190 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example |
Offset 147, 15 lines modified | Offset 147, 15 lines modified | ||
147 | ..·rst-class::·sphx-glr-timing | 147 | ..·rst-class::·sphx-glr-timing |
148 | ···**Total·running·time·of·the·script:**·(0·minutes·2. | 148 | ···**Total·running·time·of·the·script:**·(0·minutes·2.213·seconds) |
149 | ..·_sphx_glr_download_tutorials_generate_dag.py: | 149 | ..·_sphx_glr_download_tutorials_generate_dag.py: |
150 | ..·only::·html | 150 | ..·only::·html |
151 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example | 151 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example |
Offset 154, 15 lines modified | Offset 154, 15 lines modified | ||
154 | ..·rst-class::·sphx-glr-timing | 154 | ..·rst-class::·sphx-glr-timing |
155 | ···**Total·running·time·of·the·script:**·(0·minutes·1. | 155 | ···**Total·running·time·of·the·script:**·(0·minutes·1.437·seconds) |
156 | ..·_sphx_glr_download_tutorials_isomorphism.py: | 156 | ..·_sphx_glr_download_tutorials_isomorphism.py: |
157 | ..·only::·html | 157 | ..·only::·html |
158 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example | 158 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example |
Offset 121, 15 lines modified | Offset 121, 15 lines modified | ||
121 | ..·rst-class::·sphx-glr-timing | 121 | ..·rst-class::·sphx-glr-timing |
122 | ···**Total·running·time·of·the·script:**·(0·minutes·0. | 122 | ···**Total·running·time·of·the·script:**·(0·minutes·0.569·seconds) |
123 | ..·_sphx_glr_download_tutorials_maxflow.py: | 123 | ..·_sphx_glr_download_tutorials_maxflow.py: |
124 | ..·only::·html | 124 | ..·only::·html |
125 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example | 125 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example |
Offset 141, 15 lines modified | Offset 141, 15 lines modified | ||
141 | ..·rst-class::·sphx-glr-timing | 141 | ..·rst-class::·sphx-glr-timing |
142 | ···**Total·running·time·of·the·script:**·(0·minutes·2. | 142 | ···**Total·running·time·of·the·script:**·(0·minutes·2.187·seconds) |
143 | ..·_sphx_glr_download_tutorials_minimum_spanning_trees.py: | 143 | ..·_sphx_glr_download_tutorials_minimum_spanning_trees.py: |
144 | ..·only::·html | 144 | ..·only::·html |
145 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example | 145 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example |
Offset 245, 15 lines modified | Offset 245, 15 lines modified | ||
245 | ..·rst-class::·sphx-glr-timing | 245 | ..·rst-class::·sphx-glr-timing |
246 | ···**Total·running·time·of·the·script:**·(0·minutes· | 246 | ···**Total·running·time·of·the·script:**·(0·minutes·1.942·seconds) |
247 | ..·_sphx_glr_download_tutorials_online_user_actions.py: | 247 | ..·_sphx_glr_download_tutorials_online_user_actions.py: |
248 | ..·only::·html | 248 | ..·only::·html |
249 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example | 249 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example |
Offset 104, 15 lines modified | Offset 104, 15 lines modified | ||
104 | ····#·Export·and·import·a·graph·as·a·GML·file. | 104 | ····#·Export·and·import·a·graph·as·a·GML·file. |
105 | ····g.save("social_network.gml") | 105 | ····g.save("social_network.gml") |
106 | ····g·=·ig.load("social_network.gml") | 106 | ····g·=·ig.load("social_network.gml") |
107 | ..·rst-class::·sphx-glr-timing | 107 | ..·rst-class::·sphx-glr-timing |
108 | ···**Total·running·time·of·the·script:**·(0·minutes· | 108 | ···**Total·running·time·of·the·script:**·(0·minutes·0.936·seconds) |
109 | ..·_sphx_glr_download_tutorials_quickstart.py: | 109 | ..·_sphx_glr_download_tutorials_quickstart.py: |
110 | ..·only::·html | 110 | ..·only::·html |
111 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example | 111 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example |
Offset 339, 62 lines modified | Offset 339, 62 lines modified | ||
339 | ·····.anim-state·input·{ | 339 | ·····.anim-state·input·{ |
340 | ·········margin:·0; | 340 | ·········margin:·0; |
341 | ·········vertical-align:·middle; | 341 | ·········vertical-align:·middle; |
342 | ·····} | 342 | ·····} |
343 | ·····</style> | 343 | ·····</style> |
344 | ·····<div·class="animation"> | 344 | ·····<div·class="animation"> |
345 | ·······<img·id="_anim_img | 345 | ·······<img·id="_anim_imgeeb8c2e865fd4cef98422484062963f0"> |
346 | ·······<div·class="anim-controls"> | 346 | ·······<div·class="anim-controls"> |
347 | ·········<input·id="_anim_slider | 347 | ·········<input·id="_anim_slidereeb8c2e865fd4cef98422484062963f0"·type="range"·class="anim-slider" |
348 | ················name="points"·min="0"·max="1"·step="1"·value="0" | 348 | ················name="points"·min="0"·max="1"·step="1"·value="0" |
349 | ················oninput="anim | 349 | ················oninput="animeeb8c2e865fd4cef98422484062963f0.set_frame(parseInt(this.value));"> |
350 | ·········<div·class="anim-buttons"> | 350 | ·········<div·class="anim-buttons"> |
351 | ···········<button·title="Decrease·speed"·aria-label="Decrease·speed"·onclick="anim | 351 | ···········<button·title="Decrease·speed"·aria-label="Decrease·speed"·onclick="animeeb8c2e865fd4cef98422484062963f0.slower()"> |
352 | ···············<i·class="fa·fa-minus"></i></button> | 352 | ···············<i·class="fa·fa-minus"></i></button> |
353 | ···········<button·title="First·frame"·aria-label="First·frame"·onclick="anim | 353 | ···········<button·title="First·frame"·aria-label="First·frame"·onclick="animeeb8c2e865fd4cef98422484062963f0.first_frame()"> |
354 | ·············<i·class="fa·fa-fast-backward"></i></button> | 354 | ·············<i·class="fa·fa-fast-backward"></i></button> |
355 | ···········<button·title="Previous·frame"·aria-label="Previous·frame"·onclick="anim | 355 | ···········<button·title="Previous·frame"·aria-label="Previous·frame"·onclick="animeeb8c2e865fd4cef98422484062963f0.previous_frame()"> |
356 | ···············<i·class="fa·fa-step-backward"></i></button> | 356 | ···············<i·class="fa·fa-step-backward"></i></button> |
357 | ···········<button·title="Play·backwards"·aria-label="Play·backwards"·onclick="anim | 357 | ···········<button·title="Play·backwards"·aria-label="Play·backwards"·onclick="animeeb8c2e865fd4cef98422484062963f0.reverse_animation()"> |
358 | ···············<i·class="fa·fa-play·fa-flip-horizontal"></i></button> | 358 | ···············<i·class="fa·fa-play·fa-flip-horizontal"></i></button> |
359 | ···········<button·title="Pause"·aria-label="Pause"·onclick="anim | 359 | ···········<button·title="Pause"·aria-label="Pause"·onclick="animeeb8c2e865fd4cef98422484062963f0.pause_animation()"> |
360 | ···············<i·class="fa·fa-pause"></i></button> | 360 | ···············<i·class="fa·fa-pause"></i></button> |
361 | ···········<button·title="Play"·aria-label="Play"·onclick="anim | 361 | ···········<button·title="Play"·aria-label="Play"·onclick="animeeb8c2e865fd4cef98422484062963f0.play_animation()"> |
362 | ···············<i·class="fa·fa-play"></i></button> | 362 | ···············<i·class="fa·fa-play"></i></button> |
363 | ···········<button·title="Next·frame"·aria-label="Next·frame"·onclick="anim | 363 | ···········<button·title="Next·frame"·aria-label="Next·frame"·onclick="animeeb8c2e865fd4cef98422484062963f0.next_frame()"> |
364 | ···············<i·class="fa·fa-step-forward"></i></button> | 364 | ···············<i·class="fa·fa-step-forward"></i></button> |
365 | ···········<button·title="Last·frame"·aria-label="Last·frame"·onclick="anim | 365 | ···········<button·title="Last·frame"·aria-label="Last·frame"·onclick="animeeb8c2e865fd4cef98422484062963f0.last_frame()"> |
366 | ···············<i·class="fa·fa-fast-forward"></i></button> | 366 | ···············<i·class="fa·fa-fast-forward"></i></button> |
367 | ···········<button·title="Increase·speed"·aria-label="Increase·speed"·onclick="anim | 367 | ···········<button·title="Increase·speed"·aria-label="Increase·speed"·onclick="animeeb8c2e865fd4cef98422484062963f0.faster()"> |
368 | ···············<i·class="fa·fa-plus"></i></button> | 368 | ···············<i·class="fa·fa-plus"></i></button> |
369 | ·········</div> | 369 | ·········</div> |
370 | ·········<form·title="Repetition·mode"·aria-label="Repetition·mode"·action="#n"·name="_anim_loop_select | 370 | ·········<form·title="Repetition·mode"·aria-label="Repetition·mode"·action="#n"·name="_anim_loop_selecteeb8c2e865fd4cef98422484062963f0" |
371 | ···············class="anim-state"> | 371 | ···············class="anim-state"> |
372 | ···········<input·type="radio"·name="state"·value="once"·id="_anim_radio1_ | 372 | ···········<input·type="radio"·name="state"·value="once"·id="_anim_radio1_eeb8c2e865fd4cef98422484062963f0" |
373 | ··················> | 373 | ··················> |
374 | ···········<label·for="_anim_radio1_dcf098e8e0fb4c2886c59ef5cbd39746">Once</label> | ||
375 | ···········< | 374 | ···········<label·for="_anim_radio1_eeb8c2e865fd4cef98422484062963f0">Once</label> |
375 | ···········<input·type="radio"·name="state"·value="loop"·id="_anim_radio2_eeb8c2e865fd4cef98422484062963f0" | ||
376 | ··················checked> | 376 | ··················checked> |
377 | ···········<label·for="_anim_radio2_dcf098e8e0fb4c2886c59ef5cbd39746">Loop</label> | ||
378 | ···········< | 377 | ···········<label·for="_anim_radio2_eeb8c2e865fd4cef98422484062963f0">Loop</label> |
378 | ···········<input·type="radio"·name="state"·value="reflect"·id="_anim_radio3_eeb8c2e865fd4cef98422484062963f0" | ||
379 | ··················> | 379 | ··················> |
380 | ···········<label·for="_anim_radio3_ | 380 | ···········<label·for="_anim_radio3_eeb8c2e865fd4cef98422484062963f0">Reflect</label> |
381 | ·········</form> | 381 | ·········</form> |
382 | ·······</div> | 382 | ·······</div> |
383 | ·····</div> | 383 | ·····</div> |
384 | ·····<script·language="javascript"> | 384 | ·····<script·language="javascript"> |
385 | ·······/*·Instantiate·the·Animation·class.·*/ | 385 | ·······/*·Instantiate·the·Animation·class.·*/ |
386 | ·······/*·The·IDs·given·should·match·those·used·in·the·template·above.·*/ | 386 | ·······/*·The·IDs·given·should·match·those·used·in·the·template·above.·*/ |
387 | ·······(function()·{ | 387 | ·······(function()·{ |
388 | ·········var·img_id·=·"_anim_imgdcf098e8e0fb4c2886c59ef5cbd39746"; | ||
389 | ·········var·slider_id·=·"_anim_sliderdcf098e8e0fb4c2886c59ef5cbd39746"; | ||
390 | ·········var· | 388 | ·········var·img_id·=·"_anim_imgeeb8c2e865fd4cef98422484062963f0"; |
389 | ·········var·slider_id·=·"_anim_slidereeb8c2e865fd4cef98422484062963f0"; | ||
390 | ·········var·loop_select_id·=·"_anim_loop_selecteeb8c2e865fd4cef98422484062963f0"; | ||
391 | ·········var·frames·=·new·Array(12); | 391 | ·········var·frames·=·new·Array(12); |
392 | ···· | 392 | ···· |
393 | ·······frames[0]·=·"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAoAAAAHgCAYAAAA10dzkAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90\ | 393 | ·······frames[0]·=·"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAoAAAAHgCAYAAAA10dzkAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90\ |
394 | ·····bGliIHZlcnNpb24zLjguMywgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/H5lhTAAAACXBIWXMAAA9h\ | 394 | ·····bGliIHZlcnNpb24zLjguMywgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/H5lhTAAAACXBIWXMAAA9h\ |
395 | ·····AAAPYQGoP6dpAAAIyUlEQVR4nO3WMQEAIAzAMMC/5+ECjiYKenbPzCwAADLO7wAAAN4ygAAAMQYQ\ | 395 | ·····AAAPYQGoP6dpAAAIyUlEQVR4nO3WMQEAIAzAMMC/5+ECjiYKenbPzCwAADLO7wAAAN4ygAAAMQYQ\ |
396 | ·····ACDGAAIAxBhAAIAYAwgAEGMAAQBiDCAAQIwBBACIMYAAADEGEAAgxgACAMQYQACAGAMIABBjAAEA\ | 396 | ·····ACDGAAIAxBhAAIAYAwgAEGMAAQBiDCAAQIwBBACIMYAAADEGEAAgxgACAMQYQACAGAMIABBjAAEA\ |
397 | ·····YgwgAECMAQQAiDGAAAAxBhAAIMYAAgDEGEAAgBgDCAAQYwABAGIMIABAjAEEAIgxgAAAMQYQACDG\ | 397 | ·····YgwgAECMAQQAiDGAAAAxBhAAIMYAAgDEGEAAgBgDCAAQYwABAGIMIABAjAEEAIgxgAAAMQYQACDG\ |
Offset 2920, 15 lines modified | Offset 2920, 15 lines modified | ||
2920 | ·····AGAy/weJWDiHdFrdTQAAAABJRU5ErkJggg==\ | 2920 | ·····AGAy/weJWDiHdFrdTQAAAABJRU5ErkJggg==\ |
2921 | ·····" | 2921 | ·····" |
2922 | ·········/*·set·a·timeout·to·make·sure·all·the·above·elements·are·created·before | 2922 | ·········/*·set·a·timeout·to·make·sure·all·the·above·elements·are·created·before |
2923 | ············the·object·is·initialized.·*/ | 2923 | ············the·object·is·initialized.·*/ |
2924 | ·········setTimeout(function()·{ | 2924 | ·········setTimeout(function()·{ |
2925 | ·············anim | 2925 | ·············animeeb8c2e865fd4cef98422484062963f0·=·new·Animation(frames,·img_id,·slider_id,·500.0, |
2926 | ······································loop_select_id); | 2926 | ······································loop_select_id); |
2927 | ·········},·0); | 2927 | ·········},·0); |
2928 | ·······})() | 2928 | ·······})() |
2929 | ·····</script> | 2929 | ·····</script> |
Offset 2945, 15 lines modified | Offset 2945, 15 lines modified | ||
2945 | ···example,·this·approach·is·not·very·efficient.·Thinking·of·more·efficient | 2945 | ···example,·this·approach·is·not·very·efficient.·Thinking·of·more·efficient |
2946 | ···approaches,·e.g.·vertices·with·zero·radius,·is·a·useful·exercise·to·learn | 2946 | ···approaches,·e.g.·vertices·with·zero·radius,·is·a·useful·exercise·to·learn |
2947 | ···the·combination·of·igraph·and·matplotlib. | 2947 | ···the·combination·of·igraph·and·matplotlib. |
2948 | ..·rst-class::·sphx-glr-timing | 2948 | ..·rst-class::·sphx-glr-timing |
2949 | ···**Total·running·time·of·the·script:**·(0·minutes·1 | 2949 | ···**Total·running·time·of·the·script:**·(0·minutes·11.112·seconds) |
2950 | ..·_sphx_glr_download_tutorials_ring_animation.py: | 2950 | ..·_sphx_glr_download_tutorials_ring_animation.py: |
2951 | ..·only::·html | 2951 | ..·only::·html |
2952 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example | 2952 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example |
Offset 189, 15 lines modified | Offset 189, 15 lines modified | ||
189 | ..·rst-class::·sphx-glr-timing | 189 | ..·rst-class::·sphx-glr-timing |
190 | ···**Total·running·time·of·the·script:**·(0·minutes·0.61 | 190 | ···**Total·running·time·of·the·script:**·(0·minutes·0.614·seconds) |
191 | ..·_sphx_glr_download_tutorials_shortest_path_visualisation.py: | 191 | ..·_sphx_glr_download_tutorials_shortest_path_visualisation.py: |
192 | ..·only::·html | 192 | ..·only::·html |
193 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example | 193 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example |
Offset 88, 15 lines modified | Offset 88, 15 lines modified | ||
88 | ..·rst-class::·sphx-glr-script-out | 88 | ..·rst-class::·sphx-glr-script-out |
89 | ·..·code-block::·none | 89 | ·..·code-block::·none |
90 | ····<igraph.Graph·object·at·0x | 90 | ····<igraph.Graph·object·at·0xae320230> |
91 | ..·GENERATED·FROM·PYTHON·SOURCE·LINES·38-40 | 91 | ..·GENERATED·FROM·PYTHON·SOURCE·LINES·38-40 |
92 | We·can·then·proceed·to·plot·both·graphs·to·see·the·difference.·First,·let's | 92 | We·can·then·proceed·to·plot·both·graphs·to·see·the·difference.·First,·let's |
93 | choose·a·consistent·visual·style: | 93 | choose·a·consistent·visual·style: |
Offset 161, 15 lines modified | Offset 161, 15 lines modified | ||
161 | ..·rst-class::·sphx-glr-timing | 161 | ..·rst-class::·sphx-glr-timing |
162 | ···**Total·running·time·of·the·script:**·(0·minutes· | 162 | ···**Total·running·time·of·the·script:**·(0·minutes·0.929·seconds) |
163 | ..·_sphx_glr_download_tutorials_simplify.py: | 163 | ..·_sphx_glr_download_tutorials_simplify.py: |
164 | ..·only::·html | 164 | ..·only::·html |
165 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example | 165 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example |
Offset 161, 15 lines modified | Offset 161, 15 lines modified | ||
161 | ..·note:: | 161 | ..·note:: |
162 | ··To·invert·the·y·axis·such·that·the·root·of·the·tree·is·on·top·of·the·plot, | 162 | ··To·invert·the·y·axis·such·that·the·root·of·the·tree·is·on·top·of·the·plot, |
163 | ··you·can·call·`ax.invert_yaxis()`·before·`plt.show()`. | 163 | ··you·can·call·`ax.invert_yaxis()`·before·`plt.show()`. |
164 | ..·rst-class::·sphx-glr-timing | 164 | ..·rst-class::·sphx-glr-timing |
165 | ···**Total·running·time·of·the·script:**·(0·minutes·2. | 165 | ···**Total·running·time·of·the·script:**·(0·minutes·2.957·seconds) |
166 | ..·_sphx_glr_download_tutorials_spanning_trees.py: | 166 | ..·_sphx_glr_download_tutorials_spanning_trees.py: |
167 | ..·only::·html | 167 | ..·only::·html |
168 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example | 168 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example |
Offset 179, 15 lines modified | Offset 179, 15 lines modified | ||
179 | ..·rst-class::·sphx-glr-timing | 179 | ..·rst-class::·sphx-glr-timing |
180 | ···**Total·running·time·of·the·script:**·(0·minutes·0. | 180 | ···**Total·running·time·of·the·script:**·(0·minutes·0.609·seconds) |
181 | ..·_sphx_glr_download_tutorials_topological_sort.py: | 181 | ..·_sphx_glr_download_tutorials_topological_sort.py: |
182 | ..·only::·html | 182 | ..·only::·html |
183 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example | 183 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example |
Offset 212, 15 lines modified | Offset 212, 15 lines modified | ||
212 | ..·rst-class::·sphx-glr-timing | 212 | ..·rst-class::·sphx-glr-timing |
213 | ···**Total·running·time·of·the·script:**·(0·minutes·1 | 213 | ···**Total·running·time·of·the·script:**·(0·minutes·11.312·seconds) |
214 | ..·_sphx_glr_download_tutorials_visual_style.py: | 214 | ..·_sphx_glr_download_tutorials_visual_style.py: |
215 | ..·only::·html | 215 | ..·only::·html |
216 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example | 216 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example |
Offset 155, 15 lines modified | Offset 155, 15 lines modified | ||
155 | ..·rst-class::·sphx-glr-timing | 155 | ..·rst-class::·sphx-glr-timing |
156 | ···**Total·running·time·of·the·script:**·( | 156 | ···**Total·running·time·of·the·script:**·(1·minutes·1.189·seconds) |
157 | ..·_sphx_glr_download_tutorials_visualize_cliques.py: | 157 | ..·_sphx_glr_download_tutorials_visualize_cliques.py: |
158 | ..·only::·html | 158 | ..·only::·html |
159 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example | 159 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example |
Offset 153, 15 lines modified | Offset 153, 15 lines modified | ||
153 | For·an·example·on·how·to·generate·the·cluster·graph·from·a·vertex·cluster, | 153 | For·an·example·on·how·to·generate·the·cluster·graph·from·a·vertex·cluster, |
154 | check·out·:ref:`tutorials-cluster-graph`. | 154 | check·out·:ref:`tutorials-cluster-graph`. |
155 | ..·rst-class::·sphx-glr-timing | 155 | ..·rst-class::·sphx-glr-timing |
156 | ···**Total·running·time·of·the·script:**·(0·minutes· | 156 | ···**Total·running·time·of·the·script:**·(0·minutes·2.790·seconds) |
157 | ..·_sphx_glr_download_tutorials_visualize_communities.py: | 157 | ..·_sphx_glr_download_tutorials_visualize_communities.py: |
158 | ..·only::·html | 158 | ..·only::·html |
159 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example | 159 | ··..·container::·sphx-glr-footer·sphx-glr-footer-example |
Offset 459, 146 lines modified | Offset 459, 146 lines modified | ||
459 | ········"0":·[0,·3,·4,·7,·8,·9,·10,·11,·12,·13,·14,·15,·16,·17,·18,·19,·20,·21,·23,·24,·25,·26,·27,·28,·29,·30,·31,·32,·33,·34,·35,·36], | 459 | ········"0":·[0,·3,·4,·7,·8,·9,·10,·11,·12,·13,·14,·15,·16,·17,·18,·19,·20,·21,·23,·24,·25,·26,·27,·28,·29,·30,·31,·32,·33,·34,·35,·36], |
460 | ········"00":·7, | 460 | ········"00":·7, |
461 | ········"000":·8, | 461 | ········"000":·8, |
462 | ········"0088ff":·[8,·9], | 462 | ········"0088ff":·[8,·9], |
463 | ········"01":·[7,·8,·9], | 463 | ········"01":·[7,·8,·9], |
464 | ········"013":·7, | 464 | ········"013":·7, |
465 | ········"02":·[7,·8,·9], | 465 | ········"02":·[7,·8,·9], |
466 | ········"040":·27, | ||
467 | ········"05":·[8,·9], | 466 | ········"05":·[8,·9], |
468 | ········"052":·7, | 467 | ········"052":·7, |
469 | ········"058":·7, | 468 | ········"058":·7, |
470 | ········"062":·13, | ||
471 | ········"067":·7, | 469 | ········"067":·7, |
472 | ········"073":·7, | 470 | ········"073":·7, |
473 | ········"078":·30, | ||
474 | ········"079":·7, | 471 | ········"079":·7, |
475 | ········"08f":·[8,·9], | 472 | ········"08f":·[8,·9], |
476 | ········"0x | 473 | ········"0xab73ab40":·12, |
477 | ········"0xeed7d130":·19, | ||
478 | ········"0x | 474 | ········"0xae320230":·30, |
475 | ········"0xae4367b0":·19, | ||
479 | ········"1":·[0,·4,·5,·6,·8,·9,·10,·11,·12,·13,·14,·15,·16,·17,·19,·20,·21,·23,·24,·25,·26,·27,·28,·29,·30,·32,·33,·34,·35,·36], | 476 | ········"1":·[0,·4,·5,·6,·8,·9,·10,·11,·12,·13,·14,·15,·16,·17,·19,·20,·21,·23,·24,·25,·26,·27,·28,·29,·30,·32,·33,·34,·35,·36], |
480 | ········"10":·[0,·4,·5,·7,·8,·9,·11,·13,·14,·15,·16,·26,·28], | 477 | ········"10":·[0,·4,·5,·7,·8,·9,·11,·13,·14,·15,·16,·26,·28], |
481 | ········"100":·[0,·8,·9,·15,·17,·19,·35,·36], | 478 | ········"100":·[0,·8,·9,·15,·17,·19,·35,·36], |
482 | ········"10000":·9, | 479 | ········"10000":·9, |
483 | ········"11":·[13,·14,·27,·28], | 480 | ········"11":·[13,·14,·27,·28,·33], |
484 | ········"110":·35, | ||
485 | ········"111223":·4, | 481 | ········"111223":·4, |
482 | ········"112":·28, | ||
486 | ········"112222":·4, | 483 | ········"112222":·4, |
487 | ········"12":·[8,·9,·1 | 484 | ········"12":·[8,·9,·11,·14,·27,·28], |
488 | ········"1205":·[8,·9], | 485 | ········"1205":·[8,·9], |
489 | ········"1252":·4, | 486 | ········"1252":·4, |
490 | ········"126":·[8,·9], | 487 | ········"126":·[8,·9], |
491 | ········"127":·[8,·9], | 488 | ········"127":·[8,·9], |
492 | ········"1282":·27, | 489 | ········"1282":·27, |
493 | ········"13":· | 490 | ········"13":·14, |
494 | ········"136":·25, | 491 | ········"136":·25, |
495 | ········"137":·7, | 492 | ········"137":·7, |
496 | ········"14":·[11,·14], | 493 | ········"14":·[11,·14], |
497 | ········"142":·7, | 494 | ········"142":·7, |
498 | ········"15":·[8,·9,·15,·17,·18,·20,·21,·23,·33], | 495 | ········"15":·[8,·9,·15,·17,·18,·20,·21,·23,·33], |
499 | ········"150":·11, | 496 | ········"150":·11, |
500 | ········"153":·7, | 497 | ········"153":·7, |
501 | ········"16":·11, | 498 | ········"16":·11, |
502 | ········"161":·7, | 499 | ········"161":·7, |
503 | ········"169":·7, | 500 | ········"169":·7, |
504 | ········"1695":·5, | 501 | ········"1695":·5, |
505 | ········"176":·7, | 502 | ········"176":·7, |
506 | ········"18":·[8,·9,·20], | 503 | ········"18":·[8,·9,·20], |
507 | ········"187":· | 504 | ········"187":·25, |
505 | ········"189":·34, | ||
506 | ········"192":·14, | ||
508 | ········"194":·7, | 507 | ········"194":·7, |
509 | ········"196":·16, | ||
510 | ········"199":·21, | ||
511 | ········"2":·[0,·4,·6,·8,·9,·10,·11,·12,·13,·14,·15,·16,·19,·20,·21,·23,·24,·25,·26,·27,·28,·29,·30,·31,·32,·33,·36], | 508 | ········"2":·[0,·4,·6,·8,·9,·10,·11,·12,·13,·14,·15,·16,·19,·20,·21,·23,·24,·25,·26,·27,·28,·29,·30,·31,·32,·33,·35,·36], |
512 | ········"20":·[8,·9,·11,·15,·20,·25,·30,·33,·35,·36], | 509 | ········"20":·[8,·9,·11,·15,·20,·25,·30,·33,·35,·36], |
513 | ········"200":·[17,·18], | 510 | ········"200":·[17,·18], |
514 | ········"2006":·5, | 511 | ········"2006":·5, |
515 | ········"2009":·[8,·9], | 512 | ········"2009":·[8,·9], |
516 | ········"201":·[7,·25], | 513 | ········"201":·[7,·25], |
517 | ········"2021":·[8,·9], | 514 | ········"2021":·[8,·9], |
518 | ········"2022":·3, | 515 | ········"2022":·3, |
519 | ········"21":·20, | 516 | ········"21":·20, |
517 | ········"213":·21, | ||
520 | ········"216":·7, | 518 | ········"216":·7, |
521 | ········"22":·[8,·9], | 519 | ········"22":·[8,·9], |
522 | ········"222":·21, | 520 | ········"222":·21, |
523 | ········"23":·[8,·9,·20], | 521 | ········"23":·[8,·9,·20], |
524 | ········"232":·19, | ||
525 | ········"2386714":·9, | 522 | ········"2386714":·9, |
526 | ········"25":·[7,·8,·9,·23,·32], | 523 | ········"25":·[7,·8,·9,·23,·32], |
527 | ········"255":·[8,·9,·15,·18,·33], | 524 | ········"255":·[8,·9,·15,·18,·33], |
528 | ········"270":·[8,·9], | 525 | ········"270":·[8,·9], |
529 | ········"28":·20, | 526 | ········"28":·20, |
530 | ········"285":·33, | ||
531 | ········"287":·7, | 527 | ········"287":·7, |
532 | ········"29":·[8,·9], | 528 | ········"29":·[8,·9], |
533 | ········"2d":·[8,·9,·19,·28,·31,·36], | 529 | ········"2d":·[8,·9,·19,·28,·31,·36], |
534 | ········"2r09ej221sk2k5":·26, | 530 | ········"2r09ej221sk2k5":·26, |
535 | ········"3":·[0,·4,·6,·8,·9,·10,·11,·12,·13,·14,·15,·1 | 531 | ········"3":·[0,·4,·6,·8,·9,·10,·11,·12,·13,·14,·15,·17,·18,·19,·23,·24,·25,·27,·28,·29,·30,·31,·32,·33,·34,·36], |
536 | ········"30":·[8,·9,·10,·12,·13,·14,·19,·21,·27,·33], | 532 | ········"30":·[8,·9,·10,·12,·13,·14,·19,·21,·27,·33], |
537 | ········"300":·[8,·9], | 533 | ········"300":·[8,·9], |
538 | ········"30745059034535":·11, | 534 | ········"30745059034535":·11, |
539 | ········"31":·[8,·9], | 535 | ········"31":·[8,·9], |
536 | ········"312":·33, | ||
540 | ········"313":·7, | 537 | ········"313":·7, |
541 | ········"320":·25, | ||
542 | ········"3203ejew332323":·26, | 538 | ········"3203ejew332323":·26, |
543 | ········"320eljl3lk3239":·26, | 539 | ········"320eljl3lk3239":·26, |
544 | ········"332":·7, | 540 | ········"332":·7, |
545 | ········"34":·[8,·9], | 541 | ········"34":·[8,·9], |
546 | ········"35":·20, | 542 | ········"35":·20, |
547 | ········"36":·31, | 543 | ········"36":·31, |
548 | ········"376":·[8,·9], | 544 | ········"376":·[8,·9], |
549 | ········"38":·23, | 545 | ········"38":·23, |
550 | ········"3d":·[8,·9,·36], | 546 | ········"3d":·[8,·9,·36], |
551 | ········"4":·[0,·4,·8,·9,·10,·12,·13,·14,·15,·19,·23,·24,·27,·29,·30,·32,·33,·34,·36], | 547 | ········"4":·[0,·4,·8,·9,·10,·12,·13,·14,·15,·19,·23,·24,·27,·29,·30,·32,·33,·34,·36], |
552 | ········"405":·26, | ||
553 | ········"40m11919332msa":·26, | 548 | ········"40m11919332msa":·26, |
554 | ········"416":·7, | 549 | ········"416":·7, |
550 | ········"437":·23, | ||
555 | ········"44":·4, | 551 | ········"44":·4, |
552 | ········"443":·11, | ||
556 | ········"47":·[8,·9], | 553 | ········"47":·[8,·9], |
557 | ········"477":·11, | 554 | ········"477":·11, |
558 | ········"494":·27, | 555 | ········"494":·27, |
559 | ········"4r4320dkqpdokk":·26, | 556 | ········"4r4320dkqpdokk":·26, |
560 | ········"5":·[0,·8,·9,·10,·11,·12,·13,·14,·15,·16,·20,·23,·24,·25,·27,·28,·29,·31,·32,·33,·34,·36], | 557 | ········"5":·[0,·8,·9,·10,·11,·12,·13,·14,·15,·16,·20,·23,·24,·25,·27,·28,·29,·31,·32,·33,·34,·36], |
561 | ········"50":·[8,·9,·11,·18], | 558 | ········"50":·[8,·9,·11,·18], |
562 | ········"500":·28, | 559 | ········"500":·28, |
563 | ········"504":·7, | 560 | ········"504":·7, |
561 | ········"515":·18, | ||
564 | ········"516":·[8,·9], | 562 | ········"516":·[8,·9], |
565 | ········"517":·6, | 563 | ········"517":·6, |
564 | ········"519":·19, | ||
565 | ········"569":·24, | ||
566 | ········"5 | 566 | ········"572":·20, |
567 | ········"534":·14, | ||
568 | ········"55":·34, | ||
569 | ········"592":·[23,·32], | ||
570 | ········"596":·11, | ||
571 | ········"6":·[0,·8,·9,·10,·11,·12,·13,·14,·15,· | 567 | ········"6":·[0,·8,·9,·10,·11,·12,·13,·14,·15,·24,·29,·31], |
572 | ········"600":·[8,·9], | 568 | ········"600":·[8,·9], |
569 | ········"609":·32, | ||
573 | ········"61 | 570 | ········"614":·29, |
Max diff block lines reached; 1083/5304 bytes (20.42%) of diff not shown. |
Offset 147, 15 lines modified | Offset 147, 15 lines modified | ||
147 | ····<span·class="n">vertex_frame_width</span>·<span·class="o">=</span>·<span·class="p">[</span><span·class="mi">3</span>·<span·class="k">if</span>·<span·class="n">v</span>·<span·class="ow">in</span>·<span·class="n">articulation_points</span>·<span·class="k">else</span>·<span·class="mi">1</span>·<span·class="k">for</span>·<span·class="n">v</span>·<span·class="ow">in</span>·<span·class="n">g</span><span·class="o">.</span><span·class="n">vs</span><span·class="p">],</span> | 147 | ····<span·class="n">vertex_frame_width</span>·<span·class="o">=</span>·<span·class="p">[</span><span·class="mi">3</span>·<span·class="k">if</span>·<span·class="n">v</span>·<span·class="ow">in</span>·<span·class="n">articulation_points</span>·<span·class="k">else</span>·<span·class="mi">1</span>·<span·class="k">for</span>·<span·class="n">v</span>·<span·class="ow">in</span>·<span·class="n">g</span><span·class="o">.</span><span·class="n">vs</span><span·class="p">],</span> |
148 | ····<span·class="n">edge_width</span><span·class="o">=</span><span·class="mf">0.8</span><span·class="p">,</span> | 148 | ····<span·class="n">edge_width</span><span·class="o">=</span><span·class="mf">0.8</span><span·class="p">,</span> |
149 | ····<span·class="n">edge_color</span><span·class="o">=</span><span·class="s1">'gray'</span> | 149 | ····<span·class="n">edge_color</span><span·class="o">=</span><span·class="s1">'gray'</span> |
150 | <span·class="p">)</span> | 150 | <span·class="p">)</span> |
151 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">show</span><span·class="p">()</span> | 151 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">show</span><span·class="p">()</span> |
152 | </pre></div> | 152 | </pre></div> |
153 | </div> | 153 | </div> |
154 | <img·src="../_images/sphx_glr_articulation_points_001.png"·srcset="../_images/sphx_glr_articulation_points_001.png"·alt="articulation·points"·class·=·"sphx-glr-single-img"/><p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·0.7 | 154 | <img·src="../_images/sphx_glr_articulation_points_001.png"·srcset="../_images/sphx_glr_articulation_points_001.png"·alt="articulation·points"·class·=·"sphx-glr-single-img"/><p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·0.796·seconds)</p> |
155 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-tutorials-articulation-points-py"> | 155 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-tutorials-articulation-points-py"> |
156 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> | 156 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> |
157 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/242671ca29595146630270920763946e/articulation_points.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">articulation_points.ipynb</span></code></a></p> | 157 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/242671ca29595146630270920763946e/articulation_points.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">articulation_points.ipynb</span></code></a></p> |
158 | </div> | 158 | </div> |
159 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> | 159 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> |
160 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/7716af8970a6076243a3268ecb8571bb/articulation_points.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">articulation_points.py</span></code></a></p> | 160 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/7716af8970a6076243a3268ecb8571bb/articulation_points.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">articulation_points.py</span></code></a></p> |
161 | </div> | 161 | </div> |
Offset 66, 15 lines modified | Offset 66, 15 lines modified | ||
66 | in·g.vs], | 66 | in·g.vs], |
67 | ····vertex_frame_width·=·[3·if·v·in·articulation_points·else·1·for·v·in·g.vs], | 67 | ····vertex_frame_width·=·[3·if·v·in·articulation_points·else·1·for·v·in·g.vs], |
68 | ····edge_width=0.8, | 68 | ····edge_width=0.8, |
69 | ····edge_color='gray' | 69 | ····edge_color='gray' |
70 | ) | 70 | ) |
71 | plt.show() | 71 | plt.show() |
72 | [articulation·points] | 72 | [articulation·points] |
73 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes·0.7 | 73 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8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\x8·_\x8c_\x8o_\x8d_\x8e_\x8:_\x8·_\x8a_\x8r_\x8t_\x8i_\x8c_\x8u_\x8l_\x8a_\x8t_\x8i_\x8o_\x8n_\x8__\x8p_\x8o_\x8i_\x8n_\x8t_\x8s_\x8._\x8p_\x8y |
76 | _\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y | 76 | _\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y |
77 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t | 77 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t |
78 | =============================================================================== | 78 | =============================================================================== |
79 | ©·Copyright·2010-2024,·The·igraph·development·team. | 79 | ©·Copyright·2010-2024,·The·igraph·development·team. |
80 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. | 80 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. |
Offset 204, 15 lines modified | Offset 204, 15 lines modified | ||
204 | </div> | 204 | </div> |
205 | <img·src="../_images/sphx_glr_betweenness_001.png"·srcset="../_images/sphx_glr_betweenness_001.png"·alt="betweenness"·class·=·"sphx-glr-single-img"/><div·class="sphx-glr-script-out·doctest·highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="n">vertices</span><span·class="p">:</span>·<span·class="mf">0.0</span>·<span·class="o">-</span>·<span·class="mf">14.0</span> | 205 | <img·src="../_images/sphx_glr_betweenness_001.png"·srcset="../_images/sphx_glr_betweenness_001.png"·alt="betweenness"·class·=·"sphx-glr-single-img"/><div·class="sphx-glr-script-out·doctest·highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="n">vertices</span><span·class="p">:</span>·<span·class="mf">0.0</span>·<span·class="o">-</span>·<span·class="mf">14.0</span> |
206 | <span·class="n">edges</span><span·class="p">:</span>·<span·class="mf">1.5</span>·<span·class="o">-</span>·<span·class="mf">16.0</span> | 206 | <span·class="n">edges</span><span·class="p">:</span>·<span·class="mf">1.5</span>·<span·class="o">-</span>·<span·class="mf">16.0</span> |
207 | <span·class="n">vertices</span><span·class="p">:</span>·<span·class="mf">0.0</span>·<span·class="o">-</span>·<span·class="mf">753.8235063912693</span> | 207 | <span·class="n">vertices</span><span·class="p">:</span>·<span·class="mf">0.0</span>·<span·class="o">-</span>·<span·class="mf">753.8235063912693</span> |
208 | <span·class="n">edges</span><span·class="p">:</span>·<span·class="mf">8.951984126984126</span>·<span·class="o">-</span>·<span·class="mf">477.30745059034535</span> | 208 | <span·class="n">edges</span><span·class="p">:</span>·<span·class="mf">8.951984126984126</span>·<span·class="o">-</span>·<span·class="mf">477.30745059034535</span> |
209 | </pre></div> | 209 | </pre></div> |
210 | </div> | 210 | </div> |
211 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·1 | 211 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·12.443·seconds)</p> |
212 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-tutorials-betweenness-py"> | 212 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-tutorials-betweenness-py"> |
213 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> | 213 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> |
214 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/5913b4a7cb974d0c722c100ffe6a770f/betweenness.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">betweenness.ipynb</span></code></a></p> | 214 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/5913b4a7cb974d0c722c100ffe6a770f/betweenness.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">betweenness.ipynb</span></code></a></p> |
215 | </div> | 215 | </div> |
216 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> | 216 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> |
217 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/a7ec70a8d202cc065942f63712e4c54e/betweenness.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">betweenness.py</span></code></a></p> | 217 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/a7ec70a8d202cc065942f63712e4c54e/betweenness.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">betweenness.py</span></code></a></p> |
218 | </div> | 218 | </div> |
Offset 125, 15 lines modified | Offset 125, 15 lines modified | ||
125 | fig.tight_layout(h_pad=1) | 125 | fig.tight_layout(h_pad=1) |
126 | plt.show() | 126 | plt.show() |
127 | [betweenness] | 127 | [betweenness] |
128 | vertices:·0.0·-·14.0 | 128 | vertices:·0.0·-·14.0 |
129 | edges:·1.5·-·16.0 | 129 | edges:·1.5·-·16.0 |
130 | vertices:·0.0·-·753.8235063912693 | 130 | vertices:·0.0·-·753.8235063912693 |
131 | edges:·8.951984126984126·-·477.30745059034535 | 131 | edges:·8.951984126984126·-·477.30745059034535 |
132 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes·1 | 132 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes·12.443·seconds) |
133 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8J_\x8u_\x8p_\x8y_\x8t_\x8e_\x8r_\x8·_\x8n_\x8o_\x8t_\x8e_\x8b_\x8o_\x8o_\x8k_\x8:_\x8·_\x8b_\x8e_\x8t_\x8w_\x8e_\x8e_\x8n_\x8n_\x8e_\x8s_\x8s_\x8._\x8i_\x8p_\x8y_\x8n_\x8b | 133 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8J_\x8u_\x8p_\x8y_\x8t_\x8e_\x8r_\x8·_\x8n_\x8o_\x8t_\x8e_\x8b_\x8o_\x8o_\x8k_\x8:_\x8·_\x8b_\x8e_\x8t_\x8w_\x8e_\x8e_\x8n_\x8n_\x8e_\x8s_\x8s_\x8._\x8i_\x8p_\x8y_\x8n_\x8b |
134 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8P_\x8y_\x8t_\x8h_\x8o_\x8n_\x8·_\x8s_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8c_\x8o_\x8d_\x8e_\x8:_\x8·_\x8b_\x8e_\x8t_\x8w_\x8e_\x8e_\x8n_\x8n_\x8e_\x8s_\x8s_\x8._\x8p_\x8y | 134 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8P_\x8y_\x8t_\x8h_\x8o_\x8n_\x8·_\x8s_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8c_\x8o_\x8d_\x8e_\x8:_\x8·_\x8b_\x8e_\x8t_\x8w_\x8e_\x8e_\x8n_\x8n_\x8e_\x8s_\x8s_\x8._\x8p_\x8y |
135 | _\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y | 135 | _\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y |
136 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t | 136 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t |
137 | =============================================================================== | 137 | =============================================================================== |
138 | ©·Copyright·2010-2024,·The·igraph·development·team. | 138 | ©·Copyright·2010-2024,·The·igraph·development·team. |
139 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. | 139 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. |
Offset 176, 18 lines modified | Offset 176, 18 lines modified | ||
176 | ····<span·class="n">vertex_label</span><span·class="o">=</span><span·class="nb">range</span><span·class="p">(</span><span·class="n">g</span><span·class="o">.</span><span·class="n">vcount</span><span·class="p">()),</span> | 176 | ····<span·class="n">vertex_label</span><span·class="o">=</span><span·class="nb">range</span><span·class="p">(</span><span·class="n">g</span><span·class="o">.</span><span·class="n">vcount</span><span·class="p">()),</span> |
177 | ····<span·class="n">vertex_color</span><span·class="o">=</span><span·class="s2">"lightblue"</span><span·class="p">,</span> | 177 | ····<span·class="n">vertex_color</span><span·class="o">=</span><span·class="s2">"lightblue"</span><span·class="p">,</span> |
178 | ····<span·class="n">edge_width</span><span·class="o">=</span><span·class="p">[</span><span·class="mi">3</span>·<span·class="k">if</span>·<span·class="n">e</span><span·class="o">.</span><span·class="n">target</span>·<span·class="o">==</span>·<span·class="n">matching</span><span·class="o">.</span><span·class="n">match_of</span><span·class="p">(</span><span·class="n">e</span><span·class="o">.</span><span·class="n">source</span><span·class="p">)</span>·<span·class="k">else</span>·<span·class="mf">1.0</span>·<span·class="k">for</span>·<span·class="n">e</span>·<span·class="ow">in</span>·<span·class="n">g</span><span·class="o">.</span><span·class="n">es</span><span·class="p">],</span> | 178 | ····<span·class="n">edge_width</span><span·class="o">=</span><span·class="p">[</span><span·class="mi">3</span>·<span·class="k">if</span>·<span·class="n">e</span><span·class="o">.</span><span·class="n">target</span>·<span·class="o">==</span>·<span·class="n">matching</span><span·class="o">.</span><span·class="n">match_of</span><span·class="p">(</span><span·class="n">e</span><span·class="o">.</span><span·class="n">source</span><span·class="p">)</span>·<span·class="k">else</span>·<span·class="mf">1.0</span>·<span·class="k">for</span>·<span·class="n">e</span>·<span·class="ow">in</span>·<span·class="n">g</span><span·class="o">.</span><span·class="n">es</span><span·class="p">],</span> |
179 | ····<span·class="n">edge_color</span><span·class="o">=</span><span·class="p">[</span><span·class="s2">"red"</span>·<span·class="k">if</span>·<span·class="n">e</span><span·class="o">.</span><span·class="n">target</span>·<span·class="o">==</span>·<span·class="n">matching</span><span·class="o">.</span><span·class="n">match_of</span><span·class="p">(</span><span·class="n">e</span><span·class="o">.</span><span·class="n">source</span><span·class="p">)</span>·<span·class="k">else</span>·<span·class="s2">"black"</span>·<span·class="k">for</span>·<span·class="n">e</span>·<span·class="ow">in</span>·<span·class="n">g</span><span·class="o">.</span><span·class="n">es</span><span·class="p">]</span> | 179 | ····<span·class="n">edge_color</span><span·class="o">=</span><span·class="p">[</span><span·class="s2">"red"</span>·<span·class="k">if</span>·<span·class="n">e</span><span·class="o">.</span><span·class="n">target</span>·<span·class="o">==</span>·<span·class="n">matching</span><span·class="o">.</span><span·class="n">match_of</span><span·class="p">(</span><span·class="n">e</span><span·class="o">.</span><span·class="n">source</span><span·class="p">)</span>·<span·class="k">else</span>·<span·class="s2">"black"</span>·<span·class="k">for</span>·<span·class="n">e</span>·<span·class="ow">in</span>·<span·class="n">g</span><span·class="o">.</span><span·class="n">es</span><span·class="p">]</span> |
180 | <span·class="p">)</span> | 180 | <span·class="p">)</span> |
181 | </pre></div> | 181 | </pre></div> |
182 | </div> | 182 | </div> |
183 | <img·src="../_images/sphx_glr_bipartite_matching_001.png"·srcset="../_images/sphx_glr_bipartite_matching_001.png"·alt="bipartite·matching"·class·=·"sphx-glr-single-img"/><div·class="sphx-glr-script-out·doctest·highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="o"><</span><span·class="n">igraph</span><span·class="o">.</span><span·class="n">drawing</span><span·class="o">.</span><span·class="n">matplotlib</span><span·class="o">.</span><span·class="n">graph</span><span·class="o">.</span><span·class="n">GraphArtist</span>·<span·class="nb">object</span>·<span·class="n">at</span>·<span·class="mh">0x | 183 | <img·src="../_images/sphx_glr_bipartite_matching_001.png"·srcset="../_images/sphx_glr_bipartite_matching_001.png"·alt="bipartite·matching"·class·=·"sphx-glr-single-img"/><div·class="sphx-glr-script-out·doctest·highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="o"><</span><span·class="n">igraph</span><span·class="o">.</span><span·class="n">drawing</span><span·class="o">.</span><span·class="n">matplotlib</span><span·class="o">.</span><span·class="n">graph</span><span·class="o">.</span><span·class="n">GraphArtist</span>·<span·class="nb">object</span>·<span·class="n">at</span>·<span·class="mh">0xab73ab40</span><span·class="o">></span> |
184 | </pre></div> | 184 | </pre></div> |
185 | </div> | 185 | </div> |
186 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·0.7 | 186 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·0.774·seconds)</p> |
187 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-tutorials-bipartite-matching-py"> | 187 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-tutorials-bipartite-matching-py"> |
188 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> | 188 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> |
189 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/9614fc864a096647cd89cc7ebaeb102a/bipartite_matching.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">bipartite_matching.ipynb</span></code></a></p> | 189 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/9614fc864a096647cd89cc7ebaeb102a/bipartite_matching.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">bipartite_matching.ipynb</span></code></a></p> |
190 | </div> | 190 | </div> |
191 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> | 191 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> |
192 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/b91a50f4a4f6f4db7b965cf323d29344/bipartite_matching.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">bipartite_matching.py</span></code></a></p> | 192 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/b91a50f4a4f6f4db7b965cf323d29344/bipartite_matching.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">bipartite_matching.py</span></code></a></p> |
193 | </div> | 193 | </div> |
Offset 85, 16 lines modified | Offset 85, 16 lines modified | ||
85 | ····vertex_color="lightblue", | 85 | ····vertex_color="lightblue", |
86 | ····edge_width=[3·if·e.target·==·matching.match_of(e.source)·else·1.0·for·e·in | 86 | ····edge_width=[3·if·e.target·==·matching.match_of(e.source)·else·1.0·for·e·in |
87 | g.es], | 87 | g.es], |
88 | ····edge_color=["red"·if·e.target·==·matching.match_of(e.source)·else·"black" | 88 | ····edge_color=["red"·if·e.target·==·matching.match_of(e.source)·else·"black" |
89 | for·e·in·g.es] | 89 | for·e·in·g.es] |
90 | ) | 90 | ) |
91 | [bipartite·matching] | 91 | [bipartite·matching] |
92 | <igraph.drawing.matplotlib.graph.GraphArtist·object·at·0x | 92 | <igraph.drawing.matplotlib.graph.GraphArtist·object·at·0xab73ab40> |
93 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8p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\x8n_\x8·_\x8s_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8c_\x8o_\x8d_\x8e_\x8:_\x8·_\x8b_\x8i_\x8p_\x8a_\x8r_\x8t_\x8i_\x8t_\x8e_\x8__\x8m_\x8a_\x8t_\x8c_\x8h_\x8i_\x8n_\x8g_\x8._\x8p_\x8y |
96 | _\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y | 96 | _\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y |
97 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t | 97 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t |
98 | =============================================================================== | 98 | =============================================================================== |
99 | ©·Copyright·2010-2024,·The·igraph·development·team. | 99 | ©·Copyright·2010-2024,·The·igraph·development·team. |
100 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. | 100 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. |
Offset 188, 15 lines modified | Offset 188, 15 lines modified | ||
188 | ····<span·class="n">vertex_label</span><span·class="o">=</span><span·class="nb">range</span><span·class="p">(</span><span·class="n">g</span><span·class="o">.</span><span·class="n">vcount</span><span·class="p">()),</span> | 188 | ····<span·class="n">vertex_label</span><span·class="o">=</span><span·class="nb">range</span><span·class="p">(</span><span·class="n">g</span><span·class="o">.</span><span·class="n">vcount</span><span·class="p">()),</span> |
189 | ····<span·class="n">vertex_color</span><span·class="o">=</span><span·class="p">[</span><span·class="s2">"lightblue"</span>·<span·class="k">if</span>·<span·class="n">i</span>·<span·class="o"><</span>·<span·class="mi">9</span>·<span·class="k">else</span>·<span·class="s2">"orange"</span>·<span·class="k">for</span>·<span·class="n">i</span>·<span·class="ow">in</span>·<span·class="nb">range</span><span·class="p">(</span><span·class="mi">11</span><span·class="p">)],</span> | 189 | ····<span·class="n">vertex_color</span><span·class="o">=</span><span·class="p">[</span><span·class="s2">"lightblue"</span>·<span·class="k">if</span>·<span·class="n">i</span>·<span·class="o"><</span>·<span·class="mi">9</span>·<span·class="k">else</span>·<span·class="s2">"orange"</span>·<span·class="k">for</span>·<span·class="n">i</span>·<span·class="ow">in</span>·<span·class="nb">range</span><span·class="p">(</span><span·class="mi">11</span><span·class="p">)],</span> |
190 | ····<span·class="n">edge_width</span><span·class="o">=</span><span·class="p">[</span><span·class="mf">1.0</span>·<span·class="o">+</span>·<span·class="n">flow</span><span·class="o">.</span><span·class="n">flow</span><span·class="p">[</span><span·class="n">i</span><span·class="p">]</span>·<span·class="k">for</span>·<span·class="n">i</span>·<span·class="ow">in</span>·<span·class="nb">range</span><span·class="p">(</span><span·class="n">g</span><span·class="o">.</span><span·class="n">ecount</span><span·class="p">())]</span> | 190 | ····<span·class="n">edge_width</span><span·class="o">=</span><span·class="p">[</span><span·class="mf">1.0</span>·<span·class="o">+</span>·<span·class="n">flow</span><span·class="o">.</span><span·class="n">flow</span><span·class="p">[</span><span·class="n">i</span><span·class="p">]</span>·<span·class="k">for</span>·<span·class="n">i</span>·<span·class="ow">in</span>·<span·class="nb">range</span><span·class="p">(</span><span·class="n">g</span><span·class="o">.</span><span·class="n">ecount</span><span·class="p">())]</span> |
191 | <span·class="p">)</span> | 191 | <span·class="p">)</span> |
192 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">show</span><span·class="p">()</span> | 192 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">show</span><span·class="p">()</span> |
193 | </pre></div> | 193 | </pre></div> |
194 | </div> | 194 | </div> |
195 | <img·src="../_images/sphx_glr_bipartite_matching_maxflow_001.png"·srcset="../_images/sphx_glr_bipartite_matching_maxflow_001.png"·alt="bipartite·matching·maxflow"·class·=·"sphx-glr-single-img"/><p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes· | 195 | <img·src="../_images/sphx_glr_bipartite_matching_maxflow_001.png"·srcset="../_images/sphx_glr_bipartite_matching_maxflow_001.png"·alt="bipartite·matching·maxflow"·class·=·"sphx-glr-single-img"/><p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·0.980·seconds)</p> |
196 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-tutorials-bipartite-matching-maxflow-py"> | 196 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-tutorials-bipartite-matching-maxflow-py"> |
197 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> | 197 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> |
198 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/80f52b7ca439904ca0fafc31d8c351c8/bipartite_matching_maxflow.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">bipartite_matching_maxflow.ipynb</span></code></a></p> | 198 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/80f52b7ca439904ca0fafc31d8c351c8/bipartite_matching_maxflow.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">bipartite_matching_maxflow.ipynb</span></code></a></p> |
199 | </div> | 199 | </div> |
200 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> | 200 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> |
201 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/d56003997f3293e821663aebb5b1e9d0/bipartite_matching_maxflow.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">bipartite_matching_maxflow.py</span></code></a></p> | 201 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/d56003997f3293e821663aebb5b1e9d0/bipartite_matching_maxflow.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">bipartite_matching_maxflow.py</span></code></a></p> |
202 | </div> | 202 | </div> |
Offset 96, 15 lines modified | Offset 96, 15 lines modified | ||
96 | ····vertex_size=30, | 96 | ····vertex_size=30, |
97 | ····vertex_label=range(g.vcount()), | 97 | ····vertex_label=range(g.vcount()), |
98 | ····vertex_color=["lightblue"·if·i·<·9·else·"orange"·for·i·in·range(11)], | 98 | ····vertex_color=["lightblue"·if·i·<·9·else·"orange"·for·i·in·range(11)], |
99 | ····edge_width=[1.0·+·flow.flow[i]·for·i·in·range(g.ecount())] | 99 | ····edge_width=[1.0·+·flow.flow[i]·for·i·in·range(g.ecount())] |
100 | ) | 100 | ) |
101 | plt.show() | 101 | plt.show() |
102 | [bipartite·matching·maxflow] | 102 | [bipartite·matching·maxflow] |
103 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\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e_\x8__\x8m_\x8a_\x8t_\x8c_\x8h_\x8i_\x8n_\x8g_\x8__\x8m_\x8a_\x8x_\x8f_\x8l_\x8o_\x8w_\x8._\x8p_\x8y | 105 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8P_\x8y_\x8t_\x8h_\x8o_\x8n_\x8·_\x8s_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8c_\x8o_\x8d_\x8e_\x8:_\x8·_\x8b_\x8i_\x8p_\x8a_\x8r_\x8t_\x8i_\x8t_\x8e_\x8__\x8m_\x8a_\x8t_\x8c_\x8h_\x8i_\x8n_\x8g_\x8__\x8m_\x8a_\x8x_\x8f_\x8l_\x8o_\x8w_\x8._\x8p_\x8y |
106 | _\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y | 106 | _\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y |
107 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t | 107 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t |
108 | =============================================================================== | 108 | =============================================================================== |
109 | ©·Copyright·2010-2024,·The·igraph·development·team. | 109 | ©·Copyright·2010-2024,·The·igraph·development·team. |
110 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. | 110 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. |
Offset 191, 15 lines modified | Offset 191, 15 lines modified | ||
191 | ····<span·class="n">edge_align_label</span><span·class="o">=</span><span·class="kc">True</span><span·class="p">,</span>······<span·class="c1">#·make·sure·labels·are·aligned·with·the·edge</span> | 191 | ····<span·class="n">edge_align_label</span><span·class="o">=</span><span·class="kc">True</span><span·class="p">,</span>······<span·class="c1">#·make·sure·labels·are·aligned·with·the·edge</span> |
192 | ····<span·class="n">edge_label</span><span·class="o">=</span><span·class="n">g</span><span·class="o">.</span><span·class="n">es</span><span·class="p">[</span><span·class="s2">"label"</span><span·class="p">],</span> | 192 | ····<span·class="n">edge_label</span><span·class="o">=</span><span·class="n">g</span><span·class="o">.</span><span·class="n">es</span><span·class="p">[</span><span·class="s2">"label"</span><span·class="p">],</span> |
193 | ····<span·class="n">edge_label_color</span><span·class="o">=</span><span·class="s2">"red"</span> | 193 | ····<span·class="n">edge_label_color</span><span·class="o">=</span><span·class="s2">"red"</span> |
194 | <span·class="p">)</span> | 194 | <span·class="p">)</span> |
195 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">show</span><span·class="p">()</span> | 195 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">show</span><span·class="p">()</span> |
196 | </pre></div> | 196 | </pre></div> |
197 | </div> | 197 | </div> |
198 | <img·src="../_images/sphx_glr_bridges_002.png"·srcset="../_images/sphx_glr_bridges_002.png"·alt="bridges"·class·=·"sphx-glr-single-img"/><p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·2. | 198 | <img·src="../_images/sphx_glr_bridges_002.png"·srcset="../_images/sphx_glr_bridges_002.png"·alt="bridges"·class·=·"sphx-glr-single-img"/><p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·2.192·seconds)</p> |
199 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-tutorials-bridges-py"> | 199 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-tutorials-bridges-py"> |
200 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> | 200 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> |
201 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/0e3dd42ffedbd9a3484b540044bcfdc6/bridges.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">bridges.ipynb</span></code></a></p> | 201 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/0e3dd42ffedbd9a3484b540044bcfdc6/bridges.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">bridges.ipynb</span></code></a></p> |
202 | </div> | 202 | </div> |
203 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> | 203 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> |
204 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/bae7aba824f72e4b23fc8060976ad889/bridges.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">bridges.py</span></code></a></p> | 204 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/bae7aba824f72e4b23fc8060976ad889/bridges.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">bridges.py</span></code></a></p> |
205 | </div> | 205 | </div> |
Offset 101, 15 lines modified | Offset 101, 15 lines modified | ||
101 | ····edge_background="#FFF0",····#·transparent·background·color | 101 | ····edge_background="#FFF0",····#·transparent·background·color |
102 | ····edge_align_label=True,······#·make·sure·labels·are·aligned·with·the·edge | 102 | ····edge_align_label=True,······#·make·sure·labels·are·aligned·with·the·edge |
103 | ····edge_label=g.es["label"], | 103 | ····edge_label=g.es["label"], |
104 | ····edge_label_color="red" | 104 | ····edge_label_color="red" |
105 | ) | 105 | ) |
106 | plt.show() | 106 | plt.show() |
107 | [bridges] | 107 | [bridges] |
108 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes·2. | 108 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes·2.192·seconds) |
109 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8J_\x8u_\x8p_\x8y_\x8t_\x8e_\x8r_\x8·_\x8n_\x8o_\x8t_\x8e_\x8b_\x8o_\x8o_\x8k_\x8:_\x8·_\x8b_\x8r_\x8i_\x8d_\x8g_\x8e_\x8s_\x8._\x8i_\x8p_\x8y_\x8n_\x8b | 109 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8J_\x8u_\x8p_\x8y_\x8t_\x8e_\x8r_\x8·_\x8n_\x8o_\x8t_\x8e_\x8b_\x8o_\x8o_\x8k_\x8:_\x8·_\x8b_\x8r_\x8i_\x8d_\x8g_\x8e_\x8s_\x8._\x8i_\x8p_\x8y_\x8n_\x8b |
110 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8P_\x8y_\x8t_\x8h_\x8o_\x8n_\x8·_\x8s_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8c_\x8o_\x8d_\x8e_\x8:_\x8·_\x8b_\x8r_\x8i_\x8d_\x8g_\x8e_\x8s_\x8._\x8p_\x8y | 110 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8P_\x8y_\x8t_\x8h_\x8o_\x8n_\x8·_\x8s_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8c_\x8o_\x8d_\x8e_\x8:_\x8·_\x8b_\x8r_\x8i_\x8d_\x8g_\x8e_\x8s_\x8._\x8p_\x8y |
111 | _\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y | 111 | _\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y |
112 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t | 112 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t |
113 | =============================================================================== | 113 | =============================================================================== |
114 | ©·Copyright·2010-2024,·The·igraph·development·team. | 114 | ©·Copyright·2010-2024,·The·igraph·development·team. |
115 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. | 115 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. |
Offset 338, 15 lines modified | Offset 338, 15 lines modified | ||
338 | ····<span·class="n">bbox_to_anchor</span><span·class="o">=</span><span·class="p">(</span><span·class="mi">0</span><span·class="p">,</span>·<span·class="mf">1.0</span><span·class="p">),</span> | 338 | ····<span·class="n">bbox_to_anchor</span><span·class="o">=</span><span·class="p">(</span><span·class="mi">0</span><span·class="p">,</span>·<span·class="mf">1.0</span><span·class="p">),</span> |
339 | ····<span·class="n">bbox_transform</span><span·class="o">=</span><span·class="n">ax2</span><span·class="o">.</span><span·class="n">transAxes</span><span·class="p">,</span> | 339 | ····<span·class="n">bbox_transform</span><span·class="o">=</span><span·class="n">ax2</span><span·class="o">.</span><span·class="n">transAxes</span><span·class="p">,</span> |
340 | <span·class="p">)</span> | 340 | <span·class="p">)</span> |
341 | <span·class="n">fig2</span><span·class="o">.</span><span·class="n">set_size_inches</span><span·class="p">(</span><span·class="mi">10</span><span·class="p">,</span>·<span·class="mi">10</span><span·class="p">)</span> | 341 | <span·class="n">fig2</span><span·class="o">.</span><span·class="n">set_size_inches</span><span·class="p">(</span><span·class="mi">10</span><span·class="p">,</span>·<span·class="mi">10</span><span·class="p">)</span> |
342 | </pre></div> | 342 | </pre></div> |
343 | </div> | 343 | </div> |
344 | <img·src="../_images/sphx_glr_cluster_contraction_002.png"·srcset="../_images/sphx_glr_cluster_contraction_002.png"·alt="cluster·contraction"·class·=·"sphx-glr-single-img"/><p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes· | 344 | <img·src="../_images/sphx_glr_cluster_contraction_002.png"·srcset="../_images/sphx_glr_cluster_contraction_002.png"·alt="cluster·contraction"·class·=·"sphx-glr-single-img"/><p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·7.766·seconds)</p> |
345 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-tutorials-cluster-contraction-py"> | 345 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-tutorials-cluster-contraction-py"> |
346 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> | 346 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> |
347 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/f5753ecc0bf36a46d0f61753dfffd31a/cluster_contraction.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">cluster_contraction.ipynb</span></code></a></p> | 347 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/f5753ecc0bf36a46d0f61753dfffd31a/cluster_contraction.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">cluster_contraction.ipynb</span></code></a></p> |
348 | </div> | 348 | </div> |
349 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> | 349 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> |
350 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/618e73474ffdd23b6647bbe6721ad6e3/cluster_contraction.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">cluster_contraction.py</span></code></a></p> | 350 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/618e73474ffdd23b6647bbe6721ad6e3/cluster_contraction.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">cluster_contraction.py</span></code></a></p> |
351 | </div> | 351 | </div> |
Offset 237, 15 lines modified | Offset 237, 15 lines modified | ||
237 | ····title='Community:', | 237 | ····title='Community:', |
238 | ····bbox_to_anchor=(0,·1.0), | 238 | ····bbox_to_anchor=(0,·1.0), |
239 | ····bbox_transform=ax2.transAxes, | 239 | ····bbox_transform=ax2.transAxes, |
240 | ) | 240 | ) |
241 | fig2.set_size_inches(10,·10) | 241 | fig2.set_size_inches(10,·10) |
242 | [cluster·contraction] | 242 | [cluster·contraction] |
243 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes· | 243 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes·7.766·seconds) |
244 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8J_\x8u_\x8p_\x8y_\x8t_\x8e_\x8r_\x8·_\x8n_\x8o_\x8t_\x8e_\x8b_\x8o_\x8o_\x8k_\x8:_\x8·_\x8c_\x8l_\x8u_\x8s_\x8t_\x8e_\x8r_\x8__\x8c_\x8o_\x8n_\x8t_\x8r_\x8a_\x8c_\x8t_\x8i_\x8o_\x8n_\x8._\x8i_\x8p_\x8y_\x8n_\x8b | 244 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8J_\x8u_\x8p_\x8y_\x8t_\x8e_\x8r_\x8·_\x8n_\x8o_\x8t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_\x8r_\x8y |
247 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t | 247 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t |
248 | =============================================================================== | 248 | =============================================================================== |
249 | ©·Copyright·2010-2024,·The·igraph·development·team. | 249 | ©·Copyright·2010-2024,·The·igraph·development·team. |
250 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. | 250 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. |
Offset 185, 15 lines modified | Offset 185, 15 lines modified | ||
185 | ····<span·class="n">layout</span><span·class="o">=</span><span·class="s2">"circle"</span><span·class="p">,</span> | 185 | ····<span·class="n">layout</span><span·class="o">=</span><span·class="s2">"circle"</span><span·class="p">,</span> |
186 | ····<span·class="n">vertex_color</span><span·class="o">=</span><span·class="s2">"black"</span><span·class="p">,</span> | 186 | ····<span·class="n">vertex_color</span><span·class="o">=</span><span·class="s2">"black"</span><span·class="p">,</span> |
187 | <span·class="p">)</span> | 187 | <span·class="p">)</span> |
188 | <span·class="n">axs</span><span·class="p">[</span><span·class="mi">1</span><span·class="p">,</span>·<span·class="mi">1</span><span·class="p">]</span><span·class="o">.</span><span·class="n">set_title</span><span·class="p">(</span><span·class="s1">'Complement·of·union·graph'</span><span·class="p">)</span> | 188 | <span·class="n">axs</span><span·class="p">[</span><span·class="mi">1</span><span·class="p">,</span>·<span·class="mi">1</span><span·class="p">]</span><span·class="o">.</span><span·class="n">set_title</span><span·class="p">(</span><span·class="s1">'Complement·of·union·graph'</span><span·class="p">)</span> |
189 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">show</span><span·class="p">()</span> | 189 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">show</span><span·class="p">()</span> |
190 | </pre></div> | 190 | </pre></div> |
191 | </div> | 191 | </div> |
192 | <img·src="../_images/sphx_glr_complement_001.png"·srcset="../_images/sphx_glr_complement_001.png"·alt="Original·graph,·Complement·graph,·Union·graph,·Complement·of·union·graph"·class·=·"sphx-glr-single-img"/><p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes· | 192 | <img·src="../_images/sphx_glr_complement_001.png"·srcset="../_images/sphx_glr_complement_001.png"·alt="Original·graph,·Complement·graph,·Union·graph,·Complement·of·union·graph"·class·=·"sphx-glr-single-img"/><p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·2.872·seconds)</p> |
193 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-tutorials-complement-py"> | 193 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-tutorials-complement-py"> |
194 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> | 194 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> |
195 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/18a48ac28bf0a7d1df83e5bf8d86cf72/complement.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">complement.ipynb</span></code></a></p> | 195 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/18a48ac28bf0a7d1df83e5bf8d86cf72/complement.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">complement.ipynb</span></code></a></p> |
196 | </div> | 196 | </div> |
197 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> | 197 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> |
198 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/d1f9b5ec5915b527bd3029f0e97e652e/complement.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">complement.py</span></code></a></p> | 198 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/d1f9b5ec5915b527bd3029f0e97e652e/complement.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">complement.py</span></code></a></p> |
199 | </div> | 199 | </div> |
Offset 95, 15 lines modified | Offset 95, 15 lines modified | ||
95 | ····target=axs[1,·1], | 95 | ····target=axs[1,·1], |
96 | ····layout="circle", | 96 | ····layout="circle", |
97 | ····vertex_color="black", | 97 | ····vertex_color="black", |
98 | ) | 98 | ) |
99 | axs[1,·1].set_title('Complement·of·union·graph') | 99 | axs[1,·1].set_title('Complement·of·union·graph') |
100 | plt.show() | 100 | plt.show() |
101 | [Original·graph,·Complement·graph,·Union·graph,·Complement·of·union·graph] | 101 | [Original·graph,·Complement·graph,·Union·graph,·Complement·of·union·graph] |
102 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes· | 102 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes·2.872·seconds) |
103 | _\x8D_\x8o_\x8w_\x8n_\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_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y |
106 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t | 106 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t |
107 | =============================================================================== | 107 | =============================================================================== |
108 | ©·Copyright·2010-2024,·The·igraph·development·team. | 108 | ©·Copyright·2010-2024,·The·igraph·development·team. |
109 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. | 109 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. |
Offset 167, 15 lines modified | Offset 167, 15 lines modified | ||
167 | import·igraph·and·then·call·<code·class="docutils·literal·notranslate"><span·class="pre">ig.config.load("./path/to/config/file")</span></code></p> | 167 | import·igraph·and·then·call·<code·class="docutils·literal·notranslate"><span·class="pre">ig.config.load("./path/to/config/file")</span></code></p> |
168 | </div> | 168 | </div> |
169 | <div·class="admonition·note"> | 169 | <div·class="admonition·note"> |
170 | <p·class="admonition-title">Note</p> | 170 | <p·class="admonition-title">Note</p> |
171 | <p>To·use·a·consistent·style·between·individual·plots·(e.g.·vertex·sizes, | 171 | <p>To·use·a·consistent·style·between·individual·plots·(e.g.·vertex·sizes, |
172 | colors,·layout·etc.)·check·out·<a·class="reference·internal"·href="visual_style.html#tutorials-visual-style"><span·class="std·std-ref">Visual·styling</span></a>.</p> | 172 | colors,·layout·etc.)·check·out·<a·class="reference·internal"·href="visual_style.html#tutorials-visual-style"><span·class="std·std-ref">Visual·styling</span></a>.</p> |
173 | </div> | 173 | </div> |
174 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes· | 174 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·7.854·seconds)</p> |
175 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-tutorials-configuration-py"> | 175 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-tutorials-configuration-py"> |
176 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> | 176 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> |
177 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/fd14e762ea0b4a045d94e852f04372f3/configuration.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">configuration.ipynb</span></code></a></p> | 177 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/fd14e762ea0b4a045d94e852f04372f3/configuration.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">configuration.ipynb</span></code></a></p> |
178 | </div> | 178 | </div> |
179 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> | 179 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> |
180 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/a69ba5812cd93160ab9839c2aeb8b3a5/configuration.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">configuration.py</span></code></a></p> | 180 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/a69ba5812cd93160ab9839c2aeb8b3a5/configuration.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">configuration.py</span></code></a></p> |
181 | </div> | 181 | </div> |
Offset 77, 15 lines modified | Offset 77, 15 lines modified | ||
77 | Note | 77 | Note |
78 | You·can·have·multiple·config·files:·specify·each·location·via·ig.config.save | 78 | You·can·have·multiple·config·files:·specify·each·location·via·ig.config.save |
79 | ("./path/to/config/file").·To·load·a·specific·config,·import·igraph·and·then | 79 | ("./path/to/config/file").·To·load·a·specific·config,·import·igraph·and·then |
80 | call·ig.config.load("./path/to/config/file") | 80 | call·ig.config.load("./path/to/config/file") |
81 | Note | 81 | Note |
82 | To·use·a·consistent·style·between·individual·plots·(e.g.·vertex·sizes,·colors, | 82 | To·use·a·consistent·style·between·individual·plots·(e.g.·vertex·sizes,·colors, |
83 | layout·etc.)·check·out·_\x8V_\x8i_\x8s_\x8u_\x8a_\x8l_\x8·_\x8s_\x8t_\x8y_\x8l_\x8i_\x8n_\x8g. | 83 | layout·etc.)·check·out·_\x8V_\x8i_\x8s_\x8u_\x8a_\x8l_\x8·_\x8s_\x8t_\x8y_\x8l_\x8i_\x8n_\x8g. |
84 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes· | 84 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes·7.854·seconds) |
85 | _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y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y | 87 | _\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y |
88 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t | 88 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t |
89 | =============================================================================== | 89 | =============================================================================== |
90 | ©·Copyright·2010-2024,·The·igraph·development·team. | 90 | ©·Copyright·2010-2024,·The·igraph·development·team. |
91 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. | 91 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. |
Offset 153, 15 lines modified | Offset 153, 15 lines modified | ||
153 | </div> | 153 | </div> |
154 | <img·src="../_images/sphx_glr_connected_components_001.png"·srcset="../_images/sphx_glr_connected_components_001.png"·alt="connected·components"·class·=·"sphx-glr-single-img"/><div·class="admonition·note"> | 154 | <img·src="../_images/sphx_glr_connected_components_001.png"·srcset="../_images/sphx_glr_connected_components_001.png"·alt="connected·components"·class·=·"sphx-glr-single-img"/><div·class="admonition·note"> |
155 | <p·class="admonition-title">Note</p> | 155 | <p·class="admonition-title">Note</p> |
156 | <p>We·use·the·integers·from·0·to·200·instead·of·0·to·255·in·our·vertex | 156 | <p>We·use·the·integers·from·0·to·200·instead·of·0·to·255·in·our·vertex |
157 | colors,·since·255·in·the·<a·class="reference·external"·href="/en/latest/api/igraph.drawing.colors.RainbowPalette.html"·title="(in·igraph·v0.11.8)"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">igraph.drawing.colors.RainbowPalette</span></code></a> | 157 | colors,·since·255·in·the·<a·class="reference·external"·href="/en/latest/api/igraph.drawing.colors.RainbowPalette.html"·title="(in·igraph·v0.11.8)"><code·class="xref·py·py-class·docutils·literal·notranslate"><span·class="pre">igraph.drawing.colors.RainbowPalette</span></code></a> |
158 | corresponds·to·looping·back·to·red.·This·gives·us·nicely·distinct·hues.</p> | 158 | corresponds·to·looping·back·to·red.·This·gives·us·nicely·distinct·hues.</p> |
159 | </div> | 159 | </div> |
160 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·3. | 160 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·3.515·seconds)</p> |
161 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-tutorials-connected-components-py"> | 161 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-tutorials-connected-components-py"> |
162 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> | 162 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> |
163 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/a6b592f65e45d4dc0cd800dd966e8a73/connected_components.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">connected_components.ipynb</span></code></a></p> | 163 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/a6b592f65e45d4dc0cd800dd966e8a73/connected_components.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">connected_components.ipynb</span></code></a></p> |
164 | </div> | 164 | </div> |
165 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> | 165 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> |
166 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/7eae7ff0b0b32c69a5543e6ca66a80ad/connected_components.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">connected_components.py</span></code></a></p> | 166 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/7eae7ff0b0b32c69a5543e6ca66a80ad/connected_components.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">connected_components.py</span></code></a></p> |
167 | </div> | 167 | </div> |
Offset 69, 15 lines modified | Offset 69, 15 lines modified | ||
69 | ) | 69 | ) |
70 | plt.show() | 70 | plt.show() |
71 | [connected·components] | 71 | [connected·components] |
72 | Note | 72 | Note |
73 | We·use·the·integers·from·0·to·200·instead·of·0·to·255·in·our·vertex·colors, | 73 | We·use·the·integers·from·0·to·200·instead·of·0·to·255·in·our·vertex·colors, |
74 | since·255·in·the·_\x8i_\x8g_\x8r_\x8a_\x8p_\x8h_\x8._\x8d_\x8r_\x8a_\x8w_\x8i_\x8n_\x8g_\x8._\x8c_\x8o_\x8l_\x8o_\x8r_\x8s_\x8._\x8R_\x8a_\x8i_\x8n_\x8b_\x8o_\x8w_\x8P_\x8a_\x8l_\x8e_\x8t_\x8t_\x8e·corresponds·to·looping | 74 | since·255·in·the·_\x8i_\x8g_\x8r_\x8a_\x8p_\x8h_\x8._\x8d_\x8r_\x8a_\x8w_\x8i_\x8n_\x8g_\x8._\x8c_\x8o_\x8l_\x8o_\x8r_\x8s_\x8._\x8R_\x8a_\x8i_\x8n_\x8b_\x8o_\x8w_\x8P_\x8a_\x8l_\x8e_\x8t_\x8t_\x8e·corresponds·to·looping |
75 | back·to·red.·This·gives·us·nicely·distinct·hues. | 75 | back·to·red.·This·gives·us·nicely·distinct·hues. |
76 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes·3. | 76 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes·3.515·seconds) |
77 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8J_\x8u_\x8p_\x8y_\x8t_\x8e_\x8r_\x8·_\x8n_\x8o_\x8t_\x8e_\x8b_\x8o_\x8o_\x8k_\x8:_\x8·_\x8c_\x8o_\x8n_\x8n_\x8e_\x8c_\x8t_\x8e_\x8d_\x8__\x8c_\x8o_\x8m_\x8p_\x8o_\x8n_\x8e_\x8n_\x8t_\x8s_\x8._\x8i_\x8p_\x8y_\x8n_\x8b | 77 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8J_\x8u_\x8p_\x8y_\x8t_\x8e_\x8r_\x8·_\x8n_\x8o_\x8t_\x8e_\x8b_\x8o_\x8o_\x8k_\x8:_\x8·_\x8c_\x8o_\x8n_\x8n_\x8e_\x8c_\x8t_\x8e_\x8d_\x8__\x8c_\x8o_\x8m_\x8p_\x8o_\x8n_\x8e_\x8n_\x8t_\x8s_\x8._\x8i_\x8p_\x8y_\x8n_\x8b |
78 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8P_\x8y_\x8t_\x8h_\x8o_\x8n_\x8·_\x8s_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8c_\x8o_\x8d_\x8e_\x8:_\x8·_\x8c_\x8o_\x8n_\x8n_\x8e_\x8c_\x8t_\x8e_\x8d_\x8__\x8c_\x8o_\x8m_\x8p_\x8o_\x8n_\x8e_\x8n_\x8t_\x8s_\x8._\x8p_\x8y | 78 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8P_\x8y_\x8t_\x8h_\x8o_\x8n_\x8·_\x8s_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8c_\x8o_\x8d_\x8e_\x8:_\x8·_\x8c_\x8o_\x8n_\x8n_\x8e_\x8c_\x8t_\x8e_\x8d_\x8__\x8c_\x8o_\x8m_\x8p_\x8o_\x8n_\x8e_\x8n_\x8t_\x8s_\x8._\x8p_\x8y |
79 | _\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y | 79 | _\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y |
80 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t | 80 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t |
81 | =============================================================================== | 81 | =============================================================================== |
82 | ©·Copyright·2010-2024,·The·igraph·development·team. | 82 | ©·Copyright·2010-2024,·The·igraph·development·team. |
83 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. | 83 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. |
Offset 160, 15 lines modified | Offset 160, 15 lines modified | ||
160 | </div> | 160 | </div> |
161 | <p>Because·adjacent·triangles·share·an·edge/side,·the·graph·now·contains·some | 161 | <p>Because·adjacent·triangles·share·an·edge/side,·the·graph·now·contains·some |
162 | edges·more·than·once.·It’s·useful·to·simplify·the·graph·to·get·rid·of·those | 162 | edges·more·than·once.·It’s·useful·to·simplify·the·graph·to·get·rid·of·those |
163 | multiedges,·keeping·each·side·only·once:</p> | 163 | multiedges,·keeping·each·side·only·once:</p> |
164 | <div·class="doctest·highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="n">g</span><span·class="o">.</span><span·class="n">simplify</span><span·class="p">()</span> | 164 | <div·class="doctest·highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="n">g</span><span·class="o">.</span><span·class="n">simplify</span><span·class="p">()</span> |
165 | </pre></div> | 165 | </pre></div> |
166 | </div> | 166 | </div> |
167 | <div·class="sphx-glr-script-out·doctest·highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="o"><</span><span·class="n">igraph</span><span·class="o">.</span><span·class="n">Graph</span>·<span·class="nb">object</span>·<span·class="n">at</span>·<span·class="mh">0x | 167 | <div·class="sphx-glr-script-out·doctest·highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="o"><</span><span·class="n">igraph</span><span·class="o">.</span><span·class="n">Graph</span>·<span·class="nb">object</span>·<span·class="n">at</span>·<span·class="mh">0xae4367b0</span><span·class="o">></span> |
168 | </pre></div> | 168 | </pre></div> |
169 | </div> | 169 | </div> |
170 | <p>Finally,·plotting·the·graph·gives·a·good·idea·of·what·the·triangulation·looks | 170 | <p>Finally,·plotting·the·graph·gives·a·good·idea·of·what·the·triangulation·looks |
171 | like:</p> | 171 | like:</p> |
172 | <div·class="doctest·highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="n">fig</span><span·class="p">,</span>·<span·class="n">ax</span>·<span·class="o">=</span>·<span·class="n">plt</span><span·class="o">.</span><span·class="n">subplots</span><span·class="p">()</span> | 172 | <div·class="doctest·highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="n">fig</span><span·class="p">,</span>·<span·class="n">ax</span>·<span·class="o">=</span>·<span·class="n">plt</span><span·class="o">.</span><span·class="n">subplots</span><span·class="p">()</span> |
173 | <span·class="n">ig</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">(</span> | 173 | <span·class="n">ig</span><span·class="o">.</span><span·class="n">plot</span><span·class="p">(</span> |
174 | ····<span·class="n">g</span><span·class="p">,</span> | 174 | ····<span·class="n">g</span><span·class="p">,</span> |
Offset 212, 15 lines modified | Offset 212, 15 lines modified | ||
212 | ····<span·class="n">edge_width</span><span·class="o">=</span><span·class="mf">0.2</span><span·class="p">,</span> | 212 | ····<span·class="n">edge_width</span><span·class="o">=</span><span·class="mf">0.2</span><span·class="p">,</span> |
213 | ····<span·class="n">edge_color</span><span·class="o">=</span><span·class="s2">"white"</span><span·class="p">,</span> | 213 | ····<span·class="n">edge_color</span><span·class="o">=</span><span·class="s2">"white"</span><span·class="p">,</span> |
214 | <span·class="p">)</span> | 214 | <span·class="p">)</span> |
215 | <span·class="n">ax</span><span·class="o">.</span><span·class="n">set</span><span·class="p">(</span><span·class="n">xlim</span><span·class="o">=</span><span·class="p">(</span><span·class="mi">0</span><span·class="p">,</span>·<span·class="mi">1</span><span·class="p">),</span>·<span·class="n">ylim</span><span·class="o">=</span><span·class="p">(</span><span·class="mi">0</span><span·class="p">,</span>·<span·class="mi">1</span><span·class="p">))</span> | 215 | <span·class="n">ax</span><span·class="o">.</span><span·class="n">set</span><span·class="p">(</span><span·class="n">xlim</span><span·class="o">=</span><span·class="p">(</span><span·class="mi">0</span><span·class="p">,</span>·<span·class="mi">1</span><span·class="p">),</span>·<span·class="n">ylim</span><span·class="o">=</span><span·class="p">(</span><span·class="mi">0</span><span·class="p">,</span>·<span·class="mi">1</span><span·class="p">))</span> |
216 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">show</span><span·class="p">()</span> | 216 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">show</span><span·class="p">()</span> |
217 | </pre></div> | 217 | </pre></div> |
218 | </div> | 218 | </div> |
219 | <img·src="../_images/sphx_glr_delaunay-triangulation_002.png"·srcset="../_images/sphx_glr_delaunay-triangulation_002.png"·alt="delaunay·triangulation"·class·=·"sphx-glr-single-img"/><p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes· | 219 | <img·src="../_images/sphx_glr_delaunay-triangulation_002.png"·srcset="../_images/sphx_glr_delaunay-triangulation_002.png"·alt="delaunay·triangulation"·class·=·"sphx-glr-single-img"/><p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·3.519·seconds)</p> |
220 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-tutorials-delaunay-triangulation-py"> | 220 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-tutorials-delaunay-triangulation-py"> |
221 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> | 221 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> |
222 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/84b5535aec2782912ca65d8fb310e523/delaunay-triangulation.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">delaunay-triangulation.ipynb</span></code></a></p> | 222 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/84b5535aec2782912ca65d8fb310e523/delaunay-triangulation.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">delaunay-triangulation.ipynb</span></code></a></p> |
223 | </div> | 223 | </div> |
224 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> | 224 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> |
225 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/e325ba6738c8eb1cffd598c9bd3b4f77/delaunay-triangulation.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">delaunay-triangulation.py</span></code></a></p> | 225 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/e325ba6738c8eb1cffd598c9bd3b4f77/delaunay-triangulation.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">delaunay-triangulation.py</span></code></a></p> |
226 | </div> | 226 | </div> |
Offset 71, 15 lines modified | Offset 71, 15 lines modified | ||
71 | ········(tri[1],·tri[2]), | 71 | ········(tri[1],·tri[2]), |
72 | ········(tri[0],·tri[2]), | 72 | ········(tri[0],·tri[2]), |
73 | ····]) | 73 | ····]) |
74 | Because·adjacent·triangles·share·an·edge/side,·the·graph·now·contains·some | 74 | Because·adjacent·triangles·share·an·edge/side,·the·graph·now·contains·some |
75 | edges·more·than·once.·It’s·useful·to·simplify·the·graph·to·get·rid·of·those | 75 | edges·more·than·once.·It’s·useful·to·simplify·the·graph·to·get·rid·of·those |
76 | multiedges,·keeping·each·side·only·once: | 76 | multiedges,·keeping·each·side·only·once: |
77 | g.simplify() | 77 | g.simplify() |
78 | <igraph.Graph·object·at·0x | 78 | <igraph.Graph·object·at·0xae4367b0> |
79 | Finally,·plotting·the·graph·gives·a·good·idea·of·what·the·triangulation·looks | 79 | Finally,·plotting·the·graph·gives·a·good·idea·of·what·the·triangulation·looks |
80 | like: | 80 | like: |
81 | fig,·ax·=·plt.subplots() | 81 | fig,·ax·=·plt.subplots() |
82 | ig.plot( | 82 | ig.plot( |
83 | ····g, | 83 | ····g, |
84 | ····layout=layout, | 84 | ····layout=layout, |
85 | ····target=ax, | 85 | ····target=ax, |
Offset 114, 15 lines modified | Offset 114, 15 lines modified | ||
114 | ····vertex_size=0, | 114 | ····vertex_size=0, |
115 | ····edge_width=0.2, | 115 | ····edge_width=0.2, |
116 | ····edge_color="white", | 116 | ····edge_color="white", |
117 | ) | 117 | ) |
118 | ax.set(xlim=(0,·1),·ylim=(0,·1)) | 118 | ax.set(xlim=(0,·1),·ylim=(0,·1)) |
119 | plt.show() | 119 | plt.show() |
120 | [delaunay·triangulation] | 120 | [delaunay·triangulation] |
121 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes· | 121 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes·3.519·seconds) |
122 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8J_\x8u_\x8p_\x8y_\x8t_\x8e_\x8r_\x8·_\x8n_\x8o_\x8t_\x8e_\x8b_\x8o_\x8o_\x8k_\x8:_\x8·_\x8d_\x8e_\x8l_\x8a_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t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y | 124 | _\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y |
125 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t | 125 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t |
126 | =============================================================================== | 126 | =============================================================================== |
127 | ©·Copyright·2010-2024,·The·igraph·development·team. | 127 | ©·Copyright·2010-2024,·The·igraph·development·team. |
128 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. | 128 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. |
Offset 197, 15 lines modified | Offset 197, 15 lines modified | ||
197 | ····<span·class="n">vertex_color</span><span·class="o">=</span><span·class="s2">"lightblue"</span><span·class="p">,</span> | 197 | ····<span·class="n">vertex_color</span><span·class="o">=</span><span·class="s2">"lightblue"</span><span·class="p">,</span> |
198 | ····<span·class="n">vertex_size</span><span·class="o">=</span><span·class="mi">15</span> | 198 | ····<span·class="n">vertex_size</span><span·class="o">=</span><span·class="mi">15</span> |
199 | <span·class="p">)</span> | 199 | <span·class="p">)</span> |
200 | <span·class="n">axs</span><span·class="p">[</span><span·class="mi">1</span><span·class="p">,</span>·<span·class="mi">0</span><span·class="p">]</span><span·class="o">.</span><span·class="n">set_ylabel</span><span·class="p">(</span><span·class="s1">'N.·edges'</span><span·class="p">)</span> | 200 | <span·class="n">axs</span><span·class="p">[</span><span·class="mi">1</span><span·class="p">,</span>·<span·class="mi">0</span><span·class="p">]</span><span·class="o">.</span><span·class="n">set_ylabel</span><span·class="p">(</span><span·class="s1">'N.·edges'</span><span·class="p">)</span> |
201 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">show</span><span·class="p">()</span> | 201 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">show</span><span·class="p">()</span> |
202 | </pre></div> | 202 | </pre></div> |
203 | </div> | 203 | </div> |
204 | <img·src="../_images/sphx_glr_erdos_renyi_001.png"·srcset="../_images/sphx_glr_erdos_renyi_001.png"·alt="erdos·renyi"·class·=·"sphx-glr-single-img"/><p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·5.5 | 204 | <img·src="../_images/sphx_glr_erdos_renyi_001.png"·srcset="../_images/sphx_glr_erdos_renyi_001.png"·alt="erdos·renyi"·class·=·"sphx-glr-single-img"/><p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·5.572·seconds)</p> |
205 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-tutorials-erdos-renyi-py"> | 205 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-tutorials-erdos-renyi-py"> |
206 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> | 206 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> |
207 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/25d5caa797264a1f03d19440ae76dc03/erdos_renyi.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">erdos_renyi.ipynb</span></code></a></p> | 207 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/25d5caa797264a1f03d19440ae76dc03/erdos_renyi.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">erdos_renyi.ipynb</span></code></a></p> |
208 | </div> | 208 | </div> |
209 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> | 209 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> |
210 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/b438976968d9cea7b775361a0531520c/erdos_renyi.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">erdos_renyi.py</span></code></a></p> | 210 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/b438976968d9cea7b775361a0531520c/erdos_renyi.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">erdos_renyi.py</span></code></a></p> |
211 | </div> | 211 | </div> |
Offset 108, 15 lines modified | Offset 108, 15 lines modified | ||
108 | ····layout="circle", | 108 | ····layout="circle", |
109 | ····vertex_color="lightblue", | 109 | ····vertex_color="lightblue", |
110 | ····vertex_size=15 | 110 | ····vertex_size=15 |
111 | ) | 111 | ) |
112 | axs[1,·0].set_ylabel('N.·edges') | 112 | axs[1,·0].set_ylabel('N.·edges') |
113 | plt.show() | 113 | plt.show() |
114 | [erdos·renyi] | 114 | [erdos·renyi] |
115 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8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\x8r_\x8e_\x8n_\x8y_\x8i_\x8._\x8p_\x8y |
118 | _\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y | 118 | _\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y |
119 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t | 119 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t |
120 | =============================================================================== | 120 | =============================================================================== |
121 | ©·Copyright·2010-2024,·The·igraph·development·team. | 121 | ©·Copyright·2010-2024,·The·igraph·development·team. |
122 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. | 122 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. |
Offset 155, 15 lines modified | Offset 155, 15 lines modified | ||
155 | ····<span·class="n">vertex_color</span><span·class="o">=</span><span·class="s2">"grey"</span><span·class="p">,</span> | 155 | ····<span·class="n">vertex_color</span><span·class="o">=</span><span·class="s2">"grey"</span><span·class="p">,</span> |
156 | ····<span·class="n">edge_color</span><span·class="o">=</span><span·class="s2">"#222"</span><span·class="p">,</span> | 156 | ····<span·class="n">edge_color</span><span·class="o">=</span><span·class="s2">"#222"</span><span·class="p">,</span> |
157 | ····<span·class="n">edge_width</span><span·class="o">=</span><span·class="mi">1</span><span·class="p">,</span> | 157 | ····<span·class="n">edge_width</span><span·class="o">=</span><span·class="mi">1</span><span·class="p">,</span> |
158 | <span·class="p">)</span> | 158 | <span·class="p">)</span> |
159 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">show</span><span·class="p">()</span> | 159 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">show</span><span·class="p">()</span> |
160 | </pre></div> | 160 | </pre></div> |
161 | </div> | 161 | </div> |
162 | <img·src="../_images/sphx_glr_generate_dag_001.png"·srcset="../_images/sphx_glr_generate_dag_001.png"·alt="generate·dag"·class·=·"sphx-glr-single-img"/><p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·2. | 162 | <img·src="../_images/sphx_glr_generate_dag_001.png"·srcset="../_images/sphx_glr_generate_dag_001.png"·alt="generate·dag"·class·=·"sphx-glr-single-img"/><p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·2.213·seconds)</p> |
163 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-tutorials-generate-dag-py"> | 163 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-tutorials-generate-dag-py"> |
164 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> | 164 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> |
165 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/b5f18d75acde9962f9eaea66530d3e8c/generate_dag.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">generate_dag.ipynb</span></code></a></p> | 165 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/b5f18d75acde9962f9eaea66530d3e8c/generate_dag.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">generate_dag.ipynb</span></code></a></p> |
166 | </div> | 166 | </div> |
167 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> | 167 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> |
168 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/41b03534d9792d8dee4abf26a0ddb6df/generate_dag.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">generate_dag.py</span></code></a></p> | 168 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/41b03534d9792d8dee4abf26a0ddb6df/generate_dag.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">generate_dag.py</span></code></a></p> |
169 | </div> | 169 | </div> |
Offset 69, 15 lines modified | Offset 69, 15 lines modified | ||
69 | ····vertex_size=15, | 69 | ····vertex_size=15, |
70 | ····vertex_color="grey", | 70 | ····vertex_color="grey", |
71 | ····edge_color="#222", | 71 | ····edge_color="#222", |
72 | ····edge_width=1, | 72 | ····edge_width=1, |
73 | ) | 73 | ) |
74 | plt.show() | 74 | plt.show() |
75 | [generate·dag] | 75 | [generate·dag] |
76 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes·2. | 76 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8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x8l_\x8l_\x8e_\x8r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y | 79 | _\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y |
80 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t | 80 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t |
81 | =============================================================================== | 81 | =============================================================================== |
82 | ©·Copyright·2010-2024,·The·igraph·development·team. | 82 | ©·Copyright·2010-2024,·The·igraph·development·team. |
83 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. | 83 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. |
Offset 189, 15 lines modified | Offset 189, 15 lines modified | ||
189 | ····<span·class="o">**</span><a·href="file:///usr/share/doc/python3-doc/html/library/stdtypes.html#dict"·title="builtins.dict"·class="sphx-glr-backref-module-builtins·sphx-glr-backref-type-py-class·sphx-glr-backref-instance"><span·class="n">visual_style</span></a><span·class="p">,</span> | 189 | ····<span·class="o">**</span><a·href="file:///usr/share/doc/python3-doc/html/library/stdtypes.html#dict"·title="builtins.dict"·class="sphx-glr-backref-module-builtins·sphx-glr-backref-type-py-class·sphx-glr-backref-instance"><span·class="n">visual_style</span></a><span·class="p">,</span> |
190 | <span·class="p">)</span> | 190 | <span·class="p">)</span> |
191 | <span·class="n">fig</span><span·class="o">.</span><span·class="n">text</span><span·class="p">(</span><span·class="mf">0.38</span><span·class="p">,</span>·<span·class="mf">0.5</span><span·class="p">,</span>·<span·class="s1">'$</span><span·class="se">\\</span><span·class="s1">simeq$'</span>·<span·class="k">if</span>·<span·class="n">g1</span><span·class="o">.</span><span·class="n">isomorphic</span><span·class="p">(</span><span·class="n">g2</span><span·class="p">)</span>·<span·class="k">else</span>·<span·class="s1">'$</span><span·class="se">\\</span><span·class="s1">neq$'</span><span·class="p">,</span>·<span·class="n">fontsize</span><span·class="o">=</span><span·class="mi">15</span><span·class="p">,</span>·<span·class="n">ha</span><span·class="o">=</span><span·class="s1">'center'</span><span·class="p">,</span>·<span·class="n">va</span><span·class="o">=</span><span·class="s1">'center'</span><span·class="p">)</span> | 191 | <span·class="n">fig</span><span·class="o">.</span><span·class="n">text</span><span·class="p">(</span><span·class="mf">0.38</span><span·class="p">,</span>·<span·class="mf">0.5</span><span·class="p">,</span>·<span·class="s1">'$</span><span·class="se">\\</span><span·class="s1">simeq$'</span>·<span·class="k">if</span>·<span·class="n">g1</span><span·class="o">.</span><span·class="n">isomorphic</span><span·class="p">(</span><span·class="n">g2</span><span·class="p">)</span>·<span·class="k">else</span>·<span·class="s1">'$</span><span·class="se">\\</span><span·class="s1">neq$'</span><span·class="p">,</span>·<span·class="n">fontsize</span><span·class="o">=</span><span·class="mi">15</span><span·class="p">,</span>·<span·class="n">ha</span><span·class="o">=</span><span·class="s1">'center'</span><span·class="p">,</span>·<span·class="n">va</span><span·class="o">=</span><span·class="s1">'center'</span><span·class="p">)</span> |
192 | <span·class="n">fig</span><span·class="o">.</span><span·class="n">text</span><span·class="p">(</span><span·class="mf">0.65</span><span·class="p">,</span>·<span·class="mf">0.5</span><span·class="p">,</span>·<span·class="s1">'$</span><span·class="se">\\</span><span·class="s1">simeq$'</span>·<span·class="k">if</span>·<span·class="n">g2</span><span·class="o">.</span><span·class="n">isomorphic</span><span·class="p">(</span><span·class="n">g3</span><span·class="p">)</span>·<span·class="k">else</span>·<span·class="s1">'$</span><span·class="se">\\</span><span·class="s1">neq$'</span><span·class="p">,</span>·<span·class="n">fontsize</span><span·class="o">=</span><span·class="mi">15</span><span·class="p">,</span>·<span·class="n">ha</span><span·class="o">=</span><span·class="s1">'center'</span><span·class="p">,</span>·<span·class="n">va</span><span·class="o">=</span><span·class="s1">'center'</span><span·class="p">)</span> | 192 | <span·class="n">fig</span><span·class="o">.</span><span·class="n">text</span><span·class="p">(</span><span·class="mf">0.65</span><span·class="p">,</span>·<span·class="mf">0.5</span><span·class="p">,</span>·<span·class="s1">'$</span><span·class="se">\\</span><span·class="s1">simeq$'</span>·<span·class="k">if</span>·<span·class="n">g2</span><span·class="o">.</span><span·class="n">isomorphic</span><span·class="p">(</span><span·class="n">g3</span><span·class="p">)</span>·<span·class="k">else</span>·<span·class="s1">'$</span><span·class="se">\\</span><span·class="s1">neq$'</span><span·class="p">,</span>·<span·class="n">fontsize</span><span·class="o">=</span><span·class="mi">15</span><span·class="p">,</span>·<span·class="n">ha</span><span·class="o">=</span><span·class="s1">'center'</span><span·class="p">,</span>·<span·class="n">va</span><span·class="o">=</span><span·class="s1">'center'</span><span·class="p">)</span> |
193 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">show</span><span·class="p">()</span> | 193 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">show</span><span·class="p">()</span> |
194 | </pre></div> | 194 | </pre></div> |
195 | </div> | 195 | </div> |
196 | <img·src="../_images/sphx_glr_isomorphism_001.png"·srcset="../_images/sphx_glr_isomorphism_001.png"·alt="isomorphism"·class·=·"sphx-glr-single-img"/><p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·1. | 196 | <img·src="../_images/sphx_glr_isomorphism_001.png"·srcset="../_images/sphx_glr_isomorphism_001.png"·alt="isomorphism"·class·=·"sphx-glr-single-img"/><p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·1.437·seconds)</p> |
197 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-tutorials-isomorphism-py"> | 197 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-tutorials-isomorphism-py"> |
198 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> | 198 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> |
199 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/27a7c4b3d11014ddb5b8b2a44e30e734/isomorphism.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">isomorphism.ipynb</span></code></a></p> | 199 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/27a7c4b3d11014ddb5b8b2a44e30e734/isomorphism.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">isomorphism.ipynb</span></code></a></p> |
200 | </div> | 200 | </div> |
201 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> | 201 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> |
202 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/75f065515779d42d798e6f42e458354a/isomorphism.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">isomorphism.py</span></code></a></p> | 202 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/75f065515779d42d798e6f42e458354a/isomorphism.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">isomorphism.py</span></code></a></p> |
203 | </div> | 203 | </div> |
Offset 103, 15 lines modified | Offset 103, 15 lines modified | ||
103 | ) | 103 | ) |
104 | fig.text(0.38,·0.5,·'$\\simeq$'·if·g1.isomorphic(g2)·else·'$\\neq$', | 104 | fig.text(0.38,·0.5,·'$\\simeq$'·if·g1.isomorphic(g2)·else·'$\\neq$', |
105 | fontsize=15,·ha='center',·va='center') | 105 | fontsize=15,·ha='center',·va='center') |
106 | fig.text(0.65,·0.5,·'$\\simeq$'·if·g2.isomorphic(g3)·else·'$\\neq$', | 106 | fig.text(0.65,·0.5,·'$\\simeq$'·if·g2.isomorphic(g3)·else·'$\\neq$', |
107 | fontsize=15,·ha='center',·va='center') | 107 | fontsize=15,·ha='center',·va='center') |
108 | plt.show() | 108 | plt.show() |
109 | [isomorphism] | 109 | [isomorphism] |
110 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes·1. | 110 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes·1.437·seconds) |
111 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8J_\x8u_\x8p_\x8y_\x8t_\x8e_\x8r_\x8·_\x8n_\x8o_\x8t_\x8e_\x8b_\x8o_\x8o_\x8k_\x8:_\x8·_\x8i_\x8s_\x8o_\x8m_\x8o_\x8r_\x8p_\x8h_\x8i_\x8s_\x8m_\x8._\x8i_\x8p_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8e_\x8r_\x8y |
114 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t | 114 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t |
115 | =============================================================================== | 115 | =============================================================================== |
116 | ©·Copyright·2010-2024,·The·igraph·development·team. | 116 | ©·Copyright·2010-2024,·The·igraph·development·team. |
117 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. | 117 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. |
Offset 157, 15 lines modified | Offset 157, 15 lines modified | ||
157 | ····<span·class="n">layout</span><span·class="o">=</span><span·class="s2">"circle"</span><span·class="p">,</span> | 157 | ····<span·class="n">layout</span><span·class="o">=</span><span·class="s2">"circle"</span><span·class="p">,</span> |
158 | ····<span·class="n">vertex_label</span><span·class="o">=</span><span·class="nb">range</span><span·class="p">(</span><span·class="n">g</span><span·class="o">.</span><span·class="n">vcount</span><span·class="p">()),</span> | 158 | ····<span·class="n">vertex_label</span><span·class="o">=</span><span·class="nb">range</span><span·class="p">(</span><span·class="n">g</span><span·class="o">.</span><span·class="n">vcount</span><span·class="p">()),</span> |
159 | ····<span·class="n">vertex_color</span><span·class="o">=</span><span·class="s2">"lightblue"</span> | 159 | ····<span·class="n">vertex_color</span><span·class="o">=</span><span·class="s2">"lightblue"</span> |
160 | <span·class="p">)</span> | 160 | <span·class="p">)</span> |
161 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">show</span><span·class="p">()</span> | 161 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">show</span><span·class="p">()</span> |
162 | </pre></div> | 162 | </pre></div> |
163 | </div> | 163 | </div> |
164 | <img·src="../_images/sphx_glr_maxflow_001.png"·srcset="../_images/sphx_glr_maxflow_001.png"·alt="maxflow"·class·=·"sphx-glr-single-img"/><p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·0. | 164 | <img·src="../_images/sphx_glr_maxflow_001.png"·srcset="../_images/sphx_glr_maxflow_001.png"·alt="maxflow"·class·=·"sphx-glr-single-img"/><p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·0.569·seconds)</p> |
165 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-tutorials-maxflow-py"> | 165 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-tutorials-maxflow-py"> |
166 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> | 166 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> |
167 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/ec967e96145be835811b34f369ceb4c2/maxflow.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">maxflow.ipynb</span></code></a></p> | 167 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/ec967e96145be835811b34f369ceb4c2/maxflow.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">maxflow.ipynb</span></code></a></p> |
168 | </div> | 168 | </div> |
169 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> | 169 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> |
170 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/fb1ace091b479d9370bc8348d34bb5e6/maxflow.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">maxflow.py</span></code></a></p> | 170 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/fb1ace091b479d9370bc8348d34bb5e6/maxflow.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">maxflow.py</span></code></a></p> |
171 | </div> | 171 | </div> |
Offset 72, 15 lines modified | Offset 72, 15 lines modified | ||
72 | ····target=ax, | 72 | ····target=ax, |
73 | ····layout="circle", | 73 | ····layout="circle", |
74 | ····vertex_label=range(g.vcount()), | 74 | ····vertex_label=range(g.vcount()), |
75 | ····vertex_color="lightblue" | 75 | ····vertex_color="lightblue" |
76 | ) | 76 | ) |
77 | plt.show() | 77 | plt.show() |
78 | [maxflow] | 78 | [maxflow] |
79 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes·0. | 79 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes·0.569·seconds) |
80 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8J_\x8u_\x8p_\x8y_\x8t_\x8e_\x8r_\x8·_\x8n_\x8o_\x8t_\x8e_\x8b_\x8o_\x8o_\x8k_\x8:_\x8·_\x8m_\x8a_\x8x_\x8f_\x8l_\x8o_\x8w_\x8._\x8i_\x8p_\x8y_\x8n_\x8b | 80 | _\x8D_\x8o_\x8w_\x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e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t |
84 | =============================================================================== | 84 | =============================================================================== |
85 | ©·Copyright·2010-2024,·The·igraph·development·team. | 85 | ©·Copyright·2010-2024,·The·igraph·development·team. |
86 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. | 86 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. |
Offset 164, 15 lines modified | Offset 164, 15 lines modified | ||
164 | ····<span·class="n">edge_width</span><span·class="o">=</span><span·class="n">g</span><span·class="o">.</span><span·class="n">es</span><span·class="p">[</span><span·class="s2">"width"</span><span·class="p">],</span> | 164 | ····<span·class="n">edge_width</span><span·class="o">=</span><span·class="n">g</span><span·class="o">.</span><span·class="n">es</span><span·class="p">[</span><span·class="s2">"width"</span><span·class="p">],</span> |
165 | ····<span·class="n">edge_label</span><span·class="o">=</span><span·class="n">g</span><span·class="o">.</span><span·class="n">es</span><span·class="p">[</span><span·class="s2">"weight"</span><span·class="p">],</span> | 165 | ····<span·class="n">edge_label</span><span·class="o">=</span><span·class="n">g</span><span·class="o">.</span><span·class="n">es</span><span·class="p">[</span><span·class="s2">"weight"</span><span·class="p">],</span> |
166 | ····<span·class="n">edge_background</span><span·class="o">=</span><span·class="s2">"white"</span><span·class="p">,</span> | 166 | ····<span·class="n">edge_background</span><span·class="o">=</span><span·class="s2">"white"</span><span·class="p">,</span> |
167 | <span·class="p">)</span> | 167 | <span·class="p">)</span> |
168 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">show</span><span·class="p">()</span> | 168 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">show</span><span·class="p">()</span> |
169 | </pre></div> | 169 | </pre></div> |
170 | </div> | 170 | </div> |
171 | <img·src="../_images/sphx_glr_minimum_spanning_trees_001.png"·srcset="../_images/sphx_glr_minimum_spanning_trees_001.png"·alt="minimum·spanning·trees"·class·=·"sphx-glr-single-img"/><p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·2. | 171 | <img·src="../_images/sphx_glr_minimum_spanning_trees_001.png"·srcset="../_images/sphx_glr_minimum_spanning_trees_001.png"·alt="minimum·spanning·trees"·class·=·"sphx-glr-single-img"/><p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·2.187·seconds)</p> |
172 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-tutorials-minimum-spanning-trees-py"> | 172 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-tutorials-minimum-spanning-trees-py"> |
173 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> | 173 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> |
174 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/d8d9437e575458785bbd8b9f92ad90ed/minimum_spanning_trees.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">minimum_spanning_trees.ipynb</span></code></a></p> | 174 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/d8d9437e575458785bbd8b9f92ad90ed/minimum_spanning_trees.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">minimum_spanning_trees.ipynb</span></code></a></p> |
175 | </div> | 175 | </div> |
176 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> | 176 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> |
177 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/20634a79e0149b921e8021ba1a9bf22c/minimum_spanning_trees.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">minimum_spanning_trees.py</span></code></a></p> | 177 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/20634a79e0149b921e8021ba1a9bf22c/minimum_spanning_trees.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">minimum_spanning_trees.py</span></code></a></p> |
178 | </div> | 178 | </div> |
Offset 77, 15 lines modified | Offset 77, 15 lines modified | ||
77 | ····vertex_color="lightblue", | 77 | ····vertex_color="lightblue", |
78 | ····edge_width=g.es["width"], | 78 | ····edge_width=g.es["width"], |
79 | ····edge_label=g.es["weight"], | 79 | ····edge_label=g.es["weight"], |
80 | ····edge_background="white", | 80 | ····edge_background="white", |
81 | ) | 81 | ) |
82 | plt.show() | 82 | plt.show() |
83 | [minimum·spanning·trees] | 83 | [minimum·spanning·trees] |
84 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes·2. | 84 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes·2.187·seconds) |
85 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8J_\x8u_\x8p_\x8y_\x8t_\x8e_\x8r_\x8·_\x8n_\x8o_\x8t_\x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r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y | 87 | _\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y |
88 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t | 88 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t |
89 | =============================================================================== | 89 | =============================================================================== |
90 | ©·Copyright·2010-2024,·The·igraph·development·team. | 90 | ©·Copyright·2010-2024,·The·igraph·development·team. |
91 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. | 91 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. |
Offset 213, 15 lines modified | Offset 213, 15 lines modified | ||
213 | ····<span·class="n">vertex_color</span><span·class="o">=</span><span·class="s2">"lightblue"</span><span·class="p">,</span> | 213 | ····<span·class="n">vertex_color</span><span·class="o">=</span><span·class="s2">"lightblue"</span><span·class="p">,</span> |
214 | ····<a·href="file:///usr/share/doc/python3-doc/html/library/stdtypes.html#list"·title="builtins.list"·class="sphx-glr-backref-module-builtins·sphx-glr-backref-type-py-class·sphx-glr-backref-instance"><span·class="n">vertex_size</span></a><span·class="o">=</span><a·href="file:///usr/share/doc/python3-doc/html/library/stdtypes.html#list"·title="builtins.list"·class="sphx-glr-backref-module-builtins·sphx-glr-backref-type-py-class·sphx-glr-backref-instance"><span·class="n">vertex_size</span></a><span·class="p">,</span> | 214 | ····<a·href="file:///usr/share/doc/python3-doc/html/library/stdtypes.html#list"·title="builtins.list"·class="sphx-glr-backref-module-builtins·sphx-glr-backref-type-py-class·sphx-glr-backref-instance"><span·class="n">vertex_size</span></a><span·class="o">=</span><a·href="file:///usr/share/doc/python3-doc/html/library/stdtypes.html#list"·title="builtins.list"·class="sphx-glr-backref-module-builtins·sphx-glr-backref-type-py-class·sphx-glr-backref-instance"><span·class="n">vertex_size</span></a><span·class="p">,</span> |
215 | ····<span·class="n">edge_width</span><span·class="o">=</span><span·class="n">g</span><span·class="o">.</span><span·class="n">es</span><span·class="p">[</span><span·class="s2">"weight"</span><span·class="p">],</span> | 215 | ····<span·class="n">edge_width</span><span·class="o">=</span><span·class="n">g</span><span·class="o">.</span><span·class="n">es</span><span·class="p">[</span><span·class="s2">"weight"</span><span·class="p">],</span> |
216 | <span·class="p">)</span> | 216 | <span·class="p">)</span> |
217 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">show</span><span·class="p">()</span> | 217 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">show</span><span·class="p">()</span> |
218 | </pre></div> | 218 | </pre></div> |
219 | </div> | 219 | </div> |
220 | <img·src="../_images/sphx_glr_online_user_actions_002.png"·srcset="../_images/sphx_glr_online_user_actions_002.png"·alt="online·user·actions"·class·=·"sphx-glr-single-img"/><p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes· | 220 | <img·src="../_images/sphx_glr_online_user_actions_002.png"·srcset="../_images/sphx_glr_online_user_actions_002.png"·alt="online·user·actions"·class·=·"sphx-glr-single-img"/><p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·1.942·seconds)</p> |
221 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-tutorials-online-user-actions-py"> | 221 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-tutorials-online-user-actions-py"> |
222 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> | 222 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> |
223 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/937b9a86f4f37eae9f32f34396051b1f/online_user_actions.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">online_user_actions.ipynb</span></code></a></p> | 223 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/937b9a86f4f37eae9f32f34396051b1f/online_user_actions.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">online_user_actions.ipynb</span></code></a></p> |
224 | </div> | 224 | </div> |
225 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> | 225 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> |
226 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/d26d373ee3cda71ff9571e6ac3291311/online_user_actions.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">online_user_actions.py</span></code></a></p> | 226 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/d26d373ee3cda71ff9571e6ac3291311/online_user_actions.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">online_user_actions.py</span></code></a></p> |
227 | </div> | 227 | </div> |
Offset 124, 15 lines modified | Offset 124, 15 lines modified | ||
124 | ····vertex_label=g.vs['name'], | 124 | ····vertex_label=g.vs['name'], |
125 | ····vertex_color="lightblue", | 125 | ····vertex_color="lightblue", |
126 | ····_\x8v_\x8e_\x8r_\x8t_\x8e_\x8x_\x8__\x8s_\x8i_\x8z_\x8e=_\x8v_\x8e_\x8r_\x8t_\x8e_\x8x_\x8__\x8s_\x8i_\x8z_\x8e, | 126 | ····_\x8v_\x8e_\x8r_\x8t_\x8e_\x8x_\x8__\x8s_\x8i_\x8z_\x8e=_\x8v_\x8e_\x8r_\x8t_\x8e_\x8x_\x8__\x8s_\x8i_\x8z_\x8e, |
127 | ····edge_width=g.es["weight"], | 127 | ····edge_width=g.es["weight"], |
128 | ) | 128 | ) |
129 | plt.show() | 129 | plt.show() |
130 | [online·user·actions] | 130 | [online·user·actions] |
131 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes· | 131 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes·1.942·seconds) |
132 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8J_\x8u_\x8p_\x8y_\x8t_\x8e_\x8r_\x8·_\x8n_\x8o_\x8t_\x8e_\x8b_\x8o_\x8o_\x8k_\x8:_\x8·_\x8o_\x8n_\x8l_\x8i_\x8n_\x8e_\x8__\x8u_\x8s_\x8e_\x8r_\x8__\x8a_\x8c_\x8t_\x8i_\x8o_\x8n_\x8s_\x8._\x8i_\x8p_\x8y_\x8n_\x8b | 132 | _\x8D_\x8o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8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y |
135 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t | 135 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t |
136 | =============================================================================== | 136 | =============================================================================== |
137 | ©·Copyright·2010-2024,·The·igraph·development·team. | 137 | ©·Copyright·2010-2024,·The·igraph·development·team. |
138 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. | 138 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. |
Offset 179, 15 lines modified | Offset 179, 15 lines modified | ||
179 | <span·class="n">fig</span><span·class="o">.</span><span·class="n">savefig</span><span·class="p">(</span><span·class="s1">'social_network.pdf'</span><span·class="p">)</span> | 179 | <span·class="n">fig</span><span·class="o">.</span><span·class="n">savefig</span><span·class="p">(</span><span·class="s1">'social_network.pdf'</span><span·class="p">)</span> |
180 | <span·class="c1">#·Export·and·import·a·graph·as·a·GML·file.</span> | 180 | <span·class="c1">#·Export·and·import·a·graph·as·a·GML·file.</span> |
181 | <span·class="n">g</span><span·class="o">.</span><span·class="n">save</span><span·class="p">(</span><span·class="s2">"social_network.gml"</span><span·class="p">)</span> | 181 | <span·class="n">g</span><span·class="o">.</span><span·class="n">save</span><span·class="p">(</span><span·class="s2">"social_network.gml"</span><span·class="p">)</span> |
182 | <span·class="n">g</span>·<span·class="o">=</span>·<span·class="n">ig</span><span·class="o">.</span><span·class="n">load</span><span·class="p">(</span><span·class="s2">"social_network.gml"</span><span·class="p">)</span> | 182 | <span·class="n">g</span>·<span·class="o">=</span>·<span·class="n">ig</span><span·class="o">.</span><span·class="n">load</span><span·class="p">(</span><span·class="s2">"social_network.gml"</span><span·class="p">)</span> |
183 | </pre></div> | 183 | </pre></div> |
184 | </div> | 184 | </div> |
185 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes· | 185 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·0.936·seconds)</p> |
186 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-tutorials-quickstart-py"> | 186 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-tutorials-quickstart-py"> |
187 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> | 187 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> |
188 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/672969cb8d7b3403ac7a48137cd865ba/quickstart.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">quickstart.ipynb</span></code></a></p> | 188 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/672969cb8d7b3403ac7a48137cd865ba/quickstart.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">quickstart.ipynb</span></code></a></p> |
189 | </div> | 189 | </div> |
190 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> | 190 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> |
191 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/a526f4c21167c30e565f6eef2922968a/quickstart.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">quickstart.py</span></code></a></p> | 191 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/a526f4c21167c30e565f6eef2922968a/quickstart.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">quickstart.py</span></code></a></p> |
192 | </div> | 192 | </div> |
Offset 102, 15 lines modified | Offset 102, 15 lines modified | ||
102 | fig.savefig('social_network.png') | 102 | fig.savefig('social_network.png') |
103 | fig.savefig('social_network.jpg') | 103 | fig.savefig('social_network.jpg') |
104 | fig.savefig('social_network.pdf') | 104 | fig.savefig('social_network.pdf') |
105 | #·Export·and·import·a·graph·as·a·GML·file. | 105 | #·Export·and·import·a·graph·as·a·GML·file. |
106 | g.save("social_network.gml") | 106 | g.save("social_network.gml") |
107 | g·=·ig.load("social_network.gml") | 107 | g·=·ig.load("social_network.gml") |
108 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes· | 108 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes·0.936·seconds) |
109 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8J_\x8u_\x8p_\x8y_\x8t_\x8e_\x8r_\x8·_\x8n_\x8o_\x8t_\x8e_\x8b_\x8o_\x8o_\x8k_\x8:_\x8·_\x8q_\x8u_\x8i_\x8c_\x8k_\x8s_\x8t_\x8a_\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_\x8l_\x8e_\x8r_\x8y |
112 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t | 112 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t |
113 | =============================================================================== | 113 | =============================================================================== |
114 | ©·Copyright·2010-2024,·The·igraph·development·team. | 114 | ©·Copyright·2010-2024,·The·igraph·development·team. |
115 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. | 115 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. |
Offset 372, 62 lines modified | Offset 372, 62 lines modified | ||
372 | .anim-state·input·{ | 372 | .anim-state·input·{ |
373 | ····margin:·0; | 373 | ····margin:·0; |
374 | ····vertical-align:·middle; | 374 | ····vertical-align:·middle; |
375 | } | 375 | } |
376 | </style> | 376 | </style> |
377 | <div·class="animation"> | 377 | <div·class="animation"> |
378 | ··<img·id="_anim_img | 378 | ··<img·id="_anim_imgeeb8c2e865fd4cef98422484062963f0"> |
379 | ··<div·class="anim-controls"> | 379 | ··<div·class="anim-controls"> |
380 | ····<input·id="_anim_slider | 380 | ····<input·id="_anim_slidereeb8c2e865fd4cef98422484062963f0"·type="range"·class="anim-slider" |
381 | ···········name="points"·min="0"·max="1"·step="1"·value="0" | 381 | ···········name="points"·min="0"·max="1"·step="1"·value="0" |
382 | ···········oninput="anim | 382 | ···········oninput="animeeb8c2e865fd4cef98422484062963f0.set_frame(parseInt(this.value));"> |
383 | ····<div·class="anim-buttons"> | 383 | ····<div·class="anim-buttons"> |
384 | ······<button·title="Decrease·speed"·aria-label="Decrease·speed"·onclick="anim | 384 | ······<button·title="Decrease·speed"·aria-label="Decrease·speed"·onclick="animeeb8c2e865fd4cef98422484062963f0.slower()"> |
385 | ··········<i·class="fa·fa-minus"></i></button> | 385 | ··········<i·class="fa·fa-minus"></i></button> |
386 | ······<button·title="First·frame"·aria-label="First·frame"·onclick="anim | 386 | ······<button·title="First·frame"·aria-label="First·frame"·onclick="animeeb8c2e865fd4cef98422484062963f0.first_frame()"> |
387 | ········<i·class="fa·fa-fast-backward"></i></button> | 387 | ········<i·class="fa·fa-fast-backward"></i></button> |
388 | ······<button·title="Previous·frame"·aria-label="Previous·frame"·onclick="anim | 388 | ······<button·title="Previous·frame"·aria-label="Previous·frame"·onclick="animeeb8c2e865fd4cef98422484062963f0.previous_frame()"> |
389 | ··········<i·class="fa·fa-step-backward"></i></button> | 389 | ··········<i·class="fa·fa-step-backward"></i></button> |
390 | ······<button·title="Play·backwards"·aria-label="Play·backwards"·onclick="anim | 390 | ······<button·title="Play·backwards"·aria-label="Play·backwards"·onclick="animeeb8c2e865fd4cef98422484062963f0.reverse_animation()"> |
391 | ··········<i·class="fa·fa-play·fa-flip-horizontal"></i></button> | 391 | ··········<i·class="fa·fa-play·fa-flip-horizontal"></i></button> |
392 | ······<button·title="Pause"·aria-label="Pause"·onclick="anim | 392 | ······<button·title="Pause"·aria-label="Pause"·onclick="animeeb8c2e865fd4cef98422484062963f0.pause_animation()"> |
393 | ··········<i·class="fa·fa-pause"></i></button> | 393 | ··········<i·class="fa·fa-pause"></i></button> |
394 | ······<button·title="Play"·aria-label="Play"·onclick="anim | 394 | ······<button·title="Play"·aria-label="Play"·onclick="animeeb8c2e865fd4cef98422484062963f0.play_animation()"> |
395 | ··········<i·class="fa·fa-play"></i></button> | 395 | ··········<i·class="fa·fa-play"></i></button> |
396 | ······<button·title="Next·frame"·aria-label="Next·frame"·onclick="anim | 396 | ······<button·title="Next·frame"·aria-label="Next·frame"·onclick="animeeb8c2e865fd4cef98422484062963f0.next_frame()"> |
397 | ··········<i·class="fa·fa-step-forward"></i></button> | 397 | ··········<i·class="fa·fa-step-forward"></i></button> |
398 | ······<button·title="Last·frame"·aria-label="Last·frame"·onclick="anim | 398 | ······<button·title="Last·frame"·aria-label="Last·frame"·onclick="animeeb8c2e865fd4cef98422484062963f0.last_frame()"> |
399 | ··········<i·class="fa·fa-fast-forward"></i></button> | 399 | ··········<i·class="fa·fa-fast-forward"></i></button> |
400 | ······<button·title="Increase·speed"·aria-label="Increase·speed"·onclick="anim | 400 | ······<button·title="Increase·speed"·aria-label="Increase·speed"·onclick="animeeb8c2e865fd4cef98422484062963f0.faster()"> |
401 | ··········<i·class="fa·fa-plus"></i></button> | 401 | ··········<i·class="fa·fa-plus"></i></button> |
402 | ····</div> | 402 | ····</div> |
403 | ····<form·title="Repetition·mode"·aria-label="Repetition·mode"·action="#n"·name="_anim_loop_select | 403 | ····<form·title="Repetition·mode"·aria-label="Repetition·mode"·action="#n"·name="_anim_loop_selecteeb8c2e865fd4cef98422484062963f0" |
404 | ··········class="anim-state"> | 404 | ··········class="anim-state"> |
405 | ······<input·type="radio"·name="state"·value="once"·id="_anim_radio1_ | 405 | ······<input·type="radio"·name="state"·value="once"·id="_anim_radio1_eeb8c2e865fd4cef98422484062963f0" |
406 | ·············> | 406 | ·············> |
407 | ······<label·for="_anim_radio1_dcf098e8e0fb4c2886c59ef5cbd39746">Once</label> | ||
408 | ······< | 407 | ······<label·for="_anim_radio1_eeb8c2e865fd4cef98422484062963f0">Once</label> |
408 | ······<input·type="radio"·name="state"·value="loop"·id="_anim_radio2_eeb8c2e865fd4cef98422484062963f0" | ||
409 | ·············checked> | 409 | ·············checked> |
410 | ······<label·for="_anim_radio2_dcf098e8e0fb4c2886c59ef5cbd39746">Loop</label> | ||
411 | ······< | 410 | ······<label·for="_anim_radio2_eeb8c2e865fd4cef98422484062963f0">Loop</label> |
411 | ······<input·type="radio"·name="state"·value="reflect"·id="_anim_radio3_eeb8c2e865fd4cef98422484062963f0" | ||
412 | ·············> | 412 | ·············> |
413 | ······<label·for="_anim_radio3_ | 413 | ······<label·for="_anim_radio3_eeb8c2e865fd4cef98422484062963f0">Reflect</label> |
414 | ····</form> | 414 | ····</form> |
415 | ··</div> | 415 | ··</div> |
416 | </div> | 416 | </div> |
417 | <script·language="javascript"> | 417 | <script·language="javascript"> |
418 | ··/*·Instantiate·the·Animation·class.·*/ | 418 | ··/*·Instantiate·the·Animation·class.·*/ |
419 | ··/*·The·IDs·given·should·match·those·used·in·the·template·above.·*/ | 419 | ··/*·The·IDs·given·should·match·those·used·in·the·template·above.·*/ |
420 | ··(function()·{ | 420 | ··(function()·{ |
421 | ····var·img_id·=·"_anim_imgdcf098e8e0fb4c2886c59ef5cbd39746"; | ||
422 | ····var·slider_id·=·"_anim_sliderdcf098e8e0fb4c2886c59ef5cbd39746"; | ||
423 | ····var· | 421 | ····var·img_id·=·"_anim_imgeeb8c2e865fd4cef98422484062963f0"; |
422 | ····var·slider_id·=·"_anim_slidereeb8c2e865fd4cef98422484062963f0"; | ||
423 | ····var·loop_select_id·=·"_anim_loop_selecteeb8c2e865fd4cef98422484062963f0"; | ||
424 | ····var·frames·=·new·Array(12); | 424 | ····var·frames·=·new·Array(12); |
425 | ··frames[0]·=·"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAoAAAAHgCAYAAAA10dzkAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90\ | 425 | ··frames[0]·=·"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAoAAAAHgCAYAAAA10dzkAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90\ |
426 | bGliIHZlcnNpb24zLjguMywgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/H5lhTAAAACXBIWXMAAA9h\ | 426 | bGliIHZlcnNpb24zLjguMywgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/H5lhTAAAACXBIWXMAAA9h\ |
427 | AAAPYQGoP6dpAAAIyUlEQVR4nO3WMQEAIAzAMMC/5+ECjiYKenbPzCwAADLO7wAAAN4ygAAAMQYQ\ | 427 | AAAPYQGoP6dpAAAIyUlEQVR4nO3WMQEAIAzAMMC/5+ECjiYKenbPzCwAADLO7wAAAN4ygAAAMQYQ\ |
428 | ACDGAAIAxBhAAIAYAwgAEGMAAQBiDCAAQIwBBACIMYAAADEGEAAgxgACAMQYQACAGAMIABBjAAEA\ | 428 | ACDGAAIAxBhAAIAYAwgAEGMAAQBiDCAAQIwBBACIMYAAADEGEAAgxgACAMQYQACAGAMIABBjAAEA\ |
429 | YgwgAECMAQQAiDGAAAAxBhAAIMYAAgDEGEAAgBgDCAAQYwABAGIMIABAjAEEAIgxgAAAMQYQACDG\ | 429 | YgwgAECMAQQAiDGAAAAxBhAAIMYAAgDEGEAAgBgDCAAQYwABAGIMIABAjAEEAIgxgAAAMQYQACDG\ |
Offset 2953, 29 lines modified | Offset 2953, 29 lines modified | ||
2953 | AGAy/weJWDiHdFrdTQAAAABJRU5ErkJggg==\ | 2953 | AGAy/weJWDiHdFrdTQAAAABJRU5ErkJggg==\ |
2954 | " | 2954 | " |
2955 | ····/*·set·a·timeout·to·make·sure·all·the·above·elements·are·created·before | 2955 | ····/*·set·a·timeout·to·make·sure·all·the·above·elements·are·created·before |
2956 | ·······the·object·is·initialized.·*/ | 2956 | ·······the·object·is·initialized.·*/ |
2957 | ····setTimeout(function()·{ | 2957 | ····setTimeout(function()·{ |
2958 | ········anim | 2958 | ········animeeb8c2e865fd4cef98422484062963f0·=·new·Animation(frames,·img_id,·slider_id,·500.0, |
2959 | ·································loop_select_id); | 2959 | ·································loop_select_id); |
2960 | ····},·0); | 2960 | ····},·0); |
2961 | ··})() | 2961 | ··})() |
2962 | </script></div> | 2962 | </script></div> |
2963 | <div·class="admonition·note"> | 2963 | <div·class="admonition·note"> |
2964 | <p·class="admonition-title">Note</p> | 2964 | <p·class="admonition-title">Note</p> |
2965 | <p>We·use·<em>igraph</em>’s·<code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">Graph.subgraph()</span></code>·(see | 2965 | <p>We·use·<em>igraph</em>’s·<code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">Graph.subgraph()</span></code>·(see |
2966 | <a·class="reference·external"·href="/en/latest/api/igraph.GraphBase.html#induced_subgraph"·title="(in·igraph·v0.11.8)"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">igraph.GraphBase.induced_subgraph()</span></code></a>)·in·order·to·obtain·a·section·of | 2966 | <a·class="reference·external"·href="/en/latest/api/igraph.GraphBase.html#induced_subgraph"·title="(in·igraph·v0.11.8)"><code·class="xref·py·py-meth·docutils·literal·notranslate"><span·class="pre">igraph.GraphBase.induced_subgraph()</span></code></a>)·in·order·to·obtain·a·section·of |
2967 | the·ring·graph·at·a·time·for·each·frame.·While·sufficient·for·an·easy | 2967 | the·ring·graph·at·a·time·for·each·frame.·While·sufficient·for·an·easy |
2968 | example,·this·approach·is·not·very·efficient.·Thinking·of·more·efficient | 2968 | example,·this·approach·is·not·very·efficient.·Thinking·of·more·efficient |
2969 | approaches,·e.g.·vertices·with·zero·radius,·is·a·useful·exercise·to·learn | 2969 | approaches,·e.g.·vertices·with·zero·radius,·is·a·useful·exercise·to·learn |
2970 | the·combination·of·igraph·and·matplotlib.</p> | 2970 | the·combination·of·igraph·and·matplotlib.</p> |
2971 | </div> | 2971 | </div> |
2972 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·1 | 2972 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·11.112·seconds)</p> |
2973 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-tutorials-ring-animation-py"> | 2973 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-tutorials-ring-animation-py"> |
2974 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> | 2974 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> |
2975 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/7ec5e2ec78927c7b822c2d4846cf9fe5/ring_animation.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">ring_animation.ipynb</span></code></a></p> | 2975 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/7ec5e2ec78927c7b822c2d4846cf9fe5/ring_animation.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">ring_animation.ipynb</span></code></a></p> |
2976 | </div> | 2976 | </div> |
2977 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> | 2977 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> |
2978 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/04f31f979c8d03b5834fe70d27653f19/ring_animation.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">ring_animation.py</span></code></a></p> | 2978 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/04f31f979c8d03b5834fe70d27653f19/ring_animation.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">ring_animation.py</span></code></a></p> |
2979 | </div> | 2979 | </div> |
Offset 108, 15 lines modified | Offset 108, 15 lines modified | ||
108 | oOnce·#Loop·oReflect | 108 | oOnce·#Loop·oReflect |
109 | Note | 109 | Note |
110 | We·use·i\x8ig\x8gr\x8ra\x8ap\x8ph\x8h’s·Graph.subgraph()·(see·_\x8i_\x8g_\x8r_\x8a_\x8p_\x8h_\x8._\x8G_\x8r_\x8a_\x8p_\x8h_\x8B_\x8a_\x8s_\x8e_\x8._\x8i_\x8n_\x8d_\x8u_\x8c_\x8e_\x8d_\x8__\x8s_\x8u_\x8b_\x8g_\x8r_\x8a_\x8p_\x8h_\x8(_\x8))·in | 110 | We·use·i\x8ig\x8gr\x8ra\x8ap\x8ph\x8h’s·Graph.subgraph()·(see·_\x8i_\x8g_\x8r_\x8a_\x8p_\x8h_\x8._\x8G_\x8r_\x8a_\x8p_\x8h_\x8B_\x8a_\x8s_\x8e_\x8._\x8i_\x8n_\x8d_\x8u_\x8c_\x8e_\x8d_\x8__\x8s_\x8u_\x8b_\x8g_\x8r_\x8a_\x8p_\x8h_\x8(_\x8))·in |
111 | order·to·obtain·a·section·of·the·ring·graph·at·a·time·for·each·frame.·While | 111 | order·to·obtain·a·section·of·the·ring·graph·at·a·time·for·each·frame.·While |
112 | sufficient·for·an·easy·example,·this·approach·is·not·very·efficient.·Thinking | 112 | sufficient·for·an·easy·example,·this·approach·is·not·very·efficient.·Thinking |
113 | of·more·efficient·approaches,·e.g.·vertices·with·zero·radius,·is·a·useful | 113 | of·more·efficient·approaches,·e.g.·vertices·with·zero·radius,·is·a·useful |
114 | exercise·to·learn·the·combination·of·igraph·and·matplotlib. | 114 | exercise·to·learn·the·combination·of·igraph·and·matplotlib. |
115 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes·1 | 115 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes·11.112·seconds) |
116 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8J_\x8u_\x8p_\x8y_\x8t_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8l_\x8l_\x8e_\x8r_\x8y | 118 | _\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y |
119 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t | 119 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t |
120 | =============================================================================== | 120 | =============================================================================== |
121 | ©·Copyright·2010-2024,·The·igraph·development·team. | 121 | ©·Copyright·2010-2024,·The·igraph·development·team. |
122 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. | 122 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. |
Offset 196, 15 lines modified | Offset 196, 15 lines modified | ||
196 | ····<span·class="n">edge_color</span><span·class="o">=</span><span·class="s1">'#666'</span><span·class="p">,</span> | 196 | ····<span·class="n">edge_color</span><span·class="o">=</span><span·class="s1">'#666'</span><span·class="p">,</span> |
197 | ····<span·class="n">edge_align_label</span><span·class="o">=</span><span·class="kc">True</span><span·class="p">,</span> | 197 | ····<span·class="n">edge_align_label</span><span·class="o">=</span><span·class="kc">True</span><span·class="p">,</span> |
198 | ····<span·class="n">edge_background</span><span·class="o">=</span><span·class="s1">'white'</span> | 198 | ····<span·class="n">edge_background</span><span·class="o">=</span><span·class="s1">'white'</span> |
199 | <span·class="p">)</span> | 199 | <span·class="p">)</span> |
200 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">show</span><span·class="p">()</span> | 200 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">show</span><span·class="p">()</span> |
201 | </pre></div> | 201 | </pre></div> |
202 | </div> | 202 | </div> |
203 | <img·src="../_images/sphx_glr_shortest_path_visualisation_001.png"·srcset="../_images/sphx_glr_shortest_path_visualisation_001.png"·alt="shortest·path·visualisation"·class·=·"sphx-glr-single-img"/><p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·0.61 | 203 | <img·src="../_images/sphx_glr_shortest_path_visualisation_001.png"·srcset="../_images/sphx_glr_shortest_path_visualisation_001.png"·alt="shortest·path·visualisation"·class·=·"sphx-glr-single-img"/><p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·0.614·seconds)</p> |
204 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-tutorials-shortest-path-visualisation-py"> | 204 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-tutorials-shortest-path-visualisation-py"> |
205 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> | 205 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> |
206 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/fc60c4dc9531cdc1484f5e3ce96ab8fc/shortest_path_visualisation.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">shortest_path_visualisation.ipynb</span></code></a></p> | 206 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/fc60c4dc9531cdc1484f5e3ce96ab8fc/shortest_path_visualisation.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">shortest_path_visualisation.ipynb</span></code></a></p> |
207 | </div> | 207 | </div> |
208 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> | 208 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> |
209 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/79e1b300289994ce5ae78e692fa16ddb/shortest_path_visualisation.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">shortest_path_visualisation.py</span></code></a></p> | 209 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/79e1b300289994ce5ae78e692fa16ddb/shortest_path_visualisation.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">shortest_path_visualisation.py</span></code></a></p> |
210 | </div> | 210 | </div> |
Offset 106, 15 lines modified | Offset 106, 15 lines modified | ||
106 | ····edge_label=g.es["weight"], | 106 | ····edge_label=g.es["weight"], |
107 | ····edge_color='#666', | 107 | ····edge_color='#666', |
108 | ····edge_align_label=True, | 108 | ····edge_align_label=True, |
109 | ····edge_background='white' | 109 | ····edge_background='white' |
110 | ) | 110 | ) |
111 | plt.show() | 111 | plt.show() |
112 | [shortest·path·visualisation] | 112 | [shortest·path·visualisation] |
113 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes·0.61 | 113 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes·0.614·seconds) |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c_\x8o_\x8d_\x8e_\x8:_\x8·_\x8s_\x8h_\x8o_\x8r_\x8t_\x8e_\x8s_\x8t_\x8__\x8p_\x8a_\x8t_\x8h_\x8__\x8v_\x8i_\x8s_\x8u_\x8a_\x8l_\x8i_\x8s_\x8a_\x8t_\x8i_\x8o_\x8n_\x8._\x8p_\x8y |
116 | _\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y | 116 | _\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y |
117 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t | 117 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t |
118 | =============================================================================== | 118 | =============================================================================== |
119 | ©·Copyright·2010-2024,·The·igraph·development·team. | 119 | ©·Copyright·2010-2024,·The·igraph·development·team. |
120 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. | 120 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. |
Offset 147, 15 lines modified | Offset 147, 15 lines modified | ||
147 | i.e.·directly·changes·the·graph·that·it·is·run·on.·So·we·need·to·first·make·a | 147 | i.e.·directly·changes·the·graph·that·it·is·run·on.·So·we·need·to·first·make·a |
148 | copy·of·our·graph,·and·then·simplify·that·copy·to·keep·the·original·graph | 148 | copy·of·our·graph,·and·then·simplify·that·copy·to·keep·the·original·graph |
149 | untouched:</p> | 149 | untouched:</p> |
150 | <div·class="doctest·highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="n">g2</span>·<span·class="o">=</span>·<span·class="n">g1</span><span·class="o">.</span><span·class="n">copy</span><span·class="p">()</span> | 150 | <div·class="doctest·highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="n">g2</span>·<span·class="o">=</span>·<span·class="n">g1</span><span·class="o">.</span><span·class="n">copy</span><span·class="p">()</span> |
151 | <span·class="n">g2</span><span·class="o">.</span><span·class="n">simplify</span><span·class="p">()</span> | 151 | <span·class="n">g2</span><span·class="o">.</span><span·class="n">simplify</span><span·class="p">()</span> |
152 | </pre></div> | 152 | </pre></div> |
153 | </div> | 153 | </div> |
154 | <div·class="sphx-glr-script-out·doctest·highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="o"><</span><span·class="n">igraph</span><span·class="o">.</span><span·class="n">Graph</span>·<span·class="nb">object</span>·<span·class="n">at</span>·<span·class="mh">0x | 154 | <div·class="sphx-glr-script-out·doctest·highlight-default·notranslate"><div·class="highlight"><pre><span></span><span·class="o"><</span><span·class="n">igraph</span><span·class="o">.</span><span·class="n">Graph</span>·<span·class="nb">object</span>·<span·class="n">at</span>·<span·class="mh">0xae320230</span><span·class="o">></span> |
155 | </pre></div> | 155 | </pre></div> |
156 | </div> | 156 | </div> |
157 | <p>We·can·then·proceed·to·plot·both·graphs·to·see·the·difference.·First,·let’s | 157 | <p>We·can·then·proceed·to·plot·both·graphs·to·see·the·difference.·First,·let’s |
158 | choose·a·consistent·visual·style:</p> | 158 | choose·a·consistent·visual·style:</p> |
159 | <div·class="doctest·highlight-default·notranslate"><div·class="highlight"><pre><span></span><a·href="file:///usr/share/doc/python3-doc/html/library/stdtypes.html#dict"·title="builtins.dict"·class="sphx-glr-backref-module-builtins·sphx-glr-backref-type-py-class·sphx-glr-backref-instance"><span·class="n">visual_style</span></a>·<span·class="o">=</span>·<span·class="p">{</span> | 159 | <div·class="doctest·highlight-default·notranslate"><div·class="highlight"><pre><span></span><a·href="file:///usr/share/doc/python3-doc/html/library/stdtypes.html#dict"·title="builtins.dict"·class="sphx-glr-backref-module-builtins·sphx-glr-backref-type-py-class·sphx-glr-backref-instance"><span·class="n">visual_style</span></a>·<span·class="o">=</span>·<span·class="p">{</span> |
160 | ····<span·class="s2">"vertex_color"</span><span·class="p">:</span>·<span·class="s2">"lightblue"</span><span·class="p">,</span> | 160 | ····<span·class="s2">"vertex_color"</span><span·class="p">:</span>·<span·class="s2">"lightblue"</span><span·class="p">,</span> |
161 | ····<span·class="s2">"vertex_size"</span><span·class="p">:</span>·<span·class="mi">20</span><span·class="p">,</span> | 161 | ····<span·class="s2">"vertex_size"</span><span·class="p">:</span>·<span·class="mi">20</span><span·class="p">,</span> |
Offset 186, 15 lines modified | Offset 186, 15 lines modified | ||
186 | ····<span·class="p">))</span> | 186 | ····<span·class="p">))</span> |
187 | <span·class="n">axs</span><span·class="p">[</span><span·class="mi">1</span><span·class="p">]</span><span·class="o">.</span><span·class="n">add_patch</span><span·class="p">(</span><span·class="n">plt</span><span·class="o">.</span><span·class="n">Rectangle</span><span·class="p">(</span> | 187 | <span·class="n">axs</span><span·class="p">[</span><span·class="mi">1</span><span·class="p">]</span><span·class="o">.</span><span·class="n">add_patch</span><span·class="p">(</span><span·class="n">plt</span><span·class="o">.</span><span·class="n">Rectangle</span><span·class="p">(</span> |
188 | ····<span·class="p">(</span><span·class="mi">0</span><span·class="p">,</span>·<span·class="mi">0</span><span·class="p">),</span>·<span·class="mi">1</span><span·class="p">,</span>·<span·class="mi">1</span><span·class="p">,</span>·<span·class="n">fc</span><span·class="o">=</span><span·class="s1">'none'</span><span·class="p">,</span>·<span·class="n">ec</span><span·class="o">=</span><span·class="s1">'k'</span><span·class="p">,</span>·<span·class="n">lw</span><span·class="o">=</span><span·class="mi">4</span><span·class="p">,</span>·<span·class="n">transform</span><span·class="o">=</span><span·class="n">axs</span><span·class="p">[</span><span·class="mi">1</span><span·class="p">]</span><span·class="o">.</span><span·class="n">transAxes</span><span·class="p">,</span> | 188 | ····<span·class="p">(</span><span·class="mi">0</span><span·class="p">,</span>·<span·class="mi">0</span><span·class="p">),</span>·<span·class="mi">1</span><span·class="p">,</span>·<span·class="mi">1</span><span·class="p">,</span>·<span·class="n">fc</span><span·class="o">=</span><span·class="s1">'none'</span><span·class="p">,</span>·<span·class="n">ec</span><span·class="o">=</span><span·class="s1">'k'</span><span·class="p">,</span>·<span·class="n">lw</span><span·class="o">=</span><span·class="mi">4</span><span·class="p">,</span>·<span·class="n">transform</span><span·class="o">=</span><span·class="n">axs</span><span·class="p">[</span><span·class="mi">1</span><span·class="p">]</span><span·class="o">.</span><span·class="n">transAxes</span><span·class="p">,</span> |
189 | ····<span·class="p">))</span> | 189 | ····<span·class="p">))</span> |
190 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">show</span><span·class="p">()</span> | 190 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">show</span><span·class="p">()</span> |
191 | </pre></div> | 191 | </pre></div> |
192 | </div> | 192 | </div> |
193 | <img·src="../_images/sphx_glr_simplify_001.png"·srcset="../_images/sphx_glr_simplify_001.png"·alt="Multigraph...,·...simplified"·class·=·"sphx-glr-single-img"/><p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes· | 193 | <img·src="../_images/sphx_glr_simplify_001.png"·srcset="../_images/sphx_glr_simplify_001.png"·alt="Multigraph...,·...simplified"·class·=·"sphx-glr-single-img"/><p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·0.929·seconds)</p> |
194 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-tutorials-simplify-py"> | 194 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-tutorials-simplify-py"> |
195 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> | 195 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> |
196 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/54476cc5a7944a895c863c973e50cf77/simplify.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">simplify.ipynb</span></code></a></p> | 196 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/54476cc5a7944a895c863c973e50cf77/simplify.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">simplify.ipynb</span></code></a></p> |
197 | </div> | 197 | </div> |
198 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> | 198 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> |
199 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/df86bcfbbf6e084c64304a7c77e115b8/simplify.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">simplify.py</span></code></a></p> | 199 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/df86bcfbbf6e084c64304a7c77e115b8/simplify.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">simplify.py</span></code></a></p> |
200 | </div> | 200 | </div> |
Offset 65, 15 lines modified | Offset 65, 15 lines modified | ||
65 | ) | 65 | ) |
66 | To·simplify·the·graph,·we·must·remember·that·the·function·operates·in·place, | 66 | To·simplify·the·graph,·we·must·remember·that·the·function·operates·in·place, |
67 | i.e.·directly·changes·the·graph·that·it·is·run·on.·So·we·need·to·first·make·a | 67 | i.e.·directly·changes·the·graph·that·it·is·run·on.·So·we·need·to·first·make·a |
68 | copy·of·our·graph,·and·then·simplify·that·copy·to·keep·the·original·graph | 68 | copy·of·our·graph,·and·then·simplify·that·copy·to·keep·the·original·graph |
69 | untouched: | 69 | untouched: |
70 | g2·=·g1.copy() | 70 | g2·=·g1.copy() |
71 | g2.simplify() | 71 | g2.simplify() |
72 | <igraph.Graph·object·at·0x | 72 | <igraph.Graph·object·at·0xae320230> |
73 | We·can·then·proceed·to·plot·both·graphs·to·see·the·difference.·First,·let’s | 73 | We·can·then·proceed·to·plot·both·graphs·to·see·the·difference.·First,·let’s |
74 | choose·a·consistent·visual·style: | 74 | choose·a·consistent·visual·style: |
75 | _\x8v_\x8i_\x8s_\x8u_\x8a_\x8l_\x8__\x8s_\x8t_\x8y_\x8l_\x8e·=·{ | 75 | _\x8v_\x8i_\x8s_\x8u_\x8a_\x8l_\x8__\x8s_\x8t_\x8y_\x8l_\x8e·=·{ |
76 | ····"vertex_color":·"lightblue", | 76 | ····"vertex_color":·"lightblue", |
77 | ····"vertex_size":·20, | 77 | ····"vertex_size":·20, |
78 | ····"vertex_label":·[0,·1,·2,·3,·4], | 78 | ····"vertex_label":·[0,·1,·2,·3,·4], |
79 | } | 79 | } |
Offset 99, 15 lines modified | Offset 99, 15 lines modified | ||
99 | ····(0,·0),·1,·1,·fc='none',·ec='k',·lw=4,·transform=axs[0].transAxes, | 99 | ····(0,·0),·1,·1,·fc='none',·ec='k',·lw=4,·transform=axs[0].transAxes, |
100 | ····)) | 100 | ····)) |
101 | axs[1].add_patch(plt.Rectangle( | 101 | axs[1].add_patch(plt.Rectangle( |
102 | ····(0,·0),·1,·1,·fc='none',·ec='k',·lw=4,·transform=axs[1].transAxes, | 102 | ····(0,·0),·1,·1,·fc='none',·ec='k',·lw=4,·transform=axs[1].transAxes, |
103 | ····)) | 103 | ····)) |
104 | plt.show() | 104 | plt.show() |
105 | [Multigraph...,·...simplified] | 105 | [Multigraph...,·...simplified] |
106 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes· | 106 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes·0.929·seconds) |
107 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8J_\x8u_\x8p_\x8y_\x8t_\x8e_\x8r_\x8·_\x8n_\x8o_\x8t_\x8e_\x8b_\x8o_\x8o_\x8k_\x8:_\x8·_\x8s_\x8i_\x8m_\x8p_\x8l_\x8i_\x8f_\x8y_\x8._\x8i_\x8p_\x8y_\x8n_\x8b | 107 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8J_\x8u_\x8p_\x8y_\x8t_\x8e_\x8r_\x8·_\x8n_\x8o_\x8t_\x8e_\x8b_\x8o_\x8o_\x8k_\x8:_\x8·_\x8s_\x8i_\x8m_\x8p_\x8l_\x8i_\x8f_\x8y_\x8._\x8i_\x8p_\x8y_\x8n_\x8b |
108 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8P_\x8y_\x8t_\x8h_\x8o_\x8n_\x8·_\x8s_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8c_\x8o_\x8d_\x8e_\x8:_\x8·_\x8s_\x8i_\x8m_\x8p_\x8l_\x8i_\x8f_\x8y_\x8._\x8p_\x8y | 108 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8P_\x8y_\x8t_\x8h_\x8o_\x8n_\x8·_\x8s_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8c_\x8o_\x8d_\x8e_\x8:_\x8·_\x8s_\x8i_\x8m_\x8p_\x8l_\x8i_\x8f_\x8y_\x8._\x8p_\x8y |
109 | _\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y | 109 | _\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y |
110 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t | 110 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t |
111 | =============================================================================== | 111 | =============================================================================== |
112 | ©·Copyright·2010-2024,·The·igraph·development·team. | 112 | ©·Copyright·2010-2024,·The·igraph·development·team. |
113 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. | 113 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. |
Offset 172, 15 lines modified | Offset 172, 15 lines modified | ||
172 | </pre></div> | 172 | </pre></div> |
173 | </div> | 173 | </div> |
174 | <img·src="../_images/sphx_glr_spanning_trees_001.png"·srcset="../_images/sphx_glr_spanning_trees_001.png"·alt="spanning·trees"·class·=·"sphx-glr-single-img"/><div·class="admonition·note"> | 174 | <img·src="../_images/sphx_glr_spanning_trees_001.png"·srcset="../_images/sphx_glr_spanning_trees_001.png"·alt="spanning·trees"·class·=·"sphx-glr-single-img"/><div·class="admonition·note"> |
175 | <p·class="admonition-title">Note</p> | 175 | <p·class="admonition-title">Note</p> |
176 | <p>To·invert·the·y·axis·such·that·the·root·of·the·tree·is·on·top·of·the·plot, | 176 | <p>To·invert·the·y·axis·such·that·the·root·of·the·tree·is·on·top·of·the·plot, |
177 | you·can·call·<cite>ax.invert_yaxis()</cite>·before·<cite>plt.show()</cite>.</p> | 177 | you·can·call·<cite>ax.invert_yaxis()</cite>·before·<cite>plt.show()</cite>.</p> |
178 | </div> | 178 | </div> |
179 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·2. | 179 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·2.957·seconds)</p> |
180 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-tutorials-spanning-trees-py"> | 180 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-tutorials-spanning-trees-py"> |
181 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> | 181 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> |
182 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/babf92113ce2dc7d0ac7ca835125317e/spanning_trees.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">spanning_trees.ipynb</span></code></a></p> | 182 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/babf92113ce2dc7d0ac7ca835125317e/spanning_trees.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">spanning_trees.ipynb</span></code></a></p> |
183 | </div> | 183 | </div> |
184 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> | 184 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> |
185 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/84a135646841d3eb216cb170b4755139/spanning_trees.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">spanning_trees.py</span></code></a></p> | 185 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/84a135646841d3eb216cb170b4755139/spanning_trees.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">spanning_trees.py</span></code></a></p> |
186 | </div> | 186 | </div> |
Offset 83, 15 lines modified | Offset 83, 15 lines modified | ||
83 | ····edge_width=g.es["width"] | 83 | ····edge_width=g.es["width"] |
84 | ) | 84 | ) |
85 | plt.show() | 85 | plt.show() |
86 | [spanning·trees] | 86 | [spanning·trees] |
87 | Note | 87 | Note |
88 | To·invert·the·y·axis·such·that·the·root·of·the·tree·is·on·top·of·the·plot,·you | 88 | To·invert·the·y·axis·such·that·the·root·of·the·tree·is·on·top·of·the·plot,·you |
89 | can·callax.invert_yaxis()beforeplt.show(). | 89 | can·callax.invert_yaxis()beforeplt.show(). |
90 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x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\x8c_\x8o_\x8d_\x8e_\x8:_\x8·_\x8s_\x8p_\x8a_\x8n_\x8n_\x8i_\x8n_\x8g_\x8__\x8t_\x8r_\x8e_\x8e_\x8s_\x8._\x8p_\x8y |
93 | _\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y | 93 | _\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y |
94 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t | 94 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t |
95 | =============================================================================== | 95 | =============================================================================== |
96 | ©·Copyright·2010-2024,·The·igraph·development·team. | 96 | ©·Copyright·2010-2024,·The·igraph·development·team. |
97 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. | 97 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. |
Offset 182, 15 lines modified | Offset 182, 15 lines modified | ||
182 | <span·class="n">degree</span>·<span·class="n">of</span>·<span·class="mi">1</span><span·class="p">:</span>·<span·class="mi">1</span> | 182 | <span·class="n">degree</span>·<span·class="n">of</span>·<span·class="mi">1</span><span·class="p">:</span>·<span·class="mi">1</span> |
183 | <span·class="n">degree</span>·<span·class="n">of</span>·<span·class="mi">2</span><span·class="p">:</span>·<span·class="mi">1</span> | 183 | <span·class="n">degree</span>·<span·class="n">of</span>·<span·class="mi">2</span><span·class="p">:</span>·<span·class="mi">1</span> |
184 | <span·class="n">degree</span>·<span·class="n">of</span>·<span·class="mi">3</span><span·class="p">:</span>·<span·class="mi">2</span> | 184 | <span·class="n">degree</span>·<span·class="n">of</span>·<span·class="mi">3</span><span·class="p">:</span>·<span·class="mi">2</span> |
185 | <span·class="n">degree</span>·<span·class="n">of</span>·<span·class="mi">4</span><span·class="p">:</span>·<span·class="mi">1</span> | 185 | <span·class="n">degree</span>·<span·class="n">of</span>·<span·class="mi">4</span><span·class="p">:</span>·<span·class="mi">1</span> |
186 | <span·class="n">degree</span>·<span·class="n">of</span>·<span·class="mi">5</span><span·class="p">:</span>·<span·class="mi">2</span> | 186 | <span·class="n">degree</span>·<span·class="n">of</span>·<span·class="mi">5</span><span·class="p">:</span>·<span·class="mi">2</span> |
187 | </pre></div> | 187 | </pre></div> |
188 | </div> | 188 | </div> |
189 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·0. | 189 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·0.609·seconds)</p> |
190 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-tutorials-topological-sort-py"> | 190 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-tutorials-topological-sort-py"> |
191 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> | 191 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> |
192 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/b0d031ac8dedde92ae4e40c8c09bfb2d/topological_sort.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">topological_sort.ipynb</span></code></a></p> | 192 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/b0d031ac8dedde92ae4e40c8c09bfb2d/topological_sort.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">topological_sort.ipynb</span></code></a></p> |
193 | </div> | 193 | </div> |
194 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> | 194 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> |
195 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/75a0b33a685d1f3ca81fe08e393cf370/topological_sort.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">topological_sort.py</span></code></a></p> | 195 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/75a0b33a685d1f3ca81fe08e393cf370/topological_sort.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">topological_sort.py</span></code></a></p> |
196 | </div> | 196 | </div> |
Offset 93, 15 lines modified | Offset 93, 15 lines modified | ||
93 | [topological·sort] | 93 | [topological·sort] |
94 | degree·of·0:·0 | 94 | degree·of·0:·0 |
95 | degree·of·1:·1 | 95 | degree·of·1:·1 |
96 | degree·of·2:·1 | 96 | degree·of·2:·1 |
97 | degree·of·3:·2 | 97 | degree·of·3:·2 |
98 | degree·of·4:·1 | 98 | degree·of·4:·1 |
99 | degree·of·5:·2 | 99 | degree·of·5:·2 |
100 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\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\x8a_\x8d_\x8·_\x8P_\x8y_\x8t_\x8h_\x8o_\x8n_\x8·_\x8s_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8c_\x8o_\x8d_\x8e_\x8:_\x8·_\x8t_\x8o_\x8p_\x8o_\x8l_\x8o_\x8g_\x8i_\x8c_\x8a_\x8l_\x8__\x8s_\x8o_\x8r_\x8t_\x8._\x8p_\x8y |
103 | _\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y | 103 | _\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y |
104 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t | 104 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t |
105 | =============================================================================== | 105 | =============================================================================== |
106 | ©·Copyright·2010-2024,·The·igraph·development·team. | 106 | ©·Copyright·2010-2024,·The·igraph·development·team. |
107 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. | 107 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. |
Offset 200, 15 lines modified | Offset 200, 15 lines modified | ||
200 | ········<span·class="mi">30</span><span·class="p">,</span>··<span·class="c1">#·loop·for·vertex·0</span> | 200 | ········<span·class="mi">30</span><span·class="p">,</span>··<span·class="c1">#·loop·for·vertex·0</span> |
201 | ········<span·class="mi">80</span><span·class="p">,</span>··<span·class="c1">#·loop·for·vertex·1</span> | 201 | ········<span·class="mi">80</span><span·class="p">,</span>··<span·class="c1">#·loop·for·vertex·1</span> |
202 | ····<span·class="p">],</span> | 202 | ····<span·class="p">],</span> |
203 | <span·class="p">)</span> | 203 | <span·class="p">)</span> |
204 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">show</span><span·class="p">()</span> | 204 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">show</span><span·class="p">()</span> |
205 | </pre></div> | 205 | </pre></div> |
206 | </div> | 206 | </div> |
207 | <img·src="../_images/sphx_glr_visual_style_003.png"·srcset="../_images/sphx_glr_visual_style_003.png"·alt="visual·style"·class·=·"sphx-glr-single-img"/><p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·1 | 207 | <img·src="../_images/sphx_glr_visual_style_003.png"·srcset="../_images/sphx_glr_visual_style_003.png"·alt="visual·style"·class·=·"sphx-glr-single-img"/><p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·11.312·seconds)</p> |
208 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-tutorials-visual-style-py"> | 208 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-tutorials-visual-style-py"> |
209 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> | 209 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> |
210 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/79c0d9b4fcedc4cbbf708dabc07e602e/visual_style.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">visual_style.ipynb</span></code></a></p> | 210 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/79c0d9b4fcedc4cbbf708dabc07e602e/visual_style.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">visual_style.ipynb</span></code></a></p> |
211 | </div> | 211 | </div> |
212 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> | 212 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> |
213 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/afc268b986c7491fc23c445840ef7388/visual_style.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">visual_style.py</span></code></a></p> | 213 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/afc268b986c7491fc23c445840ef7388/visual_style.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">visual_style.py</span></code></a></p> |
214 | </div> | 214 | </div> |
Offset 108, 15 lines modified | Offset 108, 15 lines modified | ||
108 | ········0,··#·ignored,·the·first·edge·is·not·a·loop | 108 | ········0,··#·ignored,·the·first·edge·is·not·a·loop |
109 | ········30,··#·loop·for·vertex·0 | 109 | ········30,··#·loop·for·vertex·0 |
110 | ········80,··#·loop·for·vertex·1 | 110 | ········80,··#·loop·for·vertex·1 |
111 | ····], | 111 | ····], |
112 | ) | 112 | ) |
113 | plt.show() | 113 | plt.show() |
114 | [visual·style] | 114 | [visual·style] |
115 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·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·_\x8c_\x8o_\x8d_\x8e_\x8:_\x8·_\x8v_\x8i_\x8s_\x8u_\x8a_\x8l_\x8__\x8s_\x8t_\x8y_\x8l_\x8e_\x8._\x8p_\x8y |
118 | _\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y | 118 | _\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y |
119 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t | 119 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t |
120 | =============================================================================== | 120 | =============================================================================== |
121 | ©·Copyright·2010-2024,·The·igraph·development·team. | 121 | ©·Copyright·2010-2024,·The·igraph·development·team. |
122 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. | 122 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. |
Offset 178, 15 lines modified | Offset 178, 15 lines modified | ||
178 | ········<span·class="n">vertex_size</span><span·class="o">=</span><span·class="mi">5</span><span·class="p">,</span> | 178 | ········<span·class="n">vertex_size</span><span·class="o">=</span><span·class="mi">5</span><span·class="p">,</span> |
179 | ········<span·class="n">target</span><span·class="o">=</span><span·class="n">ax</span><span·class="p">,</span> | 179 | ········<span·class="n">target</span><span·class="o">=</span><span·class="n">ax</span><span·class="p">,</span> |
180 | ····<span·class="p">)</span> | 180 | ····<span·class="p">)</span> |
181 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">axis</span><span·class="p">(</span><span·class="s1">'off'</span><span·class="p">)</span> | 181 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">axis</span><span·class="p">(</span><span·class="s1">'off'</span><span·class="p">)</span> |
182 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">show</span><span·class="p">()</span> | 182 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">show</span><span·class="p">()</span> |
183 | </pre></div> | 183 | </pre></div> |
184 | </div> | 184 | </div> |
185 | <img·src="../_images/sphx_glr_visualize_cliques_002.png"·srcset="../_images/sphx_glr_visualize_cliques_002.png"·alt="visualize·cliques"·class·=·"sphx-glr-single-img"/><p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·( | 185 | <img·src="../_images/sphx_glr_visualize_cliques_002.png"·srcset="../_images/sphx_glr_visualize_cliques_002.png"·alt="visualize·cliques"·class·=·"sphx-glr-single-img"/><p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(1·minutes·1.189·seconds)</p> |
186 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-tutorials-visualize-cliques-py"> | 186 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-tutorials-visualize-cliques-py"> |
187 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> | 187 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> |
188 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/da65d2622d92114804d208875f9bb90b/visualize_cliques.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">visualize_cliques.ipynb</span></code></a></p> | 188 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/da65d2622d92114804d208875f9bb90b/visualize_cliques.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">visualize_cliques.ipynb</span></code></a></p> |
189 | </div> | 189 | </div> |
190 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> | 190 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> |
191 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/e7bcea221487de8e5781ec3f6b3b6c47/visualize_cliques.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">visualize_cliques.py</span></code></a></p> | 191 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/e7bcea221487de8e5781ec3f6b3b6c47/visualize_cliques.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">visualize_cliques.py</span></code></a></p> |
192 | </div> | 192 | </div> |
Offset 91, 15 lines modified | Offset 91, 15 lines modified | ||
91 | ········palette=ig.RainbowPalette(), | 91 | ········palette=ig.RainbowPalette(), |
92 | ········vertex_size=5, | 92 | ········vertex_size=5, |
93 | ········target=ax, | 93 | ········target=ax, |
94 | ····) | 94 | ····) |
95 | plt.axis('off') | 95 | plt.axis('off') |
96 | plt.show() | 96 | plt.show() |
97 | [visualize·cliques] | 97 | [visualize·cliques] |
98 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x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_\x8y_\x8t_\x8h_\x8o_\x8n_\x8·_\x8s_\x8o_\x8u_\x8r_\x8c_\x8e_\x8·_\x8c_\x8o_\x8d_\x8e_\x8:_\x8·_\x8v_\x8i_\x8s_\x8u_\x8a_\x8l_\x8i_\x8z_\x8e_\x8__\x8c_\x8l_\x8i_\x8q_\x8u_\x8e_\x8s_\x8._\x8p_\x8y |
101 | _\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y | 101 | _\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y_\x8·_\x8g_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8e_\x8d_\x8·_\x8b_\x8y_\x8·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y |
102 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t | 102 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t |
103 | =============================================================================== | 103 | =============================================================================== |
104 | ©·Copyright·2010-2024,·The·igraph·development·team. | 104 | ©·Copyright·2010-2024,·The·igraph·development·team. |
105 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. | 105 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. |
Offset 174, 15 lines modified | Offset 174, 15 lines modified | ||
174 | ····<span·class="n">bbox_transform</span><span·class="o">=</span><span·class="n">ax</span><span·class="o">.</span><span·class="n">transAxes</span><span·class="p">,</span> | 174 | ····<span·class="n">bbox_transform</span><span·class="o">=</span><span·class="n">ax</span><span·class="o">.</span><span·class="n">transAxes</span><span·class="p">,</span> |
175 | <span·class="p">)</span> | 175 | <span·class="p">)</span> |
176 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">show</span><span·class="p">()</span> | 176 | <span·class="n">plt</span><span·class="o">.</span><span·class="n">show</span><span·class="p">()</span> |
177 | </pre></div> | 177 | </pre></div> |
178 | </div> | 178 | </div> |
179 | <img·src="../_images/sphx_glr_visualize_communities_001.png"·srcset="../_images/sphx_glr_visualize_communities_001.png"·alt="visualize·communities"·class·=·"sphx-glr-single-img"/><p>For·an·example·on·how·to·generate·the·cluster·graph·from·a·vertex·cluster, | 179 | <img·src="../_images/sphx_glr_visualize_communities_001.png"·srcset="../_images/sphx_glr_visualize_communities_001.png"·alt="visualize·communities"·class·=·"sphx-glr-single-img"/><p>For·an·example·on·how·to·generate·the·cluster·graph·from·a·vertex·cluster, |
180 | check·out·<a·class="reference·internal"·href="cluster_contraction.html#tutorials-cluster-graph"><span·class="std·std-ref">Generating·Cluster·Graphs</span></a>.</p> | 180 | check·out·<a·class="reference·internal"·href="cluster_contraction.html#tutorials-cluster-graph"><span·class="std·std-ref">Generating·Cluster·Graphs</span></a>.</p> |
181 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes· | 181 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(0·minutes·2.790·seconds)</p> |
182 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-tutorials-visualize-communities-py"> | 182 | <div·class="sphx-glr-footer·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-tutorials-visualize-communities-py"> |
183 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> | 183 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> |
184 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/f082956eca17112cb706ac88c24e553d/visualize_communities.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">visualize_communities.ipynb</span></code></a></p> | 184 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/f082956eca17112cb706ac88c24e553d/visualize_communities.ipynb"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Jupyter</span>·<span·class="pre">notebook:</span>·<span·class="pre">visualize_communities.ipynb</span></code></a></p> |
185 | </div> | 185 | </div> |
186 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> | 186 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> |
187 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/a8f8ff572a8d1db2c2c0c6b094e4dcbe/visualize_communities.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">visualize_communities.py</span></code></a></p> | 187 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/a8f8ff572a8d1db2c2c0c6b094e4dcbe/visualize_communities.py"><code·class="xref·download·docutils·literal·notranslate"><span·class="pre">Download</span>·<span·class="pre">Python</span>·<span·class="pre">source</span>·<span·class="pre">code:</span>·<span·class="pre">visualize_communities.py</span></code></a></p> |
188 | </div> | 188 | </div> |
Offset 88, 15 lines modified | Offset 88, 15 lines modified | ||
88 | ····bbox_to_anchor=(0,·1.0), | 88 | ····bbox_to_anchor=(0,·1.0), |
89 | ····bbox_transform=ax.transAxes, | 89 | ····bbox_transform=ax.transAxes, |
90 | ) | 90 | ) |
91 | plt.show() | 91 | plt.show() |
92 | [visualize·communities] | 92 | [visualize·communities] |
93 | For·an·example·on·how·to·generate·the·cluster·graph·from·a·vertex·cluster, | 93 | For·an·example·on·how·to·generate·the·cluster·graph·from·a·vertex·cluster, |
94 | check·out·_\x8G_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8i_\x8n_\x8g_\x8·_\x8C_\x8l_\x8u_\x8s_\x8t_\x8e_\x8r_\x8·_\x8G_\x8r_\x8a_\x8p_\x8h_\x8s. | 94 | check·out·_\x8G_\x8e_\x8n_\x8e_\x8r_\x8a_\x8t_\x8i_\x8n_\x8g_\x8·_\x8C_\x8l_\x8u_\x8s_\x8t_\x8e_\x8r_\x8·_\x8G_\x8r_\x8a_\x8p_\x8h_\x8s. |
95 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes· | 95 | T\x8To\x8ot\x8ta\x8al\x8l·r\x8ru\x8un\x8nn\x8ni\x8in\x8ng\x8g·t\x8ti\x8im\x8me\x8e·o\x8of\x8f·t\x8th\x8he\x8e·s\x8sc\x8cr\x8ri\x8ip\x8pt\x8t:\x8:·(0·minutes·2.790·seconds) |
96 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8J_\x8u_\x8p_\x8y_\x8t_\x8e_\x8r_\x8·_\x8n_\x8o_\x8t_\x8e_\x8b_\x8o_\x8o_\x8k_\x8:_\x8·_\x8v_\x8i_\x8s_\x8u_\x8a_\x8l_\x8i_\x8z_\x8e_\x8__\x8c_\x8o_\x8m_\x8m_\x8u_\x8n_\x8i_\x8t_\x8i_\x8e_\x8s_\x8._\x8i_\x8p_\x8y_\x8n_\x8b | 96 | _\x8D_\x8o_\x8w_\x8n_\x8l_\x8o_\x8a_\x8d_\x8·_\x8J_\x8u_\x8p_\x8y_\x8t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_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x_\x8-_\x8G_\x8a_\x8l_\x8l_\x8e_\x8r_\x8y |
99 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t | 99 | _\x8P_\x8r_\x8e_\x8v_\x8i_\x8o_\x8u_\x8s·_\x8N_\x8e_\x8x_\x8t |
100 | =============================================================================== | 100 | =============================================================================== |
101 | ©·Copyright·2010-2024,·The·igraph·development·team. | 101 | ©·Copyright·2010-2024,·The·igraph·development·team. |
102 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. | 102 | Built·with·_\x8S_\x8p_\x8h_\x8i_\x8n_\x8x·using·a·_\x8t_\x8h_\x8e_\x8m_\x8e·provided·by·_\x8R_\x8e_\x8a_\x8d_\x8·_\x8t_\x8h_\x8e_\x8·_\x8D_\x8o_\x8c_\x8s. |
Offset 291, 15 lines modified | Offset 291, 15 lines modified | ||
291 | 10 | 291 | 10 |
292 | Chapter·2.·Documentation | 292 | Chapter·2.·Documentation |
293 | \xcigraph·Documentation,·Release·0.11.8 | 293 | \xcigraph·Documentation,·Release·0.11.8 |
294 | Total·running·time·of·the·script:·(0·minutes·2. | 294 | Total·running·time·of·the·script:·(0·minutes·2.213·seconds) |
295 | 2.2.2·Connected·Components | 295 | 2.2.2·Connected·Components |
296 | This·example·demonstrates·how·to·visualise·the·connected·components·in·a·graph·using·igraph.GraphBase. | 296 | This·example·demonstrates·how·to·visualise·the·connected·components·in·a·graph·using·igraph.GraphBase. |
297 | connected_components(). | 297 | connected_components(). |
298 | import·igraph·as·ig | 298 | import·igraph·as·ig |
299 | import·matplotlib.pyplot·as·plt | 299 | import·matplotlib.pyplot·as·plt |
300 | import·random | 300 | import·random |
Offset 327, 15 lines modified | Offset 327, 15 lines modified | ||
327 | edge_width=0.7 | 327 | edge_width=0.7 |
328 | ) | 328 | ) |
329 | plt.show() | 329 | plt.show() |
330 | Note | 330 | Note |
331 | We·use·the·integers·from·0·to·200·instead·of·0·to·255·in·our·vertex·colors,·since·255·in·the·igraph.drawing. | 331 | We·use·the·integers·from·0·to·200·instead·of·0·to·255·in·our·vertex·colors,·since·255·in·the·igraph.drawing. |
332 | colors.RainbowPalette·corresponds·to·looping·back·to·red.·This·gives·us·nicely·distinct·hues. | 332 | colors.RainbowPalette·corresponds·to·looping·back·to·red.·This·gives·us·nicely·distinct·hues. |
333 | Total·running·time·of·the·script:·(0·minutes·3. | 333 | Total·running·time·of·the·script:·(0·minutes·3.515·seconds) |
334 | 12 | 334 | 12 |
335 | Chapter·2.·Documentation | 335 | Chapter·2.·Documentation |
336 | \xcigraph·Documentation,·Release·0.11.8 | 336 | \xcigraph·Documentation,·Release·0.11.8 |
Offset 375, 15 lines modified | Offset 375, 15 lines modified | ||
375 | The·full·list·of·config·settings·can·be·found·at·igraph.Configuration. | 375 | The·full·list·of·config·settings·can·be·found·at·igraph.Configuration. |
376 | Note | 376 | Note |
377 | You·can·have·multiple·config·files:·specify·each·location·via·ig.config.save("./path/to/config/file"). | 377 | You·can·have·multiple·config·files:·specify·each·location·via·ig.config.save("./path/to/config/file"). |
378 | To·load·a·specific·config,·import·igraph·and·then·call·ig.config.load("./path/to/config/file") | 378 | To·load·a·specific·config,·import·igraph·and·then·call·ig.config.load("./path/to/config/file") |
379 | Note | 379 | Note |
380 | To·use·a·consistent·style·between·individual·plots·(e.g.·vertex·sizes,·colors,·layout·etc.)·check·out·Visual·styling. | 380 | To·use·a·consistent·style·between·individual·plots·(e.g.·vertex·sizes,·colors,·layout·etc.)·check·out·Visual·styling. |
381 | Total·running·time·of·the·script:·(0·minutes· | 381 | Total·running·time·of·the·script:·(0·minutes·7.854·seconds) |
382 | 14 | 382 | 14 |
383 | Chapter·2.·Documentation | 383 | Chapter·2.·Documentation |
384 | \xcigraph·Documentation,·Release·0.11.8 | 384 | \xcigraph·Documentation,·Release·0.11.8 |
Offset 415, 15 lines modified | Offset 415, 15 lines modified | ||
415 | 2.2.·Gallery·of·Examples | 415 | 2.2.·Gallery·of·Examples |
416 | 15 | 416 | 15 |
417 | \xcigraph·Documentation,·Release·0.11.8 | 417 | \xcigraph·Documentation,·Release·0.11.8 |
418 | Total·running·time·of·the·script:·(0·minutes·0.7 | 418 | Total·running·time·of·the·script:·(0·minutes·0.796·seconds) |
419 | 2.2.5·Maximum·Flow | 419 | 2.2.5·Maximum·Flow |
420 | This·example·shows·how·to·construct·a·max·flow·on·a·directed·graph·with·edge·capacities·using·igraph.Graph. | 420 | This·example·shows·how·to·construct·a·max·flow·on·a·directed·graph·with·edge·capacities·using·igraph.Graph. |
421 | maxflow(). | 421 | maxflow(). |
422 | import·igraph·as·ig | 422 | import·igraph·as·ig |
423 | import·matplotlib.pyplot·as·plt | 423 | import·matplotlib.pyplot·as·plt |
424 | First,·we·generate·a·graph·and·assign·a·“capacity”·to·each·edge: | 424 | First,·we·generate·a·graph·and·assign·a·“capacity”·to·each·edge: |
Offset 459, 15 lines modified | Offset 459, 15 lines modified | ||
459 | target=ax, | 459 | target=ax, |
460 | layout="circle", | 460 | layout="circle", |
461 | vertex_label=range(g.vcount()), | 461 | vertex_label=range(g.vcount()), |
462 | vertex_color="lightblue" | 462 | vertex_color="lightblue" |
463 | ) | 463 | ) |
464 | plt.show() | 464 | plt.show() |
465 | Total·running·time·of·the·script:·(0·minutes·0. | 465 | Total·running·time·of·the·script:·(0·minutes·0.569·seconds) |
466 | 2.2.·Gallery·of·Examples | 466 | 2.2.·Gallery·of·Examples |
467 | 17 | 467 | 17 |
468 | \xcigraph·Documentation,·Release·0.11.8 | 468 | \xcigraph·Documentation,·Release·0.11.8 |
Offset 507, 15 lines modified | Offset 507, 15 lines modified | ||
507 | 18 | 507 | 18 |
508 | Chapter·2.·Documentation | 508 | Chapter·2.·Documentation |
509 | \xcigraph·Documentation,·Release·0.11.8 | 509 | \xcigraph·Documentation,·Release·0.11.8 |
510 | Total·running·time·of·the·script:·(0·minutes·2. | 510 | Total·running·time·of·the·script:·(0·minutes·2.187·seconds) |
511 | 2.2.7·Spanning·Trees | 511 | 2.2.7·Spanning·Trees |
512 | This·example·shows·how·to·generate·a·spanning·tree·from·an·input·graph·using·igraph.Graph.spanning_tree(). | 512 | This·example·shows·how·to·generate·a·spanning·tree·from·an·input·graph·using·igraph.Graph.spanning_tree(). |
513 | For·the·related·idea·of·finding·a·minimum·spanning·tree,·see·Minimum·Spanning·Trees. | 513 | For·the·related·idea·of·finding·a·minimum·spanning·tree,·see·Minimum·Spanning·Trees. |
514 | import·igraph·as·ig | 514 | import·igraph·as·ig |
515 | import·matplotlib.pyplot·as·plt | 515 | import·matplotlib.pyplot·as·plt |
516 | import·random | 516 | import·random |
Offset 565, 15 lines modified | Offset 565, 15 lines modified | ||
565 | Chapter·2.·Documentation | 565 | Chapter·2.·Documentation |
566 | \xcigraph·Documentation,·Release·0.11.8 | 566 | \xcigraph·Documentation,·Release·0.11.8 |
567 | Note | 567 | Note |
568 | To·invert·the·y·axis·such·that·the·root·of·the·tree·is·on·top·of·the·plot,·you·can·call·ax.invert_yaxis()·before·plt.show(). | 568 | To·invert·the·y·axis·such·that·the·root·of·the·tree·is·on·top·of·the·plot,·you·can·call·ax.invert_yaxis()·before·plt.show(). |
569 | Total·running·time·of·the·script:·(0·minutes·2. | 569 | Total·running·time·of·the·script:·(0·minutes·2.957·seconds) |
570 | 2.2.8·Complement | 570 | 2.2.8·Complement |
571 | This·example·shows·how·to·generate·the·complement·graph·of·a·graph·(sometimes·known·as·the·anti-graph)·using | 571 | This·example·shows·how·to·generate·the·complement·graph·of·a·graph·(sometimes·known·as·the·anti-graph)·using |
572 | igraph.GraphBase.complementer(). | 572 | igraph.GraphBase.complementer(). |
573 | import·igraph·as·ig | 573 | import·igraph·as·ig |
574 | import·matplotlib.pyplot·as·plt | 574 | import·matplotlib.pyplot·as·plt |
575 | import·random | 575 | import·random |
Offset 633, 15 lines modified | Offset 633, 15 lines modified | ||
633 | 22 | 633 | 22 |
634 | Chapter·2.·Documentation | 634 | Chapter·2.·Documentation |
635 | \xcigraph·Documentation,·Release·0.11.8 | 635 | \xcigraph·Documentation,·Release·0.11.8 |
636 | Total·running·time·of·the·script:·(0·minutes· | 636 | Total·running·time·of·the·script:·(0·minutes·2.872·seconds) |
637 | 2.2.9·Maximum·Bipartite·Matching | 637 | 2.2.9·Maximum·Bipartite·Matching |
638 | This·example·demonstrates·an·efficient·way·to·find·and·visualise·a·maximum·biparite·matching·using·igraph.Graph. | 638 | This·example·demonstrates·an·efficient·way·to·find·and·visualise·a·maximum·biparite·matching·using·igraph.Graph. |
639 | maximum_bipartite_matching(). | 639 | maximum_bipartite_matching(). |
640 | import·igraph·as·ig | 640 | import·igraph·as·ig |
641 | import·matplotlib.pyplot·as·plt | 641 | import·matplotlib.pyplot·as·plt |
642 | First,·we·construct·a·bipartite·graph,·assigning: | 642 | First,·we·construct·a·bipartite·graph,·assigning: |
Max diff block lines reached; 10452/14420 bytes (72.48%) of diff not shown. |