speed up using trove
Optimize:If a vertex is already included a scc then do not visit it.