edited by
563 views
0 votes
0 votes

Which of the following statements are true?

  1.  In a depth-first search of an undirected graph $G,$every edge of $G$ is either a tree edge or a back edge
  2. Forward and cross edges never occur in a depth-first search of an undirected graph
  3. A directed graph is acyclic if and only if a depth-first search yields no back edges
  1. $1$          
  2. $1$ and $2$    
  3. $2$ and $3$       
  4. All of these
edited by

1 Answer

0 votes
0 votes
d

In directed graph , no vertex visited twice means Acyclic graph then No back edges in directed graph means Acyclic graph.

Related questions

1 votes
1 votes
0 answers
1
5 votes
5 votes
1 answer
4
manvi_agarwal asked Sep 15, 2018
2,522 views
Also let me know the approach to find back edges, cross edges, forward edges,How to solve these questions