摘要: Detect Cycle in a Directed Graph https://www.geeksforgeeks.org/detect-cycle-in-a-graph/ 有向图里的环必须是 a->b b->c c->a 类似这种的环(包括自环)。 这学期刚上过算法,dfs遍历图会得到dfs t 阅读全文
posted @ 2019-06-02 14:14 約束の空 阅读(377) 评论(0) 推荐(0)