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.
addEdge, addEdgeChain, addGraph, addVertex, addVertices, build, 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 © 2016. All rights reserved.