def setK(self, k):
        Parameter.checkIndex(k, 0, float('inf'))
        self.k = k
The number of neighbours of each vertex.
dataset/ETHPy150Open charanpald/APGL/apgl/generator/SmallWorldGenerator.py/SmallWorldGenerator.setK