Topic: Graph Theory Problem / Level: beginner

Problem: Write a function to find all leaf nodes in a graph.

Run the code to see the output here...