title: Finding the cycle in an undirected graph using BFS
body: <p>I want to find first cycle in an undirected graph using BFS only(NOT DFS). All sources solved this problem with DFS but I have to find it using BFS. How can I find it? Thanks in advance!</p>