V
- the graph vertex typeE
- the graph edge typeG
- type of the resulting graphB
- type of this builderpublic abstract class UndirectedGraphBuilderBase<V,E,G extends UndirectedGraph<V,E>,B extends UndirectedGraphBuilderBase<V,E,G,B>> extends AbstractGraphBuilder<V,E,G,B>
UndirectedGraphBuilder
for extending.graph
Constructor and Description |
---|
UndirectedGraphBuilderBase(G baseGraph)
Creates a builder based on
baseGraph . |
Modifier and Type | Method and Description |
---|---|
UnmodifiableUndirectedGraph<V,E> |
buildUnmodifiable()
Build an unmodifiable version graph.
|
addEdge, addEdge, addEdgeChain, addGraph, addVertex, addVertices, build, removeEdge, removeEdge, removeVertex, removeVertices, self
public UndirectedGraphBuilderBase(G baseGraph)
baseGraph
. baseGraph
must be mutable.baseGraph
- the graph object to base building onpublic UnmodifiableUndirectedGraph<V,E> buildUnmodifiable()
AbstractGraphBuilder
buildUnmodifiable
in class AbstractGraphBuilder<V,E,G extends UndirectedGraph<V,E>,B extends UndirectedGraphBuilderBase<V,E,G,B>>
AbstractGraphBuilder.build()
Copyright © 2017. All rights reserved.