Check cyclic dependencies on the entire graph