V- the graph vertex type
E- the graph edge type
G- type of the resulting graph
B- type of this builder
public abstract class DirectedWeightedGraphBuilderBase<V,E,G extends DirectedGraph<V,E> & WeightedGraph<V,E>,B extends DirectedWeightedGraphBuilderBase<V,E,G,B>> extends DirectedGraphBuilderBase<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 DirectedWeightedGraphBuilderBase(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.