|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.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(org.apache.commons.collections15.Factory<Graph<V,E>> graphFactory,
org.apache.commons.collections15.Factory<V> vertexFactory,
org.apache.commons.collections15.Factory<E> edgeFactory,
int numVertices,
int numEdges,
int r)
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(org.apache.commons.collections15.Factory<Graph<V,E>> graphFactory, org.apache.commons.collections15.Factory<V> vertexFactory, org.apache.commons.collections15.Factory<E> 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-lawMethod Detail |
---|
protected Graph<V,E> initializeGraph()
public Graph<V,E> create()
create
in interface org.apache.commons.collections15.Factory<Graph<V,E>>
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 |