update spanning_tree