Given a weighted, **undirected**, connected graph with **n** vertices, find the total weight of its **Minimum Spanning Tree (MST)** — the subset of edges that connects all vertices with the minimum possible total edge weight and no cycles.
Implement this using **Kruskal's algorithm** (sort edges + Union-Find).
Interactive graph explorer available!
Switch to the Visualize tab to build a custom graph and animate BFS traversal to test your intuition.