Topic: Graph Theory Problem / Level: beginner

Problem: Write a program to print all nodes that are part of a simple path in a directed acyclic graph.

Run the code to see the output here...