Offset 1, 4 lines modified | Offset 1, 4 lines modified | ||
1 | ·54 | 1 | ·54c147425c7b3aa39a9911bce4efaa51·533216·doc·optional·python-pygraphviz-doc_1.7-2_all.deb |
2 | ·17276185015f3251a3b33ebe788b1783·144552·debug·optional·python3-pygraphviz-dbg_1.7-2_i386.deb | 2 | ·17276185015f3251a3b33ebe788b1783·144552·debug·optional·python3-pygraphviz-dbg_1.7-2_i386.deb |
3 | ·4f80e84e1576f739eb182c9537f2d7a1·81144·python·optional·python3-pygraphviz_1.7-2_i386.deb | 3 | ·4f80e84e1576f739eb182c9537f2d7a1·81144·python·optional·python3-pygraphviz_1.7-2_i386.deb |
Offset 1, 3 lines modified | Offset 1, 3 lines modified | ||
1 | -rw-r--r--···0········0········0········4·2021-02-16·00:05:44.000000·debian-binary | 1 | -rw-r--r--···0········0········0········4·2021-02-16·00:05:44.000000·debian-binary |
2 | -rw-r--r--···0········0········0·····28 | 2 | -rw-r--r--···0········0········0·····2876·2021-02-16·00:05:44.000000·control.tar.xz |
3 | -rw-r--r--···0········0········0···5301 | 3 | -rw-r--r--···0········0········0···530148·2021-02-16·00:05:44.000000·data.tar.xz |
Offset 233, 15 lines modified | Offset 233, 15 lines modified | ||
233 | <span·class="c1">#·adjust·a·graph·parameter</span> | 233 | <span·class="c1">#·adjust·a·graph·parameter</span> |
234 | <span·class="n">A</span><span·class="o">.</span><span·class="n">graph_attr</span><span·class="p">[</span><span·class="s2">"epsilon"</span><span·class="p">]</span>·<span·class="o">=</span>·<span·class="s2">"0.001"</span> | 234 | <span·class="n">A</span><span·class="o">.</span><span·class="n">graph_attr</span><span·class="p">[</span><span·class="s2">"epsilon"</span><span·class="p">]</span>·<span·class="o">=</span>·<span·class="s2">"0.001"</span> |
235 | <span·class="nb">print</span><span·class="p">(</span><span·class="n">A</span><span·class="o">.</span><span·class="n">string</span><span·class="p">())</span>··<span·class="c1">#·print·dot·file·to·standard·output</span> | 235 | <span·class="nb">print</span><span·class="p">(</span><span·class="n">A</span><span·class="o">.</span><span·class="n">string</span><span·class="p">())</span>··<span·class="c1">#·print·dot·file·to·standard·output</span> |
236 | <span·class="n">A</span><span·class="o">.</span><span·class="n">layout</span><span·class="p">(</span><span·class="s2">"dot"</span><span·class="p">)</span>··<span·class="c1">#·layout·with·dot</span> | 236 | <span·class="n">A</span><span·class="o">.</span><span·class="n">layout</span><span·class="p">(</span><span·class="s2">"dot"</span><span·class="p">)</span>··<span·class="c1">#·layout·with·dot</span> |
237 | <span·class="n">A</span><span·class="o">.</span><span·class="n">draw</span><span·class="p">(</span><span·class="s2">"foo.png"</span><span·class="p">)</span>··<span·class="c1">#·write·to·file</span> | 237 | <span·class="n">A</span><span·class="o">.</span><span·class="n">draw</span><span·class="p">(</span><span·class="s2">"foo.png"</span><span·class="p">)</span>··<span·class="c1">#·write·to·file</span> |
238 | </pre></div> | 238 | </pre></div> |
239 | </div> | 239 | </div> |
240 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(·0·minutes··0.0 | 240 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(·0·minutes··0.062·seconds)</p> |
241 | <div·class="sphx-glr-footer·class·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-plot-attributes-py"> | 241 | <div·class="sphx-glr-footer·class·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-plot-attributes-py"> |
242 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> | 242 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> |
243 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/91118c7125611ab6ba68163816efff2f/plot_attributes.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">plot_attributes.py</span></code></a></p> | 243 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/91118c7125611ab6ba68163816efff2f/plot_attributes.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">plot_attributes.py</span></code></a></p> |
244 | </div> | 244 | </div> |
245 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> | 245 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> |
246 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/8d1b42cb8500b07a1ffe1d61d124333a/plot_attributes.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">plot_attributes.ipynb</span></code></a></p> | 246 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/8d1b42cb8500b07a1ffe1d61d124333a/plot_attributes.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">plot_attributes.ipynb</span></code></a></p> |
247 | </div> | 247 | </div> |
Offset 71, 15 lines modified | Offset 71, 15 lines modified | ||
71 | A.add_edge(3,·6) | 71 | A.add_edge(3,·6) |
72 | A.add_edge(4,·6) | 72 | A.add_edge(4,·6) |
73 | #·adjust·a·graph·parameter | 73 | #·adjust·a·graph·parameter |
74 | A.graph_attr["epsilon"]·=·"0.001" | 74 | A.graph_attr["epsilon"]·=·"0.001" |
75 | print(A.string())··#·print·dot·file·to·standard·output | 75 | print(A.string())··#·print·dot·file·to·standard·output |
76 | A.layout("dot")··#·layout·with·dot | 76 | A.layout("dot")··#·layout·with·dot |
77 | A.draw("foo.png")··#·write·to·file | 77 | A.draw("foo.png")··#·write·to·file |
78 | Total·running·time·of·the·script:·(·0·minutes·0.0 | 78 | Total·running·time·of·the·script:·(·0·minutes·0.062·seconds) |
79 | Download_Python_source_code:_plot_attributes.py | 79 | Download_Python_source_code:_plot_attributes.py |
80 | Download_Jupyter_notebook:_plot_attributes.ipynb | 80 | Download_Jupyter_notebook:_plot_attributes.ipynb |
81 | Gallery_generated_by_Sphinx-Gallery | 81 | Gallery_generated_by_Sphinx-Gallery |
82 | Next·Previous | 82 | Next·Previous |
83 | =============================================================================== | 83 | =============================================================================== |
84 | ©·Copyright·2004-2021,·PyGraphviz·Developers.··Last·updated·on·Feb·16,·2021. | 84 | ©·Copyright·2004-2021,·PyGraphviz·Developers.··Last·updated·on·Feb·16,·2021. |
85 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 85 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 295, 15 lines modified | Offset 295, 15 lines modified | ||
295 | ····<span·class="n">G</span><span·class="o">.</span><span·class="n">write</span><span·class="p">(</span><span·class="s2">"miles.dot"</span><span·class="p">)</span> | 295 | ····<span·class="n">G</span><span·class="o">.</span><span·class="n">write</span><span·class="p">(</span><span·class="s2">"miles.dot"</span><span·class="p">)</span> |
296 | ····<span·class="nb">print</span><span·class="p">(</span><span·class="s2">"Wrote·miles.dot"</span><span·class="p">)</span> | 296 | ····<span·class="nb">print</span><span·class="p">(</span><span·class="s2">"Wrote·miles.dot"</span><span·class="p">)</span> |
297 | ····<span·class="n">G</span><span·class="o">.</span><span·class="n">draw</span><span·class="p">(</span><span·class="s2">"miles.png"</span><span·class="p">,</span>·<span·class="n">prog</span><span·class="o">=</span><span·class="s2">"neato"</span><span·class="p">,</span>·<span·class="n">args</span><span·class="o">=</span><span·class="s2">"-n2"</span><span·class="p">)</span> | 297 | ····<span·class="n">G</span><span·class="o">.</span><span·class="n">draw</span><span·class="p">(</span><span·class="s2">"miles.png"</span><span·class="p">,</span>·<span·class="n">prog</span><span·class="o">=</span><span·class="s2">"neato"</span><span·class="p">,</span>·<span·class="n">args</span><span·class="o">=</span><span·class="s2">"-n2"</span><span·class="p">)</span> |
298 | ····<span·class="nb">print</span><span·class="p">(</span><span·class="s2">"Wrote·miles.png"</span><span·class="p">)</span> | 298 | ····<span·class="nb">print</span><span·class="p">(</span><span·class="s2">"Wrote·miles.png"</span><span·class="p">)</span> |
299 | </pre></div> | 299 | </pre></div> |
300 | </div> | 300 | </div> |
301 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(·0·minutes··0.1 | 301 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(·0·minutes··0.190·seconds)</p> |
302 | <div·class="sphx-glr-footer·class·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-plot-miles-py"> | 302 | <div·class="sphx-glr-footer·class·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-plot-miles-py"> |
303 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> | 303 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> |
304 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/3184e92a37f50733f4d8eda3ab5447d1/plot_miles.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">plot_miles.py</span></code></a></p> | 304 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/3184e92a37f50733f4d8eda3ab5447d1/plot_miles.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">plot_miles.py</span></code></a></p> |
305 | </div> | 305 | </div> |
306 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> | 306 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> |
307 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/ff67e8e79bb0adcdc076fc61d5a9e5a0/plot_miles.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">plot_miles.ipynb</span></code></a></p> | 307 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/ff67e8e79bb0adcdc076fc61d5a9e5a0/plot_miles.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">plot_miles.ipynb</span></code></a></p> |
308 | </div> | 308 | </div> |
Offset 125, 15 lines modified | Offset 125, 15 lines modified | ||
125 | ····G·=·miles_graph() | 125 | ····G·=·miles_graph() |
126 | ····print("Loaded·miles_dat.txt·containing·128·cities.") | 126 | ····print("Loaded·miles_dat.txt·containing·128·cities.") |
127 | ····G.write("miles.dot") | 127 | ····G.write("miles.dot") |
128 | ····print("Wrote·miles.dot") | 128 | ····print("Wrote·miles.dot") |
129 | ····G.draw("miles.png",·prog="neato",·args="-n2") | 129 | ····G.draw("miles.png",·prog="neato",·args="-n2") |
130 | ····print("Wrote·miles.png") | 130 | ····print("Wrote·miles.png") |
131 | Total·running·time·of·the·script:·(·0·minutes·0.1 | 131 | Total·running·time·of·the·script:·(·0·minutes·0.190·seconds) |
132 | Download_Python_source_code:_plot_miles.py | 132 | Download_Python_source_code:_plot_miles.py |
133 | Download_Jupyter_notebook:_plot_miles.ipynb | 133 | Download_Jupyter_notebook:_plot_miles.ipynb |
134 | Gallery_generated_by_Sphinx-Gallery | 134 | Gallery_generated_by_Sphinx-Gallery |
135 | Next·Previous | 135 | Next·Previous |
136 | =============================================================================== | 136 | =============================================================================== |
137 | ©·Copyright·2004-2021,·PyGraphviz·Developers.··Last·updated·on·Feb·16,·2021. | 137 | ©·Copyright·2004-2021,·PyGraphviz·Developers.··Last·updated·on·Feb·16,·2021. |
138 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 138 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 225, 15 lines modified | Offset 225, 15 lines modified | ||
225 | <span·class="n">A</span><span·class="o">.</span><span·class="n">write</span><span·class="p">(</span><span·class="s2">"simple.dot"</span><span·class="p">)</span>··<span·class="c1">#·write·to·simple.dot</span> | 225 | <span·class="n">A</span><span·class="o">.</span><span·class="n">write</span><span·class="p">(</span><span·class="s2">"simple.dot"</span><span·class="p">)</span>··<span·class="c1">#·write·to·simple.dot</span> |
226 | <span·class="n">B</span>·<span·class="o">=</span>·<span·class="n">pgv</span><span·class="o">.</span><span·class="n">AGraph</span><span·class="p">(</span><span·class="s2">"simple.dot"</span><span·class="p">)</span>··<span·class="c1">#·create·a·new·graph·from·file</span> | 226 | <span·class="n">B</span>·<span·class="o">=</span>·<span·class="n">pgv</span><span·class="o">.</span><span·class="n">AGraph</span><span·class="p">(</span><span·class="s2">"simple.dot"</span><span·class="p">)</span>··<span·class="c1">#·create·a·new·graph·from·file</span> |
227 | <span·class="n">B</span><span·class="o">.</span><span·class="n">layout</span><span·class="p">()</span>··<span·class="c1">#·layout·with·default·(neato)</span> | 227 | <span·class="n">B</span><span·class="o">.</span><span·class="n">layout</span><span·class="p">()</span>··<span·class="c1">#·layout·with·default·(neato)</span> |
228 | <span·class="n">B</span><span·class="o">.</span><span·class="n">draw</span><span·class="p">(</span><span·class="s2">"simple.png"</span><span·class="p">)</span>··<span·class="c1">#·draw·png</span> | 228 | <span·class="n">B</span><span·class="o">.</span><span·class="n">draw</span><span·class="p">(</span><span·class="s2">"simple.png"</span><span·class="p">)</span>··<span·class="c1">#·draw·png</span> |
229 | </pre></div> | 229 | </pre></div> |
230 | </div> | 230 | </div> |
231 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(·0·minutes··0.0 | 231 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(·0·minutes··0.053·seconds)</p> |
232 | <div·class="sphx-glr-footer·class·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-plot-simple-py"> | 232 | <div·class="sphx-glr-footer·class·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-plot-simple-py"> |
233 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> | 233 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> |
234 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/db37ce3813fe5784ce411498ffc37c3d/plot_simple.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">plot_simple.py</span></code></a></p> | 234 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/db37ce3813fe5784ce411498ffc37c3d/plot_simple.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">plot_simple.py</span></code></a></p> |
235 | </div> | 235 | </div> |
236 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> | 236 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> |
237 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/51891f3e62ffa1afbb2166aec79de121/plot_simple.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">plot_simple.ipynb</span></code></a></p> | 237 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/51891f3e62ffa1afbb2166aec79de121/plot_simple.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">plot_simple.ipynb</span></code></a></p> |
238 | </div> | 238 | </div> |
Offset 63, 15 lines modified | Offset 63, 15 lines modified | ||
63 | print(A.string())··#·print·to·screen | 63 | print(A.string())··#·print·to·screen |
64 | A.write("simple.dot")··#·write·to·simple.dot | 64 | A.write("simple.dot")··#·write·to·simple.dot |
65 | B·=·pgv.AGraph("simple.dot")··#·create·a·new·graph·from·file | 65 | B·=·pgv.AGraph("simple.dot")··#·create·a·new·graph·from·file |
66 | B.layout()··#·layout·with·default·(neato) | 66 | B.layout()··#·layout·with·default·(neato) |
67 | B.draw("simple.png")··#·draw·png | 67 | B.draw("simple.png")··#·draw·png |
68 | Total·running·time·of·the·script:·(·0·minutes·0.0 | 68 | Total·running·time·of·the·script:·(·0·minutes·0.053·seconds) |
69 | Download_Python_source_code:_plot_simple.py | 69 | Download_Python_source_code:_plot_simple.py |
70 | Download_Jupyter_notebook:_plot_simple.ipynb | 70 | Download_Jupyter_notebook:_plot_simple.ipynb |
71 | Gallery_generated_by_Sphinx-Gallery | 71 | Gallery_generated_by_Sphinx-Gallery |
72 | Next·Previous | 72 | Next·Previous |
73 | =============================================================================== | 73 | =============================================================================== |
74 | ©·Copyright·2004-2021,·PyGraphviz·Developers.··Last·updated·on·Feb·16,·2021. | 74 | ©·Copyright·2004-2021,·PyGraphviz·Developers.··Last·updated·on·Feb·16,·2021. |
75 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 75 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 294, 15 lines modified | Offset 294, 15 lines modified | ||
294 | ····<span·class="n">n</span><span·class="o">.</span><span·class="n">attr</span><span·class="p">[</span><span·class="s2">"width"</span><span·class="p">]</span>·<span·class="o">=</span>·<span·class="s2">"</span><span·class="si">%s</span><span·class="s2">"</span>·<span·class="o">%</span>·<span·class="p">(</span><span·class="n">i</span>·<span·class="o">/</span>·<span·class="mf">16.0</span>·<span·class="o">+</span>·<span·class="mf">0.5</span><span·class="p">)</span> | 294 | ····<span·class="n">n</span><span·class="o">.</span><span·class="n">attr</span><span·class="p">[</span><span·class="s2">"width"</span><span·class="p">]</span>·<span·class="o">=</span>·<span·class="s2">"</span><span·class="si">%s</span><span·class="s2">"</span>·<span·class="o">%</span>·<span·class="p">(</span><span·class="n">i</span>·<span·class="o">/</span>·<span·class="mf">16.0</span>·<span·class="o">+</span>·<span·class="mf">0.5</span><span·class="p">)</span> |
295 | <span·class="nb">print</span><span·class="p">(</span><span·class="n">A</span><span·class="o">.</span><span·class="n">string</span><span·class="p">())</span>··<span·class="c1">#·print·to·screen</span> | 295 | <span·class="nb">print</span><span·class="p">(</span><span·class="n">A</span><span·class="o">.</span><span·class="n">string</span><span·class="p">())</span>··<span·class="c1">#·print·to·screen</span> |
296 | <span·class="n">A</span><span·class="o">.</span><span·class="n">write</span><span·class="p">(</span><span·class="s2">"star.dot"</span><span·class="p">)</span>··<span·class="c1">#·write·to·simple.dot</span> | 296 | <span·class="n">A</span><span·class="o">.</span><span·class="n">write</span><span·class="p">(</span><span·class="s2">"star.dot"</span><span·class="p">)</span>··<span·class="c1">#·write·to·simple.dot</span> |
297 | <span·class="n">A</span><span·class="o">.</span><span·class="n">draw</span><span·class="p">(</span><span·class="s2">"star.png"</span><span·class="p">,</span>·<span·class="n">prog</span><span·class="o">=</span><span·class="s2">"circo"</span><span·class="p">)</span>··<span·class="c1">#·draw·to·png·using·circo·layout</span> | 297 | <span·class="n">A</span><span·class="o">.</span><span·class="n">draw</span><span·class="p">(</span><span·class="s2">"star.png"</span><span·class="p">,</span>·<span·class="n">prog</span><span·class="o">=</span><span·class="s2">"circo"</span><span·class="p">)</span>··<span·class="c1">#·draw·to·png·using·circo·layout</span> |
298 | </pre></div> | 298 | </pre></div> |
299 | </div> | 299 | </div> |
300 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(·0·minutes··0.1 | 300 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(·0·minutes··0.183·seconds)</p> |
301 | <div·class="sphx-glr-footer·class·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-plot-star-py"> | 301 | <div·class="sphx-glr-footer·class·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-plot-star-py"> |
302 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> | 302 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> |
303 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/3eec82731466697b60c961133f801483/plot_star.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">plot_star.py</span></code></a></p> | 303 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/3eec82731466697b60c961133f801483/plot_star.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">plot_star.py</span></code></a></p> |
304 | </div> | 304 | </div> |
305 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> | 305 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> |
306 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/4e83e39a7d255093d0acd5faad5cd483/plot_star.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">plot_star.ipynb</span></code></a></p> | 306 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/4e83e39a7d255093d0acd5faad5cd483/plot_star.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">plot_star.ipynb</span></code></a></p> |
307 | </div> | 307 | </div> |
Offset 132, 15 lines modified | Offset 132, 15 lines modified | ||
132 | ····n.attr["fillcolor"]·=·"#%2x0000"·%·(i·*·16) | 132 | ····n.attr["fillcolor"]·=·"#%2x0000"·%·(i·*·16) |
133 | ····n.attr["height"]·=·"%s"·%·(i·/·16.0·+·0.5) | 133 | ····n.attr["height"]·=·"%s"·%·(i·/·16.0·+·0.5) |
134 | ····n.attr["width"]·=·"%s"·%·(i·/·16.0·+·0.5) | 134 | ····n.attr["width"]·=·"%s"·%·(i·/·16.0·+·0.5) |
135 | print(A.string())··#·print·to·screen | 135 | print(A.string())··#·print·to·screen |
136 | A.write("star.dot")··#·write·to·simple.dot | 136 | A.write("star.dot")··#·write·to·simple.dot |
137 | A.draw("star.png",·prog="circo")··#·draw·to·png·using·circo·layout | 137 | A.draw("star.png",·prog="circo")··#·draw·to·png·using·circo·layout |
138 | Total·running·time·of·the·script:·(·0·minutes·0.1 | 138 | Total·running·time·of·the·script:·(·0·minutes·0.183·seconds) |
139 | Download_Python_source_code:_plot_star.py | 139 | Download_Python_source_code:_plot_star.py |
140 | Download_Jupyter_notebook:_plot_star.ipynb | 140 | Download_Jupyter_notebook:_plot_star.ipynb |
141 | Gallery_generated_by_Sphinx-Gallery | 141 | Gallery_generated_by_Sphinx-Gallery |
142 | Next·Previous | 142 | Next·Previous |
143 | =============================================================================== | 143 | =============================================================================== |
144 | ©·Copyright·2004-2021,·PyGraphviz·Developers.··Last·updated·on·Feb·16,·2021. | 144 | ©·Copyright·2004-2021,·PyGraphviz·Developers.··Last·updated·on·Feb·16,·2021. |
145 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 145 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 225, 15 lines modified | Offset 225, 15 lines modified | ||
225 | <span·class="c1">#·make·a·subgraph·with·rank='same'</span> | 225 | <span·class="c1">#·make·a·subgraph·with·rank='same'</span> |
226 | <span·class="n">B</span>·<span·class="o">=</span>·<span·class="n">A</span><span·class="o">.</span><span·class="n">add_subgraph</span><span·class="p">([</span><span·class="mi">4</span><span·class="p">,</span>·<span·class="mi">5</span><span·class="p">,</span>·<span·class="mi">6</span><span·class="p">],</span>·<span·class="n">name</span><span·class="o">=</span><span·class="s2">"s1"</span><span·class="p">,</span>·<span·class="n">rank</span><span·class="o">=</span><span·class="s2">"same"</span><span·class="p">)</span> | 226 | <span·class="n">B</span>·<span·class="o">=</span>·<span·class="n">A</span><span·class="o">.</span><span·class="n">add_subgraph</span><span·class="p">([</span><span·class="mi">4</span><span·class="p">,</span>·<span·class="mi">5</span><span·class="p">,</span>·<span·class="mi">6</span><span·class="p">],</span>·<span·class="n">name</span><span·class="o">=</span><span·class="s2">"s1"</span><span·class="p">,</span>·<span·class="n">rank</span><span·class="o">=</span><span·class="s2">"same"</span><span·class="p">)</span> |
227 | <span·class="n">B</span><span·class="o">.</span><span·class="n">graph_attr</span><span·class="p">[</span><span·class="s2">"rank"</span><span·class="p">]</span>·<span·class="o">=</span>·<span·class="s2">"same"</span> | 227 | <span·class="n">B</span><span·class="o">.</span><span·class="n">graph_attr</span><span·class="p">[</span><span·class="s2">"rank"</span><span·class="p">]</span>·<span·class="o">=</span>·<span·class="s2">"same"</span> |
228 | <span·class="nb">print</span><span·class="p">(</span><span·class="n">A</span><span·class="o">.</span><span·class="n">string</span><span·class="p">())</span>··<span·class="c1">#·print·dot·file·to·standard·output</span> | 228 | <span·class="nb">print</span><span·class="p">(</span><span·class="n">A</span><span·class="o">.</span><span·class="n">string</span><span·class="p">())</span>··<span·class="c1">#·print·dot·file·to·standard·output</span> |
229 | <span·class="n">A</span><span·class="o">.</span><span·class="n">draw</span><span·class="p">(</span><span·class="s2">"subgraph.png"</span><span·class="p">,</span>·<span·class="n">prog</span><span·class="o">=</span><span·class="s2">"neato"</span><span·class="p">)</span> | 229 | <span·class="n">A</span><span·class="o">.</span><span·class="n">draw</span><span·class="p">(</span><span·class="s2">"subgraph.png"</span><span·class="p">,</span>·<span·class="n">prog</span><span·class="o">=</span><span·class="s2">"neato"</span><span·class="p">)</span> |
230 | </pre></div> | 230 | </pre></div> |
231 | </div> | 231 | </div> |
232 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(·0·minutes··0.0 | 232 | <p·class="sphx-glr-timing"><strong>Total·running·time·of·the·script:</strong>·(·0·minutes··0.039·seconds)</p> |
233 | <div·class="sphx-glr-footer·class·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-plot-subgraph-py"> | 233 | <div·class="sphx-glr-footer·class·sphx-glr-footer-example·docutils·container"·id="sphx-glr-download-auto-examples-plot-subgraph-py"> |
234 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> | 234 | <div·class="sphx-glr-download·sphx-glr-download-python·docutils·container"> |
235 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/95d36c083063964dcaa01cfdd9cba2a4/plot_subgraph.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">plot_subgraph.py</span></code></a></p> | 235 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/95d36c083063964dcaa01cfdd9cba2a4/plot_subgraph.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">plot_subgraph.py</span></code></a></p> |
236 | </div> | 236 | </div> |
237 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> | 237 | <div·class="sphx-glr-download·sphx-glr-download-jupyter·docutils·container"> |
238 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/1046f06794863c5971e6de6c6cbc7461/plot_subgraph.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">plot_subgraph.ipynb</span></code></a></p> | 238 | <p><a·class="reference·download·internal"·download=""·href="../_downloads/1046f06794863c5971e6de6c6cbc7461/plot_subgraph.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">plot_subgraph.ipynb</span></code></a></p> |
239 | </div> | 239 | </div> |
Offset 63, 15 lines modified | Offset 63, 15 lines modified | ||
63 | A.add_edge(3,·6) | 63 | A.add_edge(3,·6) |
64 | A.add_edge(4,·6) | 64 | A.add_edge(4,·6) |
65 | #·make·a·subgraph·with·rank='same' | 65 | #·make·a·subgraph·with·rank='same' |
66 | B·=·A.add_subgraph([4,·5,·6],·name="s1",·rank="same") | 66 | B·=·A.add_subgraph([4,·5,·6],·name="s1",·rank="same") |
67 | B.graph_attr["rank"]·=·"same" | 67 | B.graph_attr["rank"]·=·"same" |
68 | print(A.string())··#·print·dot·file·to·standard·output | 68 | print(A.string())··#·print·dot·file·to·standard·output |
69 | A.draw("subgraph.png",·prog="neato") | 69 | A.draw("subgraph.png",·prog="neato") |
70 | Total·running·time·of·the·script:·(·0·minutes·0.0 | 70 | Total·running·time·of·the·script:·(·0·minutes·0.039·seconds) |
71 | Download_Python_source_code:_plot_subgraph.py | 71 | Download_Python_source_code:_plot_subgraph.py |
72 | Download_Jupyter_notebook:_plot_subgraph.ipynb | 72 | Download_Jupyter_notebook:_plot_subgraph.ipynb |
73 | Gallery_generated_by_Sphinx-Gallery | 73 | Gallery_generated_by_Sphinx-Gallery |
74 | Next·Previous | 74 | Next·Previous |
75 | =============================================================================== | 75 | =============================================================================== |
76 | ©·Copyright·2004-2021,·PyGraphviz·Developers.··Last·updated·on·Feb·16,·2021. | 76 | ©·Copyright·2004-2021,·PyGraphviz·Developers.··Last·updated·on·Feb·16,·2021. |
77 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. | 77 | Built·with·Sphinx·using·a·theme·provided·by·Read_the_Docs. |
Offset 170, 40 lines modified | Offset 170, 40 lines modified | ||
170 | ··<p>This·documents·the·development·version·of·PyGraphviz.·Documentation·for·the·current·release·can·be·found·<a·href="https://pygraphviz.github.io/documentation/stable/">here</a>.</p> | 170 | ··<p>This·documents·the·development·version·of·PyGraphviz.·Documentation·for·the·current·release·can·be·found·<a·href="https://pygraphviz.github.io/documentation/stable/">here</a>.</p> |
171 | </div> | 171 | </div> |
172 | ···· | 172 | ···· |
173 | ···········<div·itemprop="articleBody"> | 173 | ···········<div·itemprop="articleBody"> |
174 | ············ | 174 | ············ |
175 | ··<div·class="section"·id="computation-times"> | 175 | ··<div·class="section"·id="computation-times"> |
176 | <span·id="sphx-glr-auto-examples-sg-execution-times"></span><h1>Computation·times<a·class="headerlink"·href="#computation-times"·title="Permalink·to·this·headline">¶</a></h1> | 176 | <span·id="sphx-glr-auto-examples-sg-execution-times"></span><h1>Computation·times<a·class="headerlink"·href="#computation-times"·title="Permalink·to·this·headline">¶</a></h1> |
177 | <p><strong>00:00. | 177 | <p><strong>00:00.527</strong>·total·execution·time·for·<strong>auto_examples</strong>·files:</p> |
178 | <table·class="docutils·align-default"> | 178 | <table·class="docutils·align-default"> |
179 | <colgroup> | 179 | <colgroup> |
180 | <col·style="width:·80%"·/> | 180 | <col·style="width:·80%"·/> |
181 | <col·style="width:·12%"·/> | 181 | <col·style="width:·12%"·/> |
182 | <col·style="width:·9%"·/> | 182 | <col·style="width:·9%"·/> |
183 | </colgroup> | 183 | </colgroup> |
184 | <tbody> | 184 | <tbody> |
185 | <tr·class="row-odd"><td><p><a·class="reference·internal"·href="plot_miles.html#sphx-glr-auto-examples-plot-miles-py"><span·class="std·std-ref">Knuth·Miles</span></a>·(<code·class="docutils·literal·notranslate"><span·class="pre">plot_miles.py</span></code>)</p></td> | 185 | <tr·class="row-odd"><td><p><a·class="reference·internal"·href="plot_miles.html#sphx-glr-auto-examples-plot-miles-py"><span·class="std·std-ref">Knuth·Miles</span></a>·(<code·class="docutils·literal·notranslate"><span·class="pre">plot_miles.py</span></code>)</p></td> |
186 | <td><p>00:00.1 | 186 | <td><p>00:00.190</p></td> |
187 | <td><p>0.0·MB</p></td> | 187 | <td><p>0.0·MB</p></td> |
188 | </tr> | 188 | </tr> |
189 | <tr·class="row-even"><td><p><a·class="reference·internal"·href="plot_star.html#sphx-glr-auto-examples-plot-star-py"><span·class="std·std-ref">Star</span></a>·(<code·class="docutils·literal·notranslate"><span·class="pre">plot_star.py</span></code>)</p></td> | 189 | <tr·class="row-even"><td><p><a·class="reference·internal"·href="plot_star.html#sphx-glr-auto-examples-plot-star-py"><span·class="std·std-ref">Star</span></a>·(<code·class="docutils·literal·notranslate"><span·class="pre">plot_star.py</span></code>)</p></td> |
190 | <td><p>00:00.1 | 190 | <td><p>00:00.183</p></td> |
191 | <td><p>0.0·MB</p></td> | 191 | <td><p>0.0·MB</p></td> |
192 | </tr> | 192 | </tr> |
193 | <tr·class="row-odd"><td><p><a·class="reference·internal"·href="plot_attributes.html#sphx-glr-auto-examples-plot-attributes-py"><span·class="std·std-ref">Attributes</span></a>·(<code·class="docutils·literal·notranslate"><span·class="pre">plot_attributes.py</span></code>)</p></td> | 193 | <tr·class="row-odd"><td><p><a·class="reference·internal"·href="plot_attributes.html#sphx-glr-auto-examples-plot-attributes-py"><span·class="std·std-ref">Attributes</span></a>·(<code·class="docutils·literal·notranslate"><span·class="pre">plot_attributes.py</span></code>)</p></td> |
194 | <td><p>00:00.0 | 194 | <td><p>00:00.062</p></td> |
195 | <td><p>0.0·MB</p></td> | 195 | <td><p>0.0·MB</p></td> |
196 | </tr> | 196 | </tr> |
197 | <tr·class="row-even"><td><p><a·class="reference·internal"·href="plot_simple.html#sphx-glr-auto-examples-plot-simple-py"><span·class="std·std-ref">Basic</span></a>·(<code·class="docutils·literal·notranslate"><span·class="pre">plot_simple.py</span></code>)</p></td> | 197 | <tr·class="row-even"><td><p><a·class="reference·internal"·href="plot_simple.html#sphx-glr-auto-examples-plot-simple-py"><span·class="std·std-ref">Basic</span></a>·(<code·class="docutils·literal·notranslate"><span·class="pre">plot_simple.py</span></code>)</p></td> |
198 | <td><p>00:00.0 | 198 | <td><p>00:00.053</p></td> |
199 | <td><p>0.0·MB</p></td> | 199 | <td><p>0.0·MB</p></td> |
200 | </tr> | 200 | </tr> |
201 | <tr·class="row-odd"><td><p><a·class="reference·internal"·href="plot_subgraph.html#sphx-glr-auto-examples-plot-subgraph-py"><span·class="std·std-ref">Subgraph</span></a>·(<code·class="docutils·literal·notranslate"><span·class="pre">plot_subgraph.py</span></code>)</p></td> | 201 | <tr·class="row-odd"><td><p><a·class="reference·internal"·href="plot_subgraph.html#sphx-glr-auto-examples-plot-subgraph-py"><span·class="std·std-ref">Subgraph</span></a>·(<code·class="docutils·literal·notranslate"><span·class="pre">plot_subgraph.py</span></code>)</p></td> |
202 | <td><p>00:00.0 | 202 | <td><p>00:00.039</p></td> |
203 | <td><p>0.0·MB</p></td> | 203 | <td><p>0.0·MB</p></td> |
204 | </tr> | 204 | </tr> |
205 | </tbody> | 205 | </tbody> |
206 | </table> | 206 | </table> |
207 | </div> | 207 | </div> |
Offset 119, 27 lines modified | Offset 119, 27 lines modified | ||
119 | ········"0":·"py:class", | 119 | ········"0":·"py:class", |
120 | ········"1":·"py:method" | 120 | ········"1":·"py:method" |
121 | ····}, | 121 | ····}, |
122 | ····terms:·{ | 122 | ····terms:·{ |
123 | ········"000":·2, | 123 | ········"000":·2, |
124 | ········"0000":·2, | 124 | ········"0000":·2, |
125 | ········"001":·1, | 125 | ········"001":·1, |
126 | ········"0 | 126 | ········"039":·[5,·6], |
127 | ········"0 | 127 | ········"053":·[3,·6], |
128 | ········"0 | 128 | ········"062":·[1,·6], |
129 | ········"0625":·4, | 129 | ········"0625":·4, |
130 | ········"073":·15, | 130 | ········"073":·15, |
131 | ········"100000":·4, | 131 | ········"100000":·4, |
132 | ········"1000000":·2, | 132 | ········"1000000":·2, |
133 | ········"1100ff":·2, | 133 | ········"1100ff":·2, |
134 | ········"116":·[4,·6], | ||
135 | ········"117":·[2,·6], | ||
136 | ········"125":·4, | 134 | ········"125":·4, |
137 | ········"128":·2, | 135 | ········"128":·2, |
136 | ········"183":·[4,·6], | ||
138 | ········"1875":·4, | 137 | ········"1875":·4, |
138 | ········"190":·[2,·6], | ||
139 | ········"1993":·2, | 139 | ········"1993":·2, |
140 | ········"2000":·2, | 140 | ········"2000":·2, |
141 | ········"200000":·4, | 141 | ········"200000":·4, |
142 | ········"2004":·15, | 142 | ········"2004":·15, |
143 | ········"2006":·[3,·4], | 143 | ········"2006":·[3,·4], |
144 | ········"2007":·16, | 144 | ········"2007":·16, |
145 | ········"2008":·16, | 145 | ········"2008":·16, |
Offset 153, 21 lines modified | Offset 153, 21 lines modified | ||
153 | ········"2021":·[7,·16], | 153 | ········"2021":·[7,·16], |
154 | ········"246":·16, | 154 | ········"246":·16, |
155 | ········"256":·2, | 155 | ········"256":·2, |
156 | ········"2x0000":·4, | 156 | ········"2x0000":·4, |
157 | ········"300":·2, | 157 | ········"300":·2, |
158 | ········"300000":·4, | 158 | ········"300000":·4, |
159 | ········"3125":·4, | 159 | ········"3125":·4, |
160 | ········"337":·6, | ||
161 | ········"375":·4, | 160 | ········"375":·4, |
162 | ········"3aclos":·16, | 161 | ········"3aclos":·16, |
163 | ········"3apygraphivz":·16, | 162 | ········"3apygraphivz":·16, |
164 | ········"400000":·4, | 163 | ········"400000":·4, |
165 | ········"4375":·4, | 164 | ········"4375":·4, |
166 | ········"500000":·4, | 165 | ········"500000":·4, |
166 | ········"527":·6, | ||
167 | ········"5625":·4, | 167 | ········"5625":·4, |
168 | ········"600000":·4, | 168 | ········"600000":·4, |
169 | ········"62165":·8, | 169 | ········"62165":·8, |
170 | ········"625":·4, | 170 | ········"625":·4, |
171 | ········"6875":·4, | 171 | ········"6875":·4, |
172 | ········"7000":·2, | 172 | ········"7000":·2, |
173 | ········"700000":·4, | 173 | ········"700000":·4, |