summaryrefslogtreecommitdiff
path: root/graph/blossom.cpp
diff options
context:
space:
mode:
authorMZuenni <michi.zuendorf@gmail.com>2023-03-01 11:36:26 +0100
committerMZuenni <michi.zuendorf@gmail.com>2023-03-01 11:36:26 +0100
commit12afe719ce268bb10aa93a910079a44eb08999b8 (patch)
tree0937a117287eebe3942e0506d27143eff4980d09 /graph/blossom.cpp
parentad8456f7c5d44d3c647b3a368050a5d2f39ae3c3 (diff)
removed trailing whitespaces and use more structured bindings
Diffstat (limited to 'graph/blossom.cpp')
-rw-r--r--graph/blossom.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/graph/blossom.cpp b/graph/blossom.cpp
index 72531c6..13a3246 100644
--- a/graph/blossom.cpp
+++ b/graph/blossom.cpp
@@ -5,7 +5,7 @@ struct GM {
vector<pair<int, int>> label;
int head, tail;
- GM(int n) : adjlist(n), pairs(n + 1, n), first(n + 1, n),
+ GM(int n) : adjlist(n), pairs(n + 1, n), first(n + 1, n),
que(n), label(n + 1, {-1, -1}) {}
void rematch(int v, int w) {
@@ -15,8 +15,7 @@ struct GM {
pairs[t] = label[v].first;
rematch(pairs[t], t);
} else {
- int x = label[v].first;
- int y = label[v].second;
+ auto [x, y] = label[v];
rematch(x, y);
rematch(y, x);
}}