an><span class="p">(</span><span class="bp">self</span><span class="p">,</span>  <span class="n">vertex</span><span class="p">,</span> <span class="n">f_vertex</span><span class="p">,</span> <span class="n">reset_pos</span><span class="o">=</span><span class="kc">True</span><span class="p">):</span>
<span class="w">        </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd">        Adds a node to the tree. Note that this will break the single connected component property of the tree so we ass