summaryrefslogtreecommitdiff
path: root/graph/pushRelabel3.cpp
diff options
context:
space:
mode:
authormzuenni <michi.zuendorf@gmail.com>2023-01-10 11:40:09 +0100
committermzuenni <michi.zuendorf@gmail.com>2023-01-10 11:40:09 +0100
commitfd1f2b36e95c03625297b7b8cba3b1a04a0cc0ed (patch)
treeb143619750b90fbfa45a98be9ea56904d1a7129d /graph/pushRelabel3.cpp
parent8faa84ca282d51e9ce4fef535e68325adabcebad (diff)
change whitespaces
Diffstat (limited to 'graph/pushRelabel3.cpp')
-rw-r--r--graph/pushRelabel3.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/graph/pushRelabel3.cpp b/graph/pushRelabel3.cpp
index d4d2e67..bdbe0a5 100644
--- a/graph/pushRelabel3.cpp
+++ b/graph/pushRelabel3.cpp
@@ -17,7 +17,7 @@ void addEdge(int from, int to, ll c) {
void addFlow(int id, ll f) {
if (ec[edges[id].to] == 0 && f > 0)
- hs[H[edges[id].to]].push_back(edges[id].to);
+ hs[H[edges[id].to]].push_back(edges[id].to);
edges[id].f += f;
edges[id^1].f -= f;
ec[edges[id].to] += f;
@@ -45,7 +45,7 @@ ll maxFlow(int s, int t) {
for (int i = 0; i < sz(adjlist[u]); i++) {
int id = adjlist[u][i];
if (edges[id].c - edges[id].f > 0 &&
- H[u] > H[edges[id].to] + 1) {
+ H[u] > H[edges[id].to] + 1) {
H[u] = H[edges[id].to] + 1;
cur[u] = i;
}}