add a comment about topological sorting