105件ヒット
[101-105件を表示]
(0.049秒)
別のキーワード
ライブラリ
- prettyprint (12)
- tsort (93)
クラス
- PrettyPrint (12)
モジュール
- TSort (93)
キーワード
-
each
_ strongly _ connected _ component (23) -
each
_ strongly _ connected _ component _ from (23) - format (12)
-
strongly
_ connected _ components (12) - tsort (12)
-
tsort
_ each (23)
検索結果
-
TSort
. each _ strongly _ connected _ component _ from(node , each _ child , id _ map={} , stack=[]) {|nodes| . . . } -> () (13.0) -
node から到達可能な強連結成分についてのイテレータです。
...callメソッ
ドを持つオブジェクトを指定します。
//emlist[使用例][ruby]{
require 'tsort'
graph = {1=>[2], 2=>[3, 4], 3=>[2], 4=>[]}
each_child = lambda {|n, &b| graph[n].each(&b) }
TSort.each_strongly_connected_component_from(1, each_child) {|scc|
p scc
}
#...