首页 > 其他 > 详细

Strong Components

时间:2016-05-01 12:12:15      阅读:202      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!