dep_sort: add all vertices to the topo graph