public class MixedRandomGraphGenerator
extends java.lang.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> edu.uci.ics.jung.graph.Graph<V,E> |
generateMixedRandomGraph(org.apache.commons.collections4.Factory<edu.uci.ics.jung.graph.Graph<V,E>> graphFactory,
org.apache.commons.collections4.Factory<V> vertexFactory,
org.apache.commons.collections4.Factory<E> edgeFactory,
java.util.Map<E,java.lang.Number> edge_weights,
int num_vertices,
boolean parallel,
java.util.Set<V> seedVertices)
Returns a random mixed-mode graph.
|
static <V,E> edu.uci.ics.jung.graph.Graph<V,E> |
generateMixedRandomGraph(org.apache.commons.collections4.Factory<edu.uci.ics.jung.graph.Graph<V,E>> graphFactory,
org.apache.commons.collections4.Factory<V> vertexFactory,
org.apache.commons.collections4.Factory<E> edgeFactory,
java.util.Map<E,java.lang.Number> edge_weight,
int num_vertices,
java.util.Set<V> seedVertices)
Equivalent to
generateMixedRandomGraph(edge_weight, num_vertices, true) . |
public static <V,E> edu.uci.ics.jung.graph.Graph<V,E> generateMixedRandomGraph(org.apache.commons.collections4.Factory<edu.uci.ics.jung.graph.Graph<V,E>> graphFactory, org.apache.commons.collections4.Factory<V> vertexFactory, org.apache.commons.collections4.Factory<E> edgeFactory, java.util.Map<E,java.lang.Number> edge_weight, int num_vertices, java.util.Set<V> seedVertices)
generateMixedRandomGraph(edge_weight, num_vertices, true)
.public static <V,E> edu.uci.ics.jung.graph.Graph<V,E> generateMixedRandomGraph(org.apache.commons.collections4.Factory<edu.uci.ics.jung.graph.Graph<V,E>> graphFactory, org.apache.commons.collections4.Factory<V> vertexFactory, org.apache.commons.collections4.Factory<E> edgeFactory, java.util.Map<E,java.lang.Number> edge_weights, int num_vertices, boolean parallel, java.util.Set<V> seedVertices)