public class KleinbergSmallWorldGenerator extends Lattice2DGenerator
| Constructor and Description |
|---|
KleinbergSmallWorldGenerator(int latticeSize,
double clusteringExponent)
Constructs the small world graph generator.
|
| Modifier and Type | Method and Description |
|---|---|
ArchetypeGraph |
generateGraph()
Generates a random small world network according to the parameters given
|
double |
getClusteringExponent() |
void |
setClusteringExponent(double clusteringExponent) |
downIndex, getLatticeSize, leftIndex, rightIndex, upIndexpublic KleinbergSmallWorldGenerator(int latticeSize,
double clusteringExponent)
latticeSize - the lattice size (length of row or column dimension)clusteringExponent - the clustering exponent parameter (somewhere around 2 is a good choice)public ArchetypeGraph generateGraph()
generateGraph in interface GraphGeneratorgenerateGraph in class Lattice2DGeneratorpublic double getClusteringExponent()
public void setClusteringExponent(double clusteringExponent)