org.graphnetwork.jgrapht.graph
Class DefaultWeightedEdge
java.lang.Object
org.jgrapht.graph.DefaultEdge
org.jgrapht.graph.DefaultWeightedEdge
org.graphnetwork.jgrapht.graph.DefaultWeightedEdge
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
public class DefaultWeightedEdge
- extends org.jgrapht.graph.DefaultWeightedEdge
- See Also:
- Serialized Form
Method Summary |
java.lang.Object |
clone()
|
float |
getWeight()
Returns the weight value of the DefaultWeightedEdge |
void |
setWeight(float w)
Sets the weight value of the DefaultWeightedEdge |
java.lang.String |
toString()
Overrides the toString method of DefaultWeightedEdge
to return just a String representation of the weight
of the edge + the superclass toString. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DefaultWeightedEdge
public DefaultWeightedEdge()
setWeight
public void setWeight(float w)
- Sets the weight value of the DefaultWeightedEdge
- Parameters:
w
- the value of the weight to be set
getWeight
public float getWeight()
- Returns the weight value of the DefaultWeightedEdge
- Returns:
- the value of the weight of this edge
toString
public java.lang.String toString()
- Overrides the toString method of DefaultWeightedEdge
to return just a String representation of the weight
of the edge + the superclass toString.
- Overrides:
toString
in class org.jgrapht.graph.DefaultEdge
- Returns:
- a string representation of the weight value
clone
public java.lang.Object clone()
- Overrides:
clone
in class java.lang.Object