an><span class="p">:</span>
            <span class="n">drawer_method</span> <span class="o">=</span> <span class="n">edge_drawer</span><span class="o">.</span><span class="n">draw_directed_edge</span>
        <span class="k">else</span><span class="p">:</span>
            <span class="n">drawer_method</span> <span class="o">=</span> <span class="n">edge_drawer</span><span class="o">.</span><span class="n">draw_undirected_edge</span>
        <span class="k">for</span> <span class="n">edge</span><span class=