ADS
Algorithms and Data Structures
Loading...
Searching...
No Matches
ADS::FlowEngine Concept Reference

the engines of the solves of a MaxFlowObserver, objects that the observer keeps: scratch( net , s , t , how ) gives the value of a maximum flow of net from the zero flow, and warm( net , s , t , how , v ) that of a maximum flow from the flow that net keeps, of value \( v \) before the capacities changed (a capacity cut below its flow leaving the excess and the deficit that FlowNetwork::maxFlow() routes first); each leaves a maximum flow in net, whose minimum cut the observer reads. More...

#include <ADS/graph/Reoptimization.h>

Concept definition

template< class E >
concept FlowEngine = std::default_initializable< E > &&
requires( E & x , FlowNetwork & net , int s , int t ,
Augment how , long long v )
{
{
x.scratch( net , s , t , how )
} -> std::convertible_to< long long >;
{
x.warm( net , s , t , how , v )
} -> std::convertible_to< long long >;
}
a network of flow with integer capacities
Definition MaxFlow.h:126
the engines of the solves of a MaxFlowObserver, objects that the observer keeps: scratch( net ,...
Definition Reoptimization.h:737
Augment
the way of increasing the flow
Definition MaxFlow.h:113

Detailed description

the engines of the solves of a MaxFlowObserver, objects that the observer keeps: scratch( net , s , t , how ) gives the value of a maximum flow of net from the zero flow, and warm( net , s , t , how , v ) that of a maximum flow from the flow that net keeps, of value \( v \) before the capacities changed (a capacity cut below its flow leaving the excess and the deficit that FlowNetwork::maxFlow() routes first); each leaves a maximum flow in net, whose minimum cut the observer reads.

It is the point where a solve by another library plugs in, which runs on a copy of net and gives its flow back by FlowNetwork::assignFlow() [see PreflowEngine of ADS/interop/lemon/Warm.h and Interoperation with LEMON]