|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.uci.ics.jung.algorithms.generators.random.EppsteinPowerLawGenerator<V,E>
public class EppsteinPowerLawGenerator<V,E>
Graph generator that generates undirected graphs with power-law degree distributions.
| Constructor Summary | |
|---|---|
EppsteinPowerLawGenerator(
Creates an instance with the specified factories and specifications. |
|
| Method Summary | |
|---|---|
Graph<V,E> |
create()
Generates a graph whose degree distribution approximates a power-law. |
protected Graph<V,E> |
initializeGraph()
|
void |
setSeed(long seed)
Sets the seed for the random number generator. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EppsteinPowerLawGenerator(graphFactory, vertexFactory, edgeFactory, int numVertices, int numEdges, int r)
graphFactory - the factory to use to generate the graphvertexFactory - the factory to use to create verticesedgeFactory - the factory to use to create edgesnumVertices - the number of vertices for the generated graphnumEdges - the number of edges the generated graph will have, should be Theta(numVertices)r - the number of iterations to use; the larger the value the better the graph's degree
distribution will approximate a power-law| Method Detail |
|---|
protected Graph<V,E> initializeGraph()
public Graph<V,E> create()
public void setSeed(long seed)
seed - input to the random number generator.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||