Cycle Detection in Un-directed Graph using DFS


there are two errors plz check and let me know the fix


here you go
minor mistake thi
map[something] tha it should be it’s name visited[something]
and if se pehle ‘/’ extra tha so it read the if but not the else if