mst fix
fixes mst test
Merge pull request #498 from nontas/mst_fix

Minimum spanning tree bug fix