public class EppsteinPowerLawGenerator extends java.lang.Object implements GraphGenerator
| Constructor and Description |
|---|
EppsteinPowerLawGenerator(int numVertices,
int numEdges,
int r)
Constructor which specifies the parameters of the generator
|
| Modifier and Type | Method and Description |
|---|---|
ArchetypeGraph |
generateGraph()
Generates a graph whose degree distribution approximates a power-law.
|
protected Graph |
initializeGraph() |
void |
setSeed(long seed) |
public EppsteinPowerLawGenerator(int numVertices,
int numEdges,
int r)
numVertices - the number of vertices for the generated graphnumEdges - the number of edges the generated graph will have, should be Theta(numVertices)r - the model parameter. The larger the value for this parameter the better the graph's degree
distribution will approximate a power-law.protected Graph initializeGraph()
public ArchetypeGraph generateGraph()
generateGraph in interface GraphGeneratorpublic void setSeed(long seed)