diff options
Diffstat (limited to 'graph/kruskal.cpp')
| -rw-r--r-- | graph/kruskal.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<edge> mst; +vector<Edge> 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); |
