Find a shortest spanning tree.

Find a shortest spanning tree.