If the DFS finishing time f[u] > f[v] for two vertices u and v in a directed graph G, and u and v are in the same DFS tree in the DFS forest, then u is an ancestor of v in the depth-first tree.
(A)
True
(B)
False
Answer: (B)
Explanation:
In a graph with three nodes, r u, and v, with edges (r; u) and (r; v), and r is the starting point for the DFS, u and v are siblings in the DFS tree, neither as the ancestor of the other.
Hence the above statement si false.
Quiz of this Question
Please comment below if you find anything wrong in the above post

… [Trackback]
[…] Read More Information here to that Topic: geeksforgeeks.org/algorithms-graph-traversals-question-12/ […]
… [Trackback]
[…] Here you can find 3824 more Information on that Topic: geeksforgeeks.org/algorithms-graph-traversals-question-12/ […]
… [Trackback]
[…] There you can find 88663 more Information on that Topic: geeksforgeeks.org/algorithms-graph-traversals-question-12/ […]