 :\n&quot;, L)</span>
            <span class="c1"># if K.first != nodes[1]:</span>
            <span class="n">K</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 class="c1"># else:</span>
            <span class="c1"># It means that it only remain nodes[1] in K</span>
            <span class="c1"># K =None</span>
            <span class="c1">