Checks whether a graph contains a cycle
Checks whether the provided set of nodes and connections contains a cycle
Checks whether a graph contains a cycle