ta))</span>

        <span class="c1"># Remove the second occurence of the link</span>
        <span class="k">if</span> <span class="n">K</span> <span class="ow">and</span> <span class="n">nodes</span><span
            class="p">[</span><span class="mi">1</span><span class="p">]</span><span class="o">.</span><span class="n">find_root</span><span
            class="p">()</span> <span class="o">==</span> <span class="n">K</span><span class="o">.</span><span
            class="n">root</span><span class="p">:<