Check if there's a cycle in an undirected graph

684 Views Asked by At

I'm trying to find an algorithms that checks if there's a cycle in a given undirected graph G=(V,E).

But I didn't succeed.

Can anyone give me such an algorithm?