def</span> <span class="nf">calculate_dimensionality_of_site</span><span class="p">(</span><span class="n">bonded_structure</span><span class="p">,</span> <span class="n">site_index</span><span class="p">,</span>
                                     <span class="n">inc_vertices</span><span class="o">=</span><span class="kc">False</span><span class="p">):</span>
    <span class="sd">&quot;&quot;&quot;</span>
<span class="sd">    Calculates the dimensionality of the component containing the given site.</span>