V- the graph vertex type
E- the graph edge type
G- type of the resulting graph
public class GraphBuilder<V,E,G extends Graph<V,E>> extends AbstractGraphBuilder<V,E,G,GraphBuilder<V,E,G>>
Graph. This is a helper class which helps adding vertices and edges into an already constructed graph instance.
GraphTypeBuilder for a builder of the actual graph instance.
|Constructor and Description|
Creates a builder based on
|Modifier and Type||Method and Description|
addEdge, addEdge, addEdge, addEdge, addEdgeChain, addGraph, addVertex, addVertices, build, buildAsUnmodifiable, removeEdge, removeEdge, removeVertex, removeVertices
public GraphBuilder(G baseGraph)
baseGraphmust be mutable.
The recommended way to use this constructor is:
baseGraph should not be an existing graph. If you want to add an existing graph
to the graph being built, you should use the
baseGraph- the graph object to base building on
Copyright © 2019. All rights reserved.