|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Interface for an iterator that returns edges of a flow network.
| Method Summary | |
double |
getCapacity()
Returns the capacity of the edge returned by the most recent call to next. |
java.lang.Object |
getEdge()
Returns the edge found by the most recent call to next. |
double |
getNetFlow()
Returns the net flow of the edge returned by the most recent call to next. |
double |
getResidualCapacity()
Returns the residual capacity of the edge returned by the most recent call to next. |
void |
increaseNetFlow(double amount)
Increases the net flow of the edge returned by the most recent call to next. |
void |
zeroNetFlow()
Zeros out the net flow of the edge returned by the most recent call to next. |
| Methods inherited from interface java.util.Iterator |
hasNext, next, remove |
| Method Detail |
public java.lang.Object getEdge()
next. Unlike next, this method
returns an object corresponding to the edge itself rather than
just the adjacent vertex.
public double getCapacity()
next.
public double getNetFlow()
next.
public double getResidualCapacity()
next.
public void zeroNetFlow()
next.
public void increaseNetFlow(double amount)
next.
amount - The amount by which this edge's flow is
increased.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||