This type of algorithms has name **DFS** not BFS