public class WattsBetaSmallWorldGenerator extends Lattice1DGenerator
Constructor and Description |
---|
WattsBetaSmallWorldGenerator(int numNodes,
double beta,
int degree)
Constructs the small world graph generator.
|
Modifier and Type | Method and Description |
---|---|
ArchetypeGraph |
generateGraph()
Generates a beta-network from a 1-lattice according to the parameters given.
|
downIndex, upIndex
public WattsBetaSmallWorldGenerator(int numNodes, double beta, int degree)
numNodes
- the number of nodes in the ring latticebeta
- the probability of an edge being rewired randomly; the proportion of randomly rewired edges in a graph.degree
- the number of edges connected to each vertex; the local neighborhood size.public ArchetypeGraph generateGraph()
generateGraph
in interface GraphGenerator
generateGraph
in class Lattice1DGenerator