public class PartiteRandomGraphGenerator<V,E> extends Object implements GraphGenerator<V,E,Object[]>
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
void |
generateGraph(Graph<V,E> target,
VertexFactory<V> vertexFactory,
Map<String,Object[]> resultMap)
TODO hb 30-nov-05: document me
|
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 generatedIllegalArgumentException
public PartiteRandomGraphGenerator(int[] numVertices, int numEdges)
numVertices
- number of vertices in the k partitionsnumEdges
- number of edges to be generated between any two
partitionsIllegalArgumentException
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<V, E>, org.jgrapht.VertexFactory<V>, java.util.Map<java.lang.String, T>)
Copyright © 2016. All rights reserved.