V
- the graph vertex typeE
- the graph edge typeG
- type of the resulting graphpublic class GraphBuilder<V,E,G extends Graph<V,E>> extends AbstractGraphBuilder<V,E,G,GraphBuilder<V,E,G>>
Graph
.graph
Constructor and Description |
---|
GraphBuilder(G baseGraph)
Creates a builder based on
baseGraph . |
Modifier and Type | Method and Description |
---|---|
protected GraphBuilder<V,E,G> |
self() |
addEdge, addEdge, addEdge, addEdge, addEdgeChain, addGraph, addVertex, addVertices, build, buildAsUnmodifiable, buildUnmodifiable, removeEdge, removeEdge, removeVertex, removeVertices
public GraphBuilder(G baseGraph)
baseGraph
. baseGraph
must be mutable.
The recommended way to use this constructor is: new
GraphBuilderBase<...>(new YourGraph<...>(...))
.
NOTE: baseGraph
should not be an existing graph. If you want to add an existing graph
to the graph being built, you should use the AbstractGraphBuilder.addVertex(Object)
method.
baseGraph
- the graph object to base building onCopyright © 2017. All rights reserved.