...

/

Challenge: Detect a Cycle in a Graph

Challenge: Detect a Cycle in a Graph

Here's another coding challenge on graphs. You'll implement a cool function which detects loops!

Problem statement

The concept of loops or cycles is very common in graph theory. A cycle exists when you traverse the graph and come upon a vertex which has already been visited.

You have to implement ...