Given above is the directed graph representing nodes and edges. Chose the correct option for nodes after topological sorting?
(A) 5 4 2 3 1 0
(B) 0 1 3 2 4 5
(C) 5 0 1 2 3 4
(D) 5 0 4 1 2 3
Answer: (A)
Explanation: Refer : https://www.geeksforgeeks.org/topological-sorting/
Quiz of this Question
Please comment below if you find anything wrong in the above post
Publicación traducida automáticamente
Artículo escrito por GeeksforGeeks-1 y traducido por Barcelona Geeks. The original can be accessed here. Licence: CCBY-SA