Fixed a bug of KruskalMinimumSpanningTree().