However a compute node may appear in one or more trees because it may be few hops away from multiple bridge nodes.
once all the trees are formed, we examine each tree rooted at a bridge node to decide the new assignment based on the distance from bridge node by invok­ing Traverse (line 7), which we outline in the next section.