public interface EdgeWeightVertex<T extends EdgeWeightData> extends EdgeDataVertex<T>
Modifier and Type | Method and Description |
---|---|
double |
getEdgeWeight(EdgeWeightVertex<T> to)
Retrieve the weight of the edge from the calling vertex to the vertex passed
as parameter.
|
void |
setEdgeWeight(EdgeWeightVertex<T> to,
double weight)
Set the weight of the edge from the calling vertex to the vertex passed
as parameter.
|
getEdgeData
addAdjacency, adjacencyCount, clearAdjacencies, containsAdjacency, getAdjacencies, getGraph, hasAdjacencies, removeAdjacency, setGraph
void setEdgeWeight(EdgeWeightVertex<T> to, double weight)
to
- head of the edge for which to set the weightweight
- value to which the edge's weight is to be setdouble getEdgeWeight(EdgeWeightVertex<T> to)
to
- head of the edge for which to get the weight