lass="o">.</span><span
            class="n">node_to_label</span><span class="p">[</span><span class="n">i</span><span class="p">])</span>
                    <span class="k">else</span><span class="p">:</span>
                        <span class="n">G</span><span class="o">.</span><span class="n">add_edge</span><span
            class="p">(</span><span class="n">k</span><span class="p">,</span> <span class="n">i</span><span
            class="p">)</span>
                    <span class="n">set_edge</span><