V
 the graph vertex typeE
 the graph edge typepublic class RingGraphGenerator<V,E> extends Object implements GraphGenerator<V,E,V>
Constructor and Description 

RingGraphGenerator(int size)
Construct a new RingGraphGenerator.

Modifier and Type  Method and Description 

void 
generateGraph(Graph<V,E> target,
Map<String,V> resultMap)
Generate a graph structure.

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
generateGraph
public RingGraphGenerator(int size)
size
 number of vertices to be generatedIllegalArgumentException
 if the specified size is negative.public void generateGraph(Graph<V,E> target, Map<String,V> resultMap)
generateGraph
in interface GraphGenerator<V,E,V>
target
 receives the generated edges and vertices; if this is nonempty on entry, the
result will be a disconnected graph since generated elements will not be connected to
existing elementsresultMap
 if nonnull, receives implementationspecific mappings from String roles to
graph elements (or collections of graph elements)Copyright © 2019. All rights reserved.