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(org.apache.commons.collections4.Factory<Graph<V,E>> graphFactory,
org.apache.commons.collections4.Factory<V> vertexFactory,
org.apache.commons.collections4.Factory<E> edgeFactory,
Map<E,Number> edge_weights,
int num_vertices,
boolean parallel,
Set<V> seedVertices)
Returns a random mixed-mode graph.
|
static <V,E> Graph<V,E> |
generateMixedRandomGraph(org.apache.commons.collections4.Factory<Graph<V,E>> graphFactory,
org.apache.commons.collections4.Factory<V> vertexFactory,
org.apache.commons.collections4.Factory<E> edgeFactory,
Map<E,Number> edge_weight,
int num_vertices,
Set<V> seedVertices)
Equivalent to
generateMixedRandomGraph(edge_weight, num_vertices, true) . |
public static <V,E> Graph<V,E> generateMixedRandomGraph(org.apache.commons.collections4.Factory<Graph<V,E>> graphFactory, org.apache.commons.collections4.Factory<V> vertexFactory, org.apache.commons.collections4.Factory<E> edgeFactory, Map<E,Number> edge_weight, int num_vertices, Set<V> seedVertices)
generateMixedRandomGraph(edge_weight, num_vertices, true)
.public static <V,E> Graph<V,E> generateMixedRandomGraph(org.apache.commons.collections4.Factory<Graph<V,E>> graphFactory, org.apache.commons.collections4.Factory<V> vertexFactory, org.apache.commons.collections4.Factory<E> edgeFactory, Map<E,Number> edge_weights, int num_vertices, boolean parallel, Set<V> seedVertices)
Copyright © 2014. All rights reserved.