Examveda

What does the term "back edge" refer to in DFS?

A. An edge that causes a cycle in the graph.

B. An edge that connects two nodes in the same level.

C. An edge that connects a node to its ancestor in the DFS tree.

D. An edge that connects a node to a descendant in the DFS tree.

Answer: Option C


Join The Discussion

Related Questions on Graph Algorithms (DFS, BFS, Dijkstras, etc)