Template Function ADS::scc

Function Documentation

template<Graph G>
std::vector<int> ADS::scc(const G &g)

scc(): the strongly connected component of each node, numbered from 1

Post:

each node has a component