an class="o">.</span><span class="n">legend</span><span class="p">(</span>
                    <span class="n">legend_info</span><span class="p">[</span><span class="s2">&quot;handles&quot;</span><span class="p">],</span>
                    <span class="n">legend_info</span><span class="p">[</span><span class="s2">&quot;labels&quot;</span><span class="p">],</span>
                <span class="p">)</span>

        <span class="c1"># Determine the order in which we will draw the vertices and edges</span>
   