"p">:</span>
            <span class="c1"># Edges at the current level</span>
            <span class="n">rowLabels</span> <span class="o">=</span> <span class="n">LevelEdges</span><span class="p">[</span><span class="n">L</span><span class="p">]</span>
        <span class="k">else</span><span class="p">:</span>
            <span class="k">raise</span> <span class="ne">ValueError</span><span class="p">(</span><span class="s2">&quot;Type must be &#39;V&#39; or &#39;E&#39;.&quot;</span><span class="p">)</span