retagged by
3,589 views
4 votes
4 votes

​​​​Let $G$ be a directed graph and $T$ a depth first search $\text{(DFS)}$ spanning tree in $G$ that is rooted at a vertex $v$. Suppose $T$ is also a breadth first search $\text{(BFS)}$ tree in $G$, rooted at $v$. Which of the following statements is/are TRUE for every such graph $G$ and tree $T$?

  1. There are no back-edges in $G$ with respect to the tree $T$
  2. There are no cross-edges in $G$ with respect to the tree $T$
  3. There are no forward-edge in $G$ with respect to the tree $T$
  4. The only edges in $G$ are the edges in $T$ 
retagged by

2 Answers

5 votes
5 votes

1. Back edge possible

2. cross edge possible

3. all edge of G not in T

Forward edge cant be there else it wont give same BFS and DFS 

Ans must be option C which always true 

0 votes
0 votes
Cross Edges can be present.
edited by
Answer:

Related questions

1 votes
1 votes
2 answers
1
Arjun asked Feb 16
2,104 views
The number of edges present in the forest generated by the $\text{DFS}$ traversal of an undirected graph $G$ with $100$ vertices is $40$. The number of connected componen...