Not the best min span tree, but whatevs