diff options
Diffstat (limited to 'content/graph/dinicScaling.cpp')
| -rw-r--r-- | content/graph/dinicScaling.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/content/graph/dinicScaling.cpp b/content/graph/dinicScaling.cpp index 0082c05..fd82296 100644 --- a/content/graph/dinicScaling.cpp +++ b/content/graph/dinicScaling.cpp @@ -43,6 +43,7 @@ ll dfs(int v, ll flow) { ll maxFlow(int source, int target) { s = source, t = target; ll flow = 0; + // lim = 1 may be faster if capacities are small for (ll lim = (1LL << 62); lim >= 1; lim /= 2) { while (bfs(lim)) { pt.assign(ssize(adj), 0); |
