Question:medium

Consider performing depth-first search (DFS) on an undirected and unweighted graph G starting at vertex s. For any vertex u in G, d[u] is the length of the shortest path from s to u. Let (u, v) be an edge in G such that d[u] < d[v]. If the edge (u, v) is explored first in the direction from u to v during the above DFS, then (u, v) becomes a _____ edge.

Updated On: Nov 25, 2025
  • tree
  • cross
  • back
  • gray
Hide Solution

The Correct Option is A

Solution and Explanation

The correct option is (A), which is "tree".
Was this answer helpful?
0


Questions Asked in GATE AR exam