62#ifndef __ADS_FlowApplications
63 #define __ADS_FlowApplications
129std::vector< std::vector< int > >
131 long long k = std::numeric_limits< long long >::max() );
165 std::vector< std::vector< T > > & f ,
167 int t ,
int u ,
int v );
177#include "ADS/graph/impl/FlowApplications.tpp"
The contracts of ADS: the preconditions, the postconditions and the invariants of the operations,...
The maximum flow of section 15.2 in a network , with integer capacities, and the minimum cut.
The GRAPH of chapter 9 and its realizations.
std::vector< std::vector< int > > edgeDisjointPaths(const G &g, int s, int t, long long k=std::numeric_limits< long long >::max())
at most paths from to with no edge in common, as many as there can be, each as its nodes from to
CapacityDecrease
what decreaseCapacity() did
Definition FlowApplications.h:89
CapacityDecrease decreaseCapacity(std::vector< std::vector< T > > &c, std::vector< std::vector< T > > &f, int s, int t, int u, int v)
decreases by 1, and the maximum flow from to within becomes a maximum flow within the new
@ CYCLE
one unit of a cycle of flow canceled, the value kept
Definition FlowApplications.h:91
@ PATH
one unit of a path canceled, then one augmenting path
Definition FlowApplications.h:92
@ SLACK
the edge was not saturated, nothing changed
Definition FlowApplications.h:90