class Edge
|
This class represents an edge in a graph. More... |
|
|
Public Types
Public Methods
Detailed Description
This class represents an edge in a graph.
Return the origin of the edge
Return the target of the edge
Return the current rest capacity
Return the maximum capacity of the edge
Return the current flow through the edge
addFlow(int flow) adds the given amount of flow to the edge. An exception is
thrown if flow exceeds the remaining capacity.
| void setCapacity (int capacity)
|
setCapacity(...) changes the capacity of the Edge. If the new capacity
is negative the capacity of the edge is set to zero.
- Author: Jan Meinke
- Generated: meinke@orion on Mon May 8 18:18:46 2000, using kdoc 2.0a35.