We have other implementations of topological sort.  Can we merge them?