summaryrefslogtreecommitdiff
path: root/graph/maxWeightBipartiteMatching.cpp
diff options
context:
space:
mode:
authorMZuenni <michi.zuendorf@gmail.com>2022-11-30 12:43:27 +0100
committerMZuenni <michi.zuendorf@gmail.com>2022-11-30 12:43:27 +0100
commit03788f48be2634c36cd19ba25b0a851685b9c877 (patch)
treeef430668558366afe95d958d26250361f5452666 /graph/maxWeightBipartiteMatching.cpp
parent99259d60cb345eae15211397f3199aa86ac2bceb (diff)
use all macro
Diffstat (limited to 'graph/maxWeightBipartiteMatching.cpp')
-rw-r--r--graph/maxWeightBipartiteMatching.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/graph/maxWeightBipartiteMatching.cpp b/graph/maxWeightBipartiteMatching.cpp
index ef99232..e7e186e 100644
--- a/graph/maxWeightBipartiteMatching.cpp
+++ b/graph/maxWeightBipartiteMatching.cpp
@@ -54,6 +54,6 @@ double match(int l, int r) {
y = prec;
}}
// Wert des Matchings
- return accumulate(lx.begin(), lx.end(), 0.0) +
- accumulate(ly.begin(), ly.end(), 0.0);
+ return accumulate(all(lx), 0.0) +
+ accumulate(all(ly), 0.0);
}