Topic: Graph Theory Problem / Level: beginner

Problem: Write a function to check if a graph is a forest.

Run the code to see the output here...