Topic: Graph Theory Problem / Level: intermediate

Problem: Write a program to check if a directed acyclic graph contains any simple paths.

Run the code to see the output here...