Doubt in the concept

Sir, I am not clear as to why we have called the dfs_ helper function for all the nodes. Isn’t it repetition?

hello @vageesha

we are calling for every non visited node so there is no repetition