Updates for topologicalSorter()