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.
|
getEdgeDataaddAdjacency, adjacencyCount, clearAdjacencies, containsAdjacency, getAdjacencies, getGraph, hasAdjacencies, removeAdjacency, setGraphvoid 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