for this grapth, i created following input:
I found such vertex and edges:
7 -> 11,8
5 -> 11
3 -> 8,10
11 -> 2,9,10
8 -> 9
so input:
but result is:
2,9,10,8,11,3,5,7 but it's wrong, coz on wiki page correct result must be
The graph shown to the left has many valid topological sorts, including:
* 7,5,3,11,8,2,9,10
* 7,5,11,2,3,10,8,9
* 3,7,8,5,11,10,9,2