I ma trying to find if an undirected graph has a cycle or not. and if it doesn\'t have a cycle, get the members of the cycle.
I understand that getting all the cycles