Topic: Graph Theory Problem / Level: beginner

Problem: Implement a function to count the number of vertices with degree 1 in a directed graph.

Run the code to see the output here...