r/computerscience • • Apr 21 '25
Help Doubt in Dsa
Guys, while traversing a directed graph using BFS or DFS, some nodes may not be reachable. What should we do in that case? Is it okay to leave ?
28
Upvotes


View all comments
Show parent comment
1
u/[deleted] Apr 21 '25
Yes i performed 2 traversal 1 from A and another from K