public class NRandGenerator<V,E>
extends java.lang.Object
Constructor and Description |
---|
NRandGenerator() |
Modifier and Type | Method and Description |
---|---|
static <V,E> edu.uci.ics.jung.graph.Graph<V,E> |
generateGridGraph(org.apache.commons.collections15.Factory<edu.uci.ics.jung.graph.Graph<V,E>> graphFactory,
org.apache.commons.collections15.Factory<V> vertexFactory,
org.apache.commons.collections15.Factory<E> edgeFactory,
int width,
int height,
boolean torus)
This method generates grid2D graph.
|
static <V,E> edu.uci.ics.jung.graph.Graph<V,E> |
generateRegularRing(org.apache.commons.collections15.Factory<edu.uci.ics.jung.graph.Graph<V,E>> graphFactory,
org.apache.commons.collections15.Factory<V> vertexFactory,
org.apache.commons.collections15.Factory<E> edgeFactory,
int n,
int k) |
public static <V,E> edu.uci.ics.jung.graph.Graph<V,E> generateGridGraph(org.apache.commons.collections15.Factory<edu.uci.ics.jung.graph.Graph<V,E>> graphFactory, org.apache.commons.collections15.Factory<V> vertexFactory, org.apache.commons.collections15.Factory<E> edgeFactory, int width, int height, boolean torus)
graphFactory
- graph factoryvertexFactory
- vertex factoryedgeFactory
- edge factorywidth
- amount of columsheight
- amount of rowstorus
- if true, the method returns a torus.public static <V,E> edu.uci.ics.jung.graph.Graph<V,E> generateRegularRing(org.apache.commons.collections15.Factory<edu.uci.ics.jung.graph.Graph<V,E>> graphFactory, org.apache.commons.collections15.Factory<V> vertexFactory, org.apache.commons.collections15.Factory<E> edgeFactory, int n, int k)
V
- E
- graphFactory
- graph factoryvertexFactory
- edge factoryedgeFactory
- n
- number of verticesk
- degree of the graph