public class MixedRandomGraphGenerator extends Object
BarabasiAlbertGenerator
.
Primarily intended for providing a heterogeneous sample graph for visualization testing, etc.Constructor and Description |
---|
MixedRandomGraphGenerator() |
Modifier and Type | Method and Description |
---|---|
static <V,E> Graph<V,E> |
generateMixedRandomGraph(com.google.common.base.Supplier<Graph<V,E>> graphFactory,
com.google.common.base.Supplier<V> vertexFactory,
com.google.common.base.Supplier<E> edgeFactory,
Map<E,Number> edge_weights,
int num_vertices,
Set<V> seedVertices)
Returns a random mixed-mode graph.
|
public static <V,E> Graph<V,E> generateMixedRandomGraph(com.google.common.base.Supplier<Graph<V,E>> graphFactory, com.google.common.base.Supplier<V> vertexFactory, com.google.common.base.Supplier<E> edgeFactory, Map<E,Number> edge_weights, int num_vertices, Set<V> seedVertices)
V
- the vertex typeE
- the edge typegraphFactory
- factory for graphs of the appropriate typevertexFactory
- factory for vertices of the appropriate typeedgeFactory
- factory for edges of the appropriate typeedge_weights
- storage for the edge weights that this generator createsnum_vertices
- number of vertices to generateseedVertices
- storage for the seed vertices that this generator createsCopyright © 2015. All rights reserved.