|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.uci.ics.jung.random.generators.Lattice1DGenerator
Simple generator of an n x 1 lattice where each vertex is incident with each of its 2 neighbors (except possibly for the vertices on the edge depending upon whether the lattice is specified to be toroidal or not).
Constructor Summary | |
Lattice1DGenerator(int numNodes,
boolean isToroidal)
Constructs an instance of the lattice generator |
Method Summary | |
ArchetypeGraph |
generateGraph()
Instructs the algorithm to generate the graph |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Lattice1DGenerator(int numNodes, boolean isToroidal)
numNodes
- # of nodes in the generated graphisToroidal
- whether the lattice wraps around or notMethod Detail |
public ArchetypeGraph generateGraph()
GraphGenerator
generateGraph
in interface GraphGenerator
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |