Here is a search for a simple loop. What needs to be added to find everything? Check the graph for acyclicity and finding a cycle

1 answer 1

Crawling into the depths, marking the arcs that have been traversed and if you stumble upon them, then you skip, you make a return, you look further ...