6.00.2x-CS-Python: DFS implementation.