I have a question, which algorithm could I use to find a circle in a graph G=(V,E,w). I know there is a solution by running the improved DFS algorithm on G and then run on every edge and check this condition:
Defining edge like: e = (x, y)
where x
point to y
.
if(low[y] <= d[x])
e is inside a circle
I am not quite sure if this is the solution, someone can help me figure this out?
Thank you !