span
            class="n">first</span>

        <span class="k">if</span> <span class="n">T_right</span><span class="p">:</span>
            <span class="n">T_right</span><span class="o">.</span><span class="n">parent</span> <span class="o">=</span> <span
            class="kc">None</span>
            <span class="n">T_right</span> <span class="o">=</span> <span class="n">EulerTourTree</span><span class="p">(</span><span
            class="n">root</span><span class="o">=</span><span class="n">T_right</span