def clusteringCoefficient(self):

        if self.k == 1:
            return 0
        else:
            return (float(3*(self.k-1))/(2*(2*self.k-1))) * (1-self.p)**3
Returns the clustering coefficient for the generator.
dataset/ETHPy150Open charanpald/APGL/apgl/generator/SmallWorldGenerator.py/SmallWorldGenerator.clusteringCoefficient