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>
DirectedWeightedGraphBuilder for extending.graph| Constructor and Description |
|---|
DirectedWeightedGraphBuilderBase(G baseGraph)
Creates a builder based on
baseGraph. |
| Modifier and Type | Method and Description |
|---|---|
B |
addEdge(V source,
V target,
double weight)
Adds an weighted edge to the graph being built.
|
buildUnmodifiableaddEdge, addEdgeChain, addGraph, addVertex, addVertices, build, removeEdge, removeVertex, removeVertices, selfpublic DirectedWeightedGraphBuilderBase(G baseGraph)
baseGraph. baseGraph must be
mutable.baseGraph - the graph object to base building onpublic B addEdge(V source, V target, double weight)
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.