public class WeightedDirectedEdge<S extends Node,T extends Number> extends DirectedEdge<S> implements WeightedEdge<S,T>
| 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.
|
toStringpublic T getWeight()
WeightedEdgeCopyright © 2018. All rights reserved.