</span><span class="p">])</span>
        <span class="c1"># print(&quot; J :\n&quot;, J)</span>
        <span class="c1"># print(&quot; K :\n&quot;, K)</span>
        <span class="c1"># if J.first != nodes[0]:</span>
        <span class="n">J</span><span class="o">.</span><span class="n">remove</span><span class="p">(</span><span
            class="n">nodes</span><span class="p">[</span><span class="mi">0</span><span class="p">])</span>
        <span class="c1"># else:</span>
        <span class="c1">#     