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

        <span class="c1"># This dictionary will be find_comp[vertex_name] = new_vertex_name</span>
        <span class="n">find_comp</span> <span class="o">=</span> <span class="p">{}</span>
        <span class="n">vert_list</span> <span class="o">=</span> <span class="p">[]</span>
        <span class="n">f_dict_new</span> <span class="o">=</span> <span class="p">{}</span>

        <span class="k">for</span> <span class="n">val_i</span><span class="p">,</span><span class="n">i</