Added topo order for divergence tree