Fucking correctness of spanning tree!!!!!