pan> <span class="o">=</span> <span class="p">((</span><span class="n">es</span><span class="p">[</span><span class="n">i</span><span class="p">],</span> <span class="n">edge_builder</span><span class="p">[</span><span class="n">i</span><span class="p">])</span> <span class="k">for</span> <span class="n">i</span> <span class="ow">in</span> <span class="n">edge_order</span><span class="p">)</span>

        <span class="c1"># Draw the edges</span>
        <span class="k">if</span> <span class="n">directed</sp