Topic: Graph Theory Problem / Level: intermediate

Problem: Write a program to find the longest cycle in an undirected graph using BFS.

Run the code to see the output here...