jbnc.graphs
Class EdgeWithWeight
java.lang.Object
jbnc.graphs.Edge
jbnc.graphs.EdgeWithWeight
- public class EdgeWithWeight
- extends Edge
Description of the Class
- Since:
- June 1, 1999
- Author:
- Jarek Sacha
Field Summary |
protected double |
weight
|
Fields inherited from class jbnc.graphs.Edge |
in, out |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
weight
protected double weight
EdgeWithWeight
public EdgeWithWeight()
EdgeWithWeight
public EdgeWithWeight(Vertex x,
Vertex y)
- Parameters:
x
- Description of Parametery
- Description of Parameter
EdgeWithWeight
public EdgeWithWeight(Vertex x,
Vertex y,
double weight)
- Parameters:
x
- Description of Parametery
- Description of Parameterweight
- Description of Parameter
setWeight
public void setWeight(double weight)
- Parameters:
weight
- The new Weight value
getWeight
public double getWeight()
- Returns:
- The Weight value
toString
public java.lang.String toString()
- Description of the Method
- Overrides:
toString
in class Edge
- Returns:
- Description of the Returned Value