n class="p">[</span><span class="mi">1</span><span class="p">])</span>
            <span class="c1"># print(&quot; J :\n&quot;, J)</span>
            <span class="c1"># print(&quot; L :\n&quot;, L)</span>
            <span class="c1"># if J.first != nodes[1]:</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">1</span><span class="p">])</span>
            <span