V
- the graph vertex typeE
- the graph edge typepublic interface WeightedGraph<V,E> extends Graph<V,E>
Modifier and Type | Field and Description |
---|---|
static double |
DEFAULT_EDGE_WEIGHT
The default weight for an edge.
|
Modifier and Type | Method and Description |
---|---|
void |
setEdgeWeight(E e,
double weight)
Assigns a weight to an edge.
|
addEdge, addEdge, addVertex, containsEdge, containsEdge, containsVertex, edgeSet, edgesOf, getAllEdges, getEdge, getEdgeFactory, getEdgeSource, getEdgeTarget, getEdgeWeight, removeAllEdges, removeAllEdges, removeAllVertices, removeEdge, removeEdge, removeVertex, vertexSet
static final double DEFAULT_EDGE_WEIGHT
void setEdgeWeight(E e, double weight)
e
- edge on which to set weightweight
- new weight for edgeCopyright © 2017. All rights reserved.