T
- the type of data which is stored in the Vertices this Edge
attachespublic class WeightedDirectedEdge<T> extends DirectedEdge<T> implements Weighted
Modifier and Type | Method and Description |
---|---|
double |
getWeight()
Gets the current weight
|
void |
setWeight(double weight)
Sets the weight
|
java.lang.String |
toString() |
getSource, getTarget, removeFromGraph, reverse, setSource, setTarget
fromGraph, fromSameGraphAs
public double getWeight()
Weighted
public void setWeight(double weight)
Weighted
public java.lang.String toString()
toString
in class DirectedEdge<T>