12件ヒット
[1-12件を表示]
(0.357秒)
検索結果
先頭1件
-
tsort (7.0)
-
tsort はトポロジカルソートと強連結成分に関するモジュールを提供します。
...triple = [outputs, inputs, block]
outputs.each {|f| @dep[f] = [triple]}
@dep[triple] = inputs
end
def build(target)
each_strongly_connected_component_from(target) {|ns|
if ns.length != 1
fs = ns.delete_if {|n| Array === n}
raise TSort::Cyclic.new("cyclic dep...