Topic: Graph Theory Problem / Level: beginner

Problem: Implement a function to check if a directed graph has any self-loops.

Run the code to see the output here...