We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e1d1a5 commit d8d0268Copy full SHA for d8d0268
structures/graph.py
@@ -46,7 +46,8 @@ def topological_sort(self):
46
47
The algorithm looks at every node, and does a
48
dfs for each node adjacent to the node and then adds
49
- the originating node to a stack. In the end, the stack
+ the originating node to a stack once all adjacent
50
+ nodes have been searched. In the end, the stack
51
will be in order of a possible topological sort.
52
53
Topological sorts are not necessarily unique.
0 commit comments