call method
Computes the maximum flow between source
and target
.
Implementation
num call(V source, V target) {
final mappedSource = _mapping[source], mappedTarget = _mapping[target];
if (mappedSource == null) {
throw GraphError(source, 'source', 'Unknown vertex');
}
if (mappedTarget == null) {
throw GraphError(target, 'target', 'Unknown vertex');
}
return _maxFlow(mappedSource, mappedTarget);
}