結果 : dfs and bfs algorithm with example