find strongly connected component of the gtaph