From bc7a54f2a10ff3bb76cf4920be53000264bad279 Mon Sep 17 00:00:00 2001 From: mzuenni Date: Tue, 29 Aug 2023 01:07:11 +0200 Subject: consistency --- graph/kruskal.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'graph/kruskal.cpp') diff --git a/graph/kruskal.cpp b/graph/kruskal.cpp index d21da01..987d30b 100644 --- a/graph/kruskal.cpp +++ b/graph/kruskal.cpp @@ -1,7 +1,7 @@ sort(all(edges)); -vector mst; +vector mst; ll cost = 0; -for (edge& e : edges) { +for (Edge& e : edges) { if (findSet(e.from) != findSet(e.to)) { unionSets(e.from, e.to); mst.push_back(e); -- cgit v1.2.3