retagged by
1,104 views

2 Answers

0 0 votes
Yes,
Theorem:-> A directed graph has a cycle iff DFS reveals a back edge.

Means if there is cycle then there is compulsory back edge in DFS of G and vice versa.

So here as per ur question by removing 1 edge it becomes acyclic so, then definitely we encounter a Back edge when we do DFS of G.

U may take any no. of examples and cross verify it.
0 0 votes

I hope it is clear now.

Position:
Show:

Related questions

1 1 vote
1 1 answer
138
138 views
Shubham Sharma 2 asked Apr 19
138 views
Given below are two statements: one is labelled as Assertion A and the other is labelled as Reason RAssertion A: Depth first search can be used to perform a topological s...
1 1 vote
1 1 answer
120
120 views
Shubham Sharma 2 asked Apr 19
120 views
Which of the following statements about DFS are correct?It can detect cycles in a graphIt can be used to find connected components.It works for both directed and undirect...
5 5 votes
2 2 answers
823
823 views
gatecse asked Feb 23
823 views
Consider a directed graph $G=(V, E)$, where $V$ is the finite set of vertices and $E$ is the set of directed edges between the vertices. $G$ may contain cycles but there ...
1 1 vote
1 1 answer
464
464 views
GO Classes asked Feb 12
464 views
Suppose the input directed graph $G(V,E)$ is a DAG. For an edge $(u,v)\in E$, which of the following will NEVER be correct in DFS discovery/finish times?$d[u] < d[v] < f[...