move anchor
calculating the minimum-spanning-tree of a graph