Exposing BFS or DFS through settings