n class="sd">            as a pymatgen structure graph. For example, generated using the</span>
<span class="sd">            CrystalNN.get_bonded_structure() method.</span>

<span class="sd">    Returns:</span>
<span class="sd">        (int): The dimensionality of the structure.</span>
<span class="sd">    &quot;&quot;&quot;</span>
    <span class="k">return</span> <span class="nb">max</span><span class="p">([</span><span class="n">c</span><span class="p">[</span><span class="s1">&#39;dimensionality&#39;</s