Quiz
Question 1 of 6. 0 correct, 0 incorrect.
A recursive depth-first search in Python works on small graphs but raises RecursionError on a path of 5,000 vertices. What is the fix?
Hint
The call stack holds one frame for every vertex on the current path.