T
- the type of data which is stored in the Vertices this Edge
attachespublic class WeightedUndirectedEdge<T> extends UndirectedEdge<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() |
getOtherVertex, getVertices, removeFromGraph, replaceVertex
fromGraph, fromSameGraphAs
public double getWeight()
Weighted
public void setWeight(double weight)
Weighted
public java.lang.String toString()
toString
in class UndirectedEdge<T>