the distance matrix for vertices or edges, respectively. Default is &#39;V&#39;.</span>

<span class="sd">        Returns:</span>
<span class="sd">            LabeledMatrix</span>
<span class="sd">            </span>
<span class="sd">        &quot;&quot;&quot;</span>
        <span class="c1"># Dict to get list of vertices at a level</span>
        <span class="n">LevelVerts</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">func_to_vertex_dict</span><span cla