spanning tree. still need to test on cyclic topo