Consider performing depth-first search (DFS) on an undirected and unweighted graph starting at vertex . For any vertex in , is the length of the shortest path from to . Let be an edge in such that . If the edge is explored first in the direction from to during the above DFS, then becomes a edge.
- (A) tree
- (B) cross
- (C) back
- (D) gray
Source: GATE DA