Ouput Kruskal solution