Topic: Graph Theory Problem / Level: intermediate

Problem: Write a program to calculate the total number of paths in a directed acyclic graph.

Run the code to see the output here...