Outline topological sort