public class WeightedDirectedEdge<S extends Node,T extends java.lang.Number> extends DirectedEdge<S> implements WeightedEdge<S,T>
| Modifier and Type | Field and Description |
|---|---|
private T |
weight
The weight of this edge.
|
| Constructor and Description |
|---|
WeightedDirectedEdge(S nodeA,
S nodeB,
T weight)
Creates a new weighted direct edge.
|
| Modifier and Type | Method and Description |
|---|---|
T |
getWeight()
Returns the weight of this edge.
|
toStringprivate T extends java.lang.Number weight
public T getWeight()
WeightedEdgegetWeight in interface WeightedEdge<S extends Node,T extends java.lang.Number>