码迷,mamicode.com
首页 > 其他好文 > 详细

Strong Components

时间:2016-05-01 12:15:32      阅读:158      评论:0      收藏:0      [点我收藏+]

标签:

Definition:

Vertices v and w are srongly connected if there is a directed path from v to w and a directed path from w to v.

Algorithm:

Phase 1, Compute reverse postorder of the reverse graph of graph G, refer to my blog Topological Sort to know how to compute this.

Phase 2, Run DFS in the order of the results from Phase 1.

Strong Components

标签:

原文地址:http://www.cnblogs.com/dingjunnan/p/5450265.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!