I wrote a very simple implementation of cycle detection in an undirected graph; I\'m not interested in applying it to any real-life case: it\'s just for explaining the basic