目录 时间戳 时间戳 void dfs(int u)//时间戳,子树的的范围是[dfn[u],dfr[n]] { dfn[u]=++timestamp; for(int i=h[u];~i;i=ne[i]) { int j=e[i]; dfs(j); } dfr[u]=++timestamp; }