V
- the graph vertex typeE
- the graph edge typeG
- type of the resulting graphGraphBuilder
.@Deprecated public final class UndirectedWeightedGraphBuilder<V,E,G extends UndirectedGraph<V,E>> extends UndirectedWeightedGraphBuilderBase<V,E,G,UndirectedWeightedGraphBuilder<V,E,G>>
UndirectedWeightedGraphBuilderBase
.graph
Constructor and Description |
---|
UndirectedWeightedGraphBuilder(G baseGraph)
Deprecated.
Creates a builder based on
baseGraph . |
Modifier and Type | Method and Description |
---|---|
protected UndirectedWeightedGraphBuilder<V,E,G> |
self()
Deprecated.
|
addEdge, addEdge
buildUnmodifiable
addEdge, addEdge, addEdgeChain, addGraph, addVertex, addVertices, build, buildAsUnmodifiable, removeEdge, removeEdge, removeVertex, removeVertices
public UndirectedWeightedGraphBuilder(G baseGraph)
baseGraph
. baseGraph
must be mutable.
The recommended way to use this constructor is: new
UndirectedWeightedGraphBuilder<...>(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 onprotected UndirectedWeightedGraphBuilder<V,E,G> self()
self
in class AbstractGraphBuilder<V,E,G extends UndirectedGraph<V,E>,UndirectedWeightedGraphBuilder<V,E,G extends UndirectedGraph<V,E>>>
this
object.Copyright © 2017. All rights reserved.