save topo sort