n>
<span class="sd">        (int or tuple): If inc_vertices is False, the dimensionality of the</span>
<span class="sd">        component will be returned as an int. If inc_vertices is true, the</span>
<span class="sd">        function will return a tuple of (dimensionality, vertices), where</span>
<span class="sd">        vertices is a list of tuples. E.g. [(0, 0, 0), (1, 1, 1)].</span>
<span class="sd">    &quot;&quot;&quot;</span>

    <span class="k">def</span> <span class="nf">neighbours</span><span cl