kruskal works fine:)