Hello everyone,Can you assist me ? I want code(c++) for cycle detection in graph using recursive dfs.I know there are many resources available out there but either they are not well explained or too Hi-fi for me.It would be best if you can add some comments if possible.
P.S : I know union find Data structure but still I would like to know some more application of dfs.Please help me in this regard
For cycle detection... i have a best approach of dfs. Do refer to this question. I have done cycle detection using dfs keeping record of from which x and y they are called .
for complete code refer here