n class="n">image_i</span><span class="p">))</span>

        <span class="k">if</span> <span class="ow">not</span> <span class="n">rank_increase</span><span class="p">(</span><span class="n">seen_comp_vertices</span><span class="p">[</span><span class="n">comp_i</span><span class="p">],</span> <span class="n">image_i</span><span class="p">):</span>
            <span class="k">continue</span>

        <span class="n">seen_comp_vertices</span><span class="p">[</span><span class="n">comp_i</span><span class="p