Kruskal’s Algorithm

Char belongs to T/trailtheproot.