摘要: 求强连通分量个数View Code void tarjan(int u){ dfn[u]=low[u]=++idx ; vis[u]=1 ; st[++tp]=u ; int v ; for(int i=head[u];i;i=e[i].next) { ... 阅读全文