2件ヒット
[1-2件を表示]
(0.020秒)
別のキーワード
キーワード
-
rubygems
/ commands / fetch _ command (1) - tsort (1)
検索結果
-
rubygems
/ commands / fetch _ command (18040.0) -
Gem パッケージをダウンロードしてカレントディレクトリに保存するためのライブラリです。
Gem パッケージをダウンロードしてカレントディレクトリに保存するためのライブラリです。
Usage: gem fetch GEMNAME [GEMNAME ...] [options]
Options:
-v, --version VERSION 指定されたバージョンの Gem を取得します
--platform PLATFORM 指定されたプラットフォームの Gem を取得します
Local/Remote Options:
-B, --bulk-threshold COUNT ... -
tsort (40.0)
-
tsort はトポロジカルソートと強連結成分に関するモジュールを提供します。
tsort はトポロジカルソートと強連結成分に関するモジュールを提供します。
=== Example
//emlist[][ruby]{
require 'tsort'
class Hash
include TSort
alias tsort_each_node each_key
def tsort_each_child(node, &block)
fetch(node).each(&block)
end
end
{1=>[2, 3], 2=>[3], 3=>[], 4=>[]}.tsort
#=> [3, 2, 1, 4]
{1=>[2], 2=>[3, 4...