Class FlowNetwork
Defined in File MaxFlow.h
Nested Relationships
Nested Types
Class Documentation
-
class FlowNetwork
a network of flow with integer capacities
Public Functions
-
explicit FlowNetwork(int n)
the network of the nodes 0 , … , n - 1, with no edge
- Pre:
n >= 0
-
inline int n(void) const
-
int addEdge(int u, int v, long long c)
the edge ( u , v ) of capacity c, and its number
- Pre:
u and v are nodes, c >= 0
-
long long flow(int e) const
the flow on the edge number e
- Pre:
e is the number of an edge
-
long long capacity(int e) const
the capacity of the edge number e
- Pre:
e is the number of an edge
-
explicit FlowNetwork(int n)