|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.mhhe.clrs2e.AdjacencyListGraph.EdgeIterator
|
+--com.mhhe.clrs2e.WeightedAdjacencyListGraph.EdgeIterator
Inner class that overrides
AdjacencyListGraph.EdgeIterator to implement
WeightedEdgeIterator.
| Field Summary |
| Fields inherited from class com.mhhe.clrs2e.AdjacencyListGraph.EdgeIterator |
current, index |
| Constructor Summary | |
WeightedAdjacencyListGraph.EdgeIterator(int v)
Starts an iteration through the weighted edges incident on a given vertex. |
|
| 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 class com.mhhe.clrs2e.AdjacencyListGraph.EdgeIterator |
hasNext, next, remove |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Iterator |
hasNext, next, remove |
| Constructor Detail |
public WeightedAdjacencyListGraph.EdgeIterator(int v)
v - The index of the vertex.| Method Detail |
public double getWeight()
next.
getWeight in interface WeightedEdgeIteratorpublic void setWeight(double weight)
next.
setWeight in interface WeightedEdgeIterator
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||