MCQ · 2 marks · Graph Algorithms

GATE CS 2018 CS — Q30

Let GG be a simple undirected graph. Let TDT_D be a depth first search tree of GG. Let TBT_B be a breadth first search tree of GG. Consider the following statements.

(I) No edge of GG is a cross edge with respect to TDT_D. (A cross edge in GG is between two nodes neither of which is an ancestor of the other in TDT_D.)
(II) For every edge (u,v)(u, v) of GG, if uu is at depth ii and vv is at depth jj in TBT_B, then ∣i−j∣=1|i - j| = 1.

Which of the statements above must necessarily be true?
Select one option