diff options
author | MridulS <mail@mriduls.com> | 2023-01-02 13:08:27 +0000 |
---|---|---|
committer | MridulS <mail@mriduls.com> | 2023-01-02 13:08:27 +0000 |
commit | 0b9a02d6b3796e8ce4fed6cbce282fced15e486a (patch) | |
tree | 8b48b18926291619367d4f9537892bd228bf7987 /auto_examples/algorithms/plot_blockmodel.html | |
parent | 6ae99ab58d8b8ba50f66768c0f3aa4bb82b22196 (diff) | |
download | networkx-0b9a02d6b3796e8ce4fed6cbce282fced15e486a.tar.gz |
Deploying to gh-pages from @ networkx/networkx@71ad516a90c89c7294e32bf28e1f05c63c5f17e4 🚀
Diffstat (limited to 'auto_examples/algorithms/plot_blockmodel.html')
-rw-r--r-- | auto_examples/algorithms/plot_blockmodel.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/auto_examples/algorithms/plot_blockmodel.html b/auto_examples/algorithms/plot_blockmodel.html index f9b47d10..73a3ee27 100644 --- a/auto_examples/algorithms/plot_blockmodel.html +++ b/auto_examples/algorithms/plot_blockmodel.html @@ -531,7 +531,7 @@ used is the Hartford, CT drug users network:</p> <span class="k">def</span> <span class="nf">create_hc</span><span class="p">(</span><span class="n">G</span><span class="p">):</span> - <span class="sd">"""Creates hierarchical cluster of graph G from distance matrix"""</span> +<span class="w"> </span><span class="sd">"""Creates hierarchical cluster of graph G from distance matrix"""</span> <span class="n">path_length</span> <span class="o">=</span> <span class="n">nx</span><span class="o">.</span><span class="n">all_pairs_shortest_path_length</span><span class="p">(</span><span class="n">G</span><span class="p">)</span> <span class="n">distances</span> <span class="o">=</span> <a href="https://numpy.org/doc/stable/reference/generated/numpy.zeros.html#numpy.zeros" title="numpy.zeros" class="sphx-glr-backref-module-numpy sphx-glr-backref-type-py-function"><span class="n">np</span><span class="o">.</span><span class="n">zeros</span></a><span class="p">((</span><span class="nb">len</span><span class="p">(</span><span class="n">G</span><span class="p">),</span> <span class="nb">len</span><span class="p">(</span><span class="n">G</span><span class="p">)))</span> <span class="k">for</span> <span class="n">u</span><span class="p">,</span> <span class="n">p</span> <span class="ow">in</span> <span class="n">path_length</span><span class="p">:</span> @@ -579,7 +579,7 @@ used is the Hartford, CT drug users network:</p> <a href="https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.show.html#matplotlib.pyplot.show" title="matplotlib.pyplot.show" class="sphx-glr-backref-module-matplotlib-pyplot sphx-glr-backref-type-py-function"><span class="n">plt</span><span class="o">.</span><span class="n">show</span></a><span class="p">()</span> </pre></div> </div> -<p class="sphx-glr-timing"><strong>Total running time of the script:</strong> ( 0 minutes 0.366 seconds)</p> +<p class="sphx-glr-timing"><strong>Total running time of the script:</strong> ( 0 minutes 0.518 seconds)</p> <div class="sphx-glr-footer sphx-glr-footer-example docutils container" id="sphx-glr-download-auto-examples-algorithms-plot-blockmodel-py"> <div class="sphx-glr-download sphx-glr-download-python docutils container"> <p><a class="reference download internal" download="" href="../../_downloads/efbe368eaa1e457c6c03d3f5a636063a/plot_blockmodel.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_blockmodel.py</span></code></a></p> @@ -641,7 +641,7 @@ used is the Hartford, CT drug users network:</p> <p class="copyright"> - © Copyright 2004-2022, NetworkX Developers.<br> + © Copyright 2004-2023, NetworkX Developers.<br> </p> |