For this result consider the contrary. Let G is a simple connected graph that is not a tree and has some spanning tree T using both breadth-first and depth-first search. As G is not a tree, there must be a cycle in G. If breadth-first is used the loss of generality assumed is the first in the cycle C to be encountered, then will be children of for all. On the other hand, if used depth-first, all the vertices in C will appear on a single path, thus proving by contradiction.
Therefore, the connected simple graph has a tree.