• retagged by
3,455 views
0 0 votes
True or False , with reason.

For a directed graph, the absence of back edges with respect to a BFS tree implies that the graph is acyclic?

Answer is False

Explanation:

FALSE. It is true that the absence of back edges with respect to a DFS tree implies that the graph is acyclic. However, the same is not true for a BFS tree. There may be cross edges which go from one branch of the BFS tree to a lower level of another branch of the BFS tree. It is possible to construct a cycle using such cross edges (which decrease the level) and using forward edges (which increase the level)

 

Can someone explain it ?

1 Answer

Best answer
2 2 votes

Back Edge : an edge that connects a vertex to a vertex that is it's ancestor.

 

Start the $BFS$ from vertex $A$ then you take : $AB,AC,AD$, they are tree edges.

Now you take $BC$ it is a cross edge, then $CD$ it is also a cross edge then $DE$ this is a tree edge.

Then you can take $EB$ this is a cross edge.

So, there are no back edges but still a cycle $EBCD$ exists.

• edited by
Position:
Show:

Related questions

1 1 vote
2 2 answers
1.4k
1.4k views
saptarshiDey asked Feb 1, 2019
1,382 views
What will be the path from A-H if BFS is used in the following graph?
1 1 vote
0 0 answers
1.9k
1.9k views
Markzuck asked Dec 30, 2018
1,861 views
Can someone please explain what are the types of edges possible in BFS and DFS for DIRECTED as well as UNDIRECTED graphs?Individual meaning of BACK, FRONT and CROSS edges...
0 0 votes
0 0 answers
746
746 views
Lakshman Bhaiya asked Nov 13, 2018
746 views
$0-1$ $BFS$ (Breadth First Search)al is used to find the shortest distance between two nodes in a graph providedthat the edges in the graph have the weights $0$ or $1.$Wh...
0 0 votes
2 2 answers
2.2k
2.2k views
srestha asked Jun 30, 2018
2,222 views
How through a BFS we can find graph is connected or disconnected? Plz give some example and explain