Topic: Graph Theory Problem / Level: beginner

Problem: Implement a function to print all vertices with degree 2 in a directed graph.

Run the code to see the output here...