Recognizing breadth-first search trees in linear time

Abstract A linear-time algorithm for the following problem is presented: Given an undirected graph G=(V,E) and a spanning tree T of G, determine whether Tcan be the outcome of a breadth-first search on G, and if so, find all possible roots of the breadth-first search.