better strategy to identify cyclic using strongly connected components