p">))</span>

        <span class="k">if</span> <span class="nb">len</span><span class="p">(</span><span class="n">top_vertices</span><span class="p">)</span> <span class="o">==</span> <span class="mi">0</span><span class="p">:</span>
            <span class="n">warn</span><span class="p">(</span><span class="s2">&quot;The infinite node has no neighbors so there is nothing to be done.&quot;</span><span class="p">)</span>
        <span class="k">else</span><span class="p">:</span>
            <span class="n"