summaryrefslogtreecommitdiff
path: root/content/graph/maxWeightBipartiteMatching.cpp
diff options
context:
space:
mode:
authorGloria Mundi <gloria@gloria-mundi.eu>2024-11-16 21:17:29 +0100
committerGloria Mundi <gloria@gloria-mundi.eu>2024-11-16 21:17:29 +0100
commit1880ccb6d85c6eb79e724593457877bab431951c (patch)
tree23eddd5bd0b29b3024e170a5ef9023eda9226ab5 /content/graph/maxWeightBipartiteMatching.cpp
parente95f59debd69ee7d45d5c966ce466d23264e1c3c (diff)
get rid of all() and sz()
Diffstat (limited to 'content/graph/maxWeightBipartiteMatching.cpp')
-rw-r--r--content/graph/maxWeightBipartiteMatching.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/content/graph/maxWeightBipartiteMatching.cpp b/content/graph/maxWeightBipartiteMatching.cpp
index a2b0a80..b6f6ddf 100644
--- a/content/graph/maxWeightBipartiteMatching.cpp
+++ b/content/graph/maxWeightBipartiteMatching.cpp
@@ -45,6 +45,6 @@ double match(int l, int r) {
yx[y] = aug[y];
swap(y, xy[aug[y]]);
}}
- return accumulate(all(lx), 0.0) +
- accumulate(all(ly), 0.0); // Wert des Matchings
+ return accumulate(begin(lx), end(lx), 0.0) +
+ accumulate(begin(ly), end(ly), 0.0); // Wert des Matchings
}