goldman.graph
Class SimpleWeightedEdge<V>

java.lang.Object
  extended by goldman.graph.SimpleEdge<V>
      extended by goldman.graph.SimpleWeightedEdge<V>
All Implemented Interfaces:
Edge<V>, WeightedEdge<V>

public class SimpleWeightedEdge<V>
extends SimpleEdge<V>
implements WeightedEdge<V>

The simple weighted edge class provides a sample implementation for a weighted edge.


Constructor Summary
SimpleWeightedEdge(V head, V tail, double weight)
           
 
Method Summary
 String toString()
           
 double weight()
           
 
Methods inherited from class goldman.graph.SimpleEdge
dest, source
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface goldman.graph.Edge
dest, source
 

Constructor Detail

SimpleWeightedEdge

public SimpleWeightedEdge(V head,
                          V tail,
                          double weight)
Method Detail

weight

public double weight()
Specified by:
weight in interface WeightedEdge<V>

toString

public String toString()
Overrides:
toString in class SimpleEdge<V>