A visual study of Kruskal algorithm

Place trees or move them with the mouse. Edges are created if their distances are less than 100px. Kruskal's algorithm is used to create a minimum spanning tree.