摘要: ```cpp include include include include const int N=5001; const int M=500001; struct edge{ int to,next; }edge[M]; int DFN[N],LOW[N],belong[N],head[N],c 阅读全文
posted @ 2019-02-19 12:13 Weakest-konjac 阅读(118) 评论(0) 推荐(1) 编辑
摘要: 有向图强连通分量的Tarjan算法 [有向图强连通分量] 在有向图G中,如果两个顶点间至少存在一条路径,称两个顶点强连通(strongly connected)。如果有向图G的每两个顶点都强连通,称G是一个强连通图。非强连通图有向图的极大强连通子图,称为强连通分量(strongly connecte 阅读全文
posted @ 2019-02-19 12:09 Weakest-konjac 阅读(158) 评论(0) 推荐(1) 编辑