lass="p">(</span><span class="n">theta</span><span class="p">)</span>

        <span class="n">e_list</span> <span class="o">=</span> <span class="nb">sorted</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">edges</span><span class="p">,</span> <span class="n">key</span><span class="o">=</span><span class="k">lambda</span> <span class="n">e</span><span class="p">:</span> <span class="n">g_e</span><span class="p">[</span><span class="n">e</span><span class="p">