|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jgrapht.experimental.PartiteRandomGraphGenerator<V,E>
public class PartiteRandomGraphGenerator<V,E>
PartiteRandomGraphGenerator generates a partite uniform random graph of any size. A partite uniform random graph contains edges chosen independently uniformly at random from the set of possible edges between partition classes.
Constructor Summary | |
---|---|
PartiteRandomGraphGenerator(int[] numVertices,
int numEdges)
Construct a new PartiteRandomGraphGenerator for a k-partite graph. |
|
PartiteRandomGraphGenerator(int numVertices1,
int numVertices2,
int numEdges)
Construct a new PartiteRandomGraphGenerator for a bipartite graph. |
Method Summary | |
---|---|
void |
generateGraph(Graph<V,E> target,
VertexFactory<V> vertexFactory,
Map<String,Object[]> resultMap)
TODO hb 30-nov-05: document me |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PartiteRandomGraphGenerator(int numVertices1, int numVertices2, int numEdges)
numVertices1
- number of vertices in the first partitionnumVertices2
- number of vertices in the second partitionnumEdges
- number of edges to be generated
IllegalArgumentException
public PartiteRandomGraphGenerator(int[] numVertices, int numEdges)
numVertices
- number of vertices in the k partitionsnumEdges
- number of edges to be generated between any two
partitions
IllegalArgumentException
Method Detail |
---|
public void generateGraph(Graph<V,E> target, VertexFactory<V> vertexFactory, Map<String,Object[]> resultMap)
generateGraph
in interface GraphGenerator<V,E,Object[]>
target
- vertexFactory
- resultMap
- some array of verticesGraphGenerator.generateGraph(org.jgrapht.Graph, org.jgrapht.VertexFactory, java.util.Map)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |