Call bfs by default.