Topic: Graph Theory Problem / Level: beginner

Problem: Write a program to print all edges in a directed acyclic graph that form a simple cycle.

Run the code to see the output here...