Determining if a graph can cycle.