usg big scc to find shortest paths