V
 the graph vertex typeE
 the graph edge typeT
 type for returning implementationspecific mappings from String roles to graph
elementspublic interface GraphGenerator<V,E,T>
Modifier and Type  Method and Description 

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

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

default void 
generateGraph(Graph<V,E> target,
VertexFactory<V> vertexFactory)
Deprecated.
Use simpler methods

default void 
generateGraph(Graph<V,E> target,
VertexFactory<V> vertexFactory,
Map<String,T> resultMap)
Deprecated.
Use simpler methods

void generateGraph(Graph<V,E> target, Map<String,T> resultMap)
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)UnsupportedOperationException
 if the graph does not have appropriate vertex and edge
suppliers, in order to be able to create new vertices and edges. Methods
Graph.getEdgeSupplier()
and Graph.getVertexSupplier()
must not return
null
.default void generateGraph(Graph<V,E> target)
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 elementsUnsupportedOperationException
 if the graph does not have appropriate vertex and edge
suppliers, in order to be able to create new vertices and edges@Deprecated default void generateGraph(Graph<V,E> target, VertexFactory<V> vertexFactory, Map<String,T> resultMap)
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 elementsvertexFactory
 called to produce new verticesresultMap
 if nonnull, receives implementationspecific mappings from String roles to
graph elements (or collections of graph elements)@Deprecated default void generateGraph(Graph<V,E> target, VertexFactory<V> vertexFactory)
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 elementsvertexFactory
 called to produce new verticesCopyright © 2018. All rights reserved.