I am trying to retrieve all possible paths based on some conditions from source to destination using iterative depth-first search (not recursion). I already solved the problem using recursion.
Now, I am wondering if we can retrieve all paths in an undirected graph from source to destination without help of recursion..
Can you please help me clarify and explain me what I should do to this problem? Or do you need to stick with recursion for the ease?