Error: infinite loop in my code(Depth First Search)

Printable View