Cycle detection in directed graph using dfs

https://ide.codingblocks.com/s/448047,

bhaiya code check karna ek baar , output sahi ni aari.

hello @CODER_JATIN
ab dekho->

Thik hai bhaiya , done hai :slight_smile:

bhaiya ek baat or btao, agar hamey bfs se krna hota ye ques to kese krte?

topological sort using bfs padha hai tumne?

hanji bhaiya , pdh lia ye topic

ha to wahi to karna hai,
graph ka topological sort nikalne ki kosis karo using bfs
agar nikal gya to cycle nahi hai ,otherwise hai

Acha thik hai bhaiya , krta hu

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.