Depth first search

i have understood how the rec is going on but im not understanding how the rec is going on without a base case we haven’t written any base case.

@deepakjumani09 we are only calling our recursive function when we found any not visited node in the adjacency list of src, if all nodes are visited it will not call recursive function and hence will simply return.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.