V
- the graph vertex typeE
- the graph edge typeG
- type of the resulting graphB
- type of this builderGraphBuilder
.@Deprecated public abstract class UndirectedWeightedGraphBuilderBase<V,E,G extends UndirectedGraph<V,E>,B extends UndirectedWeightedGraphBuilderBase<V,E,G,B>> extends UndirectedGraphBuilderBase<V,E,G,B>
UndirectedWeightedGraphBuilder
for extending.graph
Constructor and Description |
---|
UndirectedWeightedGraphBuilderBase(G baseGraph)
Deprecated.
Creates a builder based on
baseGraph . |
Modifier and Type | Method and Description |
---|---|
B |
addEdge(V source,
V target,
double weight)
Deprecated.
Adds an weighted edge to the graph being built.
|
B |
addEdge(V source,
V target,
E edge,
double weight)
Deprecated.
Adds the specified weighted edge to the graph being built.
|
buildUnmodifiable
addEdge, addEdge, addEdgeChain, addGraph, addVertex, addVertices, build, buildAsUnmodifiable, removeEdge, removeEdge, removeVertex, removeVertices, self
public UndirectedWeightedGraphBuilderBase(G baseGraph)
baseGraph
. baseGraph
must be mutable.baseGraph
- the graph object to base building onpublic B addEdge(V source, V target, double weight)
addEdge
in class AbstractGraphBuilder<V,E,G extends UndirectedGraph<V,E>,B extends UndirectedWeightedGraphBuilderBase<V,E,G,B>>
source
- source vertex of the edge.target
- target vertex of the edge.weight
- weight of the edge.Graphs.addEdgeWithVertices(Graph, Object, Object, double)
public B addEdge(V source, V target, E edge, double weight)
addEdge
in class AbstractGraphBuilder<V,E,G extends UndirectedGraph<V,E>,B extends UndirectedWeightedGraphBuilderBase<V,E,G,B>>
source
- source vertex of the edge.target
- target vertex of the edge.edge
- edge to be added to this graph.weight
- weight of the edge.Graph.addEdge(Object, Object, Object)
,
Graph.setEdgeWeight(Object, double)
Copyright © 2017. All rights reserved.