Computer scienceAlgorithms and Data StructuresAlgorithmsGraph algorithmsTopological sorting algorithms

DFS-based topological sort

Apply it yourself

Report a typo

Take matters into your own hands! Tools that you have: depth-first search, directed acyclic graph. The result we are looking for: a topological sort.

Please note, that the answer should consist only of graph nodes without any braces, spaces, and other symbols.

Oh, almost forgot! The graph:

oriented graph with a unique topological sort

Answer format: 12345

Enter a number
___

Create a free account to access the full topic