kruskals algorithm

Input interpretation

Kruskal's algorithm