V
- the graph vertex typeE
- the graph edge typeT
- type for returning implementation-specific 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.
|
void generateGraph(Graph<V,E> target, Map<String,T> resultMap)
target
- receives the generated edges and vertices; if this is non-empty on entry, the
result will be a disconnected graph since generated elements will not be connected to
existing elementsresultMap
- if non-null, receives implementation-specific 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 non-empty 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 edgesCopyright © 2018. All rights reserved.