Graphs -> Kruskals Algorithm implementation.