an R implementation of SCC, ran into recursion limit problems for large graph