Algorithms | Graph Traversals | Question 8

Last Updated :
Discuss
Comments

Given two vertices in a graph s and t, which of the two traversals (BFS and DFS) can be used to find if there is path from s to t?

Only BFS

Only DFS

Both BFS and DFS

Neither BFS nor DFS

Share your thoughts in the comments