span><span class="mi">0</span><span class="p">]):</span> <span class="c1"># and UF.find(e[1]) == UF.find(f[1]):</span>
                                <span class="c1"># print(f&quot;found {e} and {f}&quot;)</span>
                                <span class="n">D</span><span class="o">.</span><span class="n">array</span><span class="p">[</span><span class="n">i</span><span class="p">][</span><span class="n">j</span><span class="p">]</span> <span class="o">=</span> <span class="n">k</span>
                 