graph is ready to perform a modified DFS that will determine if the graph is cyclic