public class WeightedEdgeImpl extends EdgeImpl implements WeightedEdge
| Constructor and Description |
|---|
WeightedEdgeImpl(Vertex a,
Vertex b,
double weight)
Creates an WeightedEdgeImpl object.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getWeight()
Returns the weight of the edge.
|
void |
setWeight(double weight)
Sets the weight of the edge.
|
String |
toString()
Returns a String representation of the Edge.
|
clone, getLabel, getOppositeVertex, getVertexA, getVertexB, hasLabel, isFollowVertexLabel, setFollowVertexLabel, setLabelequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetOppositeVertex, getVertexA, getVertexBisFollowVertexLabel, setFollowVertexLabelgetLabel, hasLabel, setLabelpublic double getWeight()
getWeight in interface WeightedEdgepublic void setWeight(double weight)
setWeight in interface WeightedEdgeweight - The new weight of the edgeCopyright © 2019 JULIE Lab, Germany. All rights reserved.