V- the graph vertex type
E- the graph edge type
G- type of the resulting graph
B- type of this builder
public abstract class UndirectedWeightedGraphBuilderBase<V,E,G extends UndirectedGraph<V,E> & WeightedGraph<V,E>,B extends UndirectedWeightedGraphBuilderBase<V,E,G,B>> extends UndirectedGraphBuilderBase<V,E,G,B>
|Constructor and Description|
Creates a builder based on
|Modifier and Type||Method and Description|
Adds an weighted edge to the graph being built.
Adds the specified weighted edge to the graph being built.
addEdge, addEdge, addEdgeChain, addGraph, addVertex, addVertices, build, removeEdge, removeEdge, removeVertex, removeVertices, self
public UndirectedWeightedGraphBuilderBase(G baseGraph)
baseGraphmust be mutable.
baseGraph- the graph object to base building on
source- source vertex of the edge.
target- target vertex of the edge.
weight- weight of the edge.
Graphs.addEdgeWithVertices(Graph, Object, Object, double)
Copyright © 2017. All rights reserved.