Parsed input, executed kruskal algorithm