com.mhhe.clrs2e
Interface WeightedEdgeIterator

All Superinterfaces:
java.util.Iterator
All Known Implementing Classes:
WeightedAdjacencyListGraph.EdgeIterator, WeightedAdjacencyMatrixGraph.EdgeIterator

public interface WeightedEdgeIterator
extends java.util.Iterator

Interface for an iterator that returns weighted edges.


Method Summary
 double getWeight()
          Returns the weight of the edge returned by the most recent call to next.
 void setWeight(double weight)
          Sets the weight of the edge returned by the most recent call to next.
 
Methods inherited from interface java.util.Iterator
hasNext, next, remove
 

Method Detail

getWeight

public double getWeight()
Returns the weight of the edge returned by the most recent call to next.


setWeight

public void setWeight(double weight)
Sets the weight of the edge returned by the most recent call to next.