I need to decide whether the following statement is true or false. If true, explain why, if false give a counterexample.
Let T be the depth-tree resulting from running the DFS algorithm on a graph G and a source vertex s. G is an undirected graph with a cycle of exactly 3 vertices. So T necessarily does not contain all the shortest paths from s to the other vertices in G.
I think it's true but I don't know how to prove it or to explain why