jBNC Toolbox

jbnc.graphs
Class EdgeWithWeight

java.lang.Object
  extended byjbnc.graphs.Edge
      extended byjbnc.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
 
Constructor Summary
EdgeWithWeight()
           
EdgeWithWeight(Vertex x, Vertex y)
           
EdgeWithWeight(Vertex x, Vertex y, double weight)
           
 
Method Summary
 double getWeight()
           
 void setWeight(double weight)
           
 java.lang.String toString()
          Description of the Method
 
Methods inherited from class jbnc.graphs.Edge
getInVertex, getOutVertex, invert
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

weight

protected double weight
Constructor Detail

EdgeWithWeight

public EdgeWithWeight()

EdgeWithWeight

public EdgeWithWeight(Vertex x,
                      Vertex y)
Parameters:
x - Description of Parameter
y - Description of Parameter

EdgeWithWeight

public EdgeWithWeight(Vertex x,
                      Vertex y,
                      double weight)
Parameters:
x - Description of Parameter
y - Description of Parameter
weight - Description of Parameter
Method Detail

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

SourceForge.net Logo