別のキーワード
ライブラリ
- ビルトイン (176)
-
bigdecimal
/ util (12) - csv (174)
- etc (12)
-
fiddle
/ import (24) - json (372)
-
json
/ add / bigdecimal (12) -
json
/ add / complex (12) -
json
/ add / date (12) -
json
/ add / date _ time (12) -
json
/ add / exception (12) -
json
/ add / range (12) -
json
/ add / rational (12) -
json
/ add / regexp (12) -
json
/ add / struct (12) -
json
/ add / time (12) - matrix (144)
- monitor (54)
-
net
/ http (216) - open-uri (24)
- optparse (660)
- pathname (24)
- prime (36)
- rake (12)
-
rexml
/ document (48) -
rexml
/ streamlistener (12) - rubygems (12)
-
rubygems
/ requirement (60) -
rubygems
/ specification (84) - set (36)
- socket (48)
- strscan (12)
- thread (12)
- tsort (58)
- win32ole (12)
クラス
- Addrinfo (36)
- Array (12)
- BigDecimal (12)
- CSV (120)
-
CSV
:: Row (6) -
CSV
:: Table (24) - Class (12)
- Complex (12)
- Date (12)
- DateTime (12)
- Exception (36)
-
Gem
:: Requirement (60) -
Gem
:: Specification (84) - IO (12)
- Integer (12)
-
JSON
:: Parser (24) -
JSON
:: State (216) - Matrix (132)
-
Matrix
:: LUPDecomposition (12) - Method (12)
- Module (12)
- Monitor (42)
-
Net
:: HTTP (12) -
Net
:: HTTPGenericRequest (12) -
Net
:: HTTPResponse (108) - OptionParser (576)
- Pathname (24)
- Prime (24)
-
REXML
:: Document (24) -
REXML
:: Instruction (24) -
Rake
:: Application (12) - Range (12)
- Rational (24)
- Regexp (12)
-
RubyVM
:: InstructionSequence (24) - Set (36)
- Socket (12)
- String (12)
- StringScanner (12)
- Struct (12)
-
Thread
:: Queue (36) -
Thread
:: SizedQueue (36) - Time (12)
- UnboundMethod (12)
-
WIN32OLE
_ TYPE (12)
モジュール
- Enumerable (32)
-
Fiddle
:: Importer (24) -
JSON
:: Generator :: GeneratorMethods :: Array (12) -
JSON
:: Generator :: GeneratorMethods :: FalseClass (12) -
JSON
:: Generator :: GeneratorMethods :: Float (12) -
JSON
:: Generator :: GeneratorMethods :: Hash (12) -
JSON
:: Generator :: GeneratorMethods :: Integer (12) -
JSON
:: Generator :: GeneratorMethods :: NilClass (12) -
JSON
:: Generator :: GeneratorMethods :: Object (12) -
JSON
:: Generator :: GeneratorMethods :: String (12) -
JSON
:: Generator :: GeneratorMethods :: TrueClass (12) - Kernel (24)
- MonitorMixin (12)
-
Net
:: HTTPExceptions (12) -
Net
:: HTTPHeader (72) -
OpenURI
:: Meta (24) -
OptionParser
:: Arguable (84) -
REXML
:: StreamListener (12) - TSort (58)
キーワード
- == (12)
- === (12)
- =~ (12)
- JSON (12)
- accept (12)
-
add
_ dependency (12) -
add
_ development _ dependency (12) -
add
_ loader (12) -
add
_ runtime _ dependency (12) -
allow
_ nan? (12) -
array
_ nl (12) -
array
_ nl= (12) - autoload (12)
-
backtrace
_ locations (12) - bind (12)
- binread (12)
- body (12)
- canonname (12)
-
check
_ circular? (12) - cleanpath (12)
- clone (9)
- code (12)
-
cofactor
_ expansion (12) - component (12)
- concat (24)
- configure (12)
- conj (12)
- conjugate (12)
- connect (12)
-
connect
_ from (24) - content (12)
-
content
_ encoding (12) -
content
_ length (12) -
content
_ length= (12) -
content
_ range (12) -
content
_ type (24) -
content
_ type= (12) - convert (36)
- converters (12)
- deconstruct (3)
-
deconstruct
_ keys (3) -
default
_ argv (12) -
default
_ argv= (12) -
default
_ event _ sources (12) - deq (24)
- dup (9)
-
each
_ strongly _ connected _ component (23) -
each
_ strongly _ connected _ component _ from (23) - eigen (12)
- eigensystem (12)
- enter (12)
- entity (12)
- entitydecl (12)
- environment (12)
- exit (12)
-
field
_ size _ limit (12) -
first
_ lineno (12) - gem (12)
- getopts (12)
- head (12)
-
header
_ convert (36) -
header
_ converters (12) - help (12)
-
http
_ version (12) - indent (12)
- indent= (12)
-
int
_ from _ prime _ division (12) - intersection (9)
-
json
_ creatable? (12) -
laplace
_ expansion (12) - load (12)
- lup (12)
-
lup
_ decomposition (12) -
max
_ nesting (12) -
max
_ nesting= (12) - merge (12)
-
mon
_ enter (18) -
mon
_ exit (6) - msg (12)
- none? (20)
-
object
_ nl (12) -
object
_ nl= (12) -
on
_ head (12) -
on
_ tail (12) - one? (24)
- order (48)
- order! (48)
- parse (36)
- parse! (24)
-
parse
_ csv (12) - pathconf (12)
- permute (24)
- permute! (24)
- pop (24)
-
prime
_ division (24) -
program
_ name (12) -
program
_ name= (12) -
read
_ body (24) - reject (12)
- release (12)
-
required
_ ruby _ version (12) -
required
_ ruby _ version= (12) -
required
_ rubygems _ version (12) -
required
_ rubygems _ version= (12) - response (12)
-
response
_ body _ permitted? (12) -
satisfied
_ by? (12) - separator (12)
-
set
_ content _ type (12) - shift (24)
- solve (12)
- source (12)
-
source
_ location (24) - space (12)
- space= (12)
-
space
_ before (12) -
space
_ before= (12) -
stand
_ alone? (12) -
strongly
_ connected _ components (12) - summarize (24)
-
summary
_ indent (12) -
summary
_ indent= (12) -
summary
_ width (12) -
summary
_ width= (12) - target (12)
-
to
_ a (24) -
to
_ csv (24) -
to
_ d (12) -
to
_ h (12) -
to
_ hash (12) -
to
_ json (228) -
to
_ s (24) - tr (12)
- trace (12)
-
unconverted
_ fields? (12) - union (21)
- value (12)
- ver (12)
- version (12)
-
wait
_ for _ cond (6)
検索結果
先頭5件
-
TSort
# strongly _ connected _ components -> Array (27413.0) -
強連結成分の集まりを配列の配列として返します。 この配列は子から親に向かってソートされています。 各要素は強連結成分を表す配列です。
...t[使用例][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
non_sort = {1=>[2], 2=>[3, 4], 3=>[2], 4=>[]}
p non_sort.strongly_connected_components
#=> [[4], [2, 3], [1]]
//}
@see TSort.......strongly_connected_components... -
Gem
:: Specification # required _ ruby _ version -> Gem :: Requirement (24518.0) -
この Gem パッケージを動作させるのに必要な Ruby のバージョンを返します。
...この Gem パッケージを動作させるのに必要な Ruby のバージョンを返します。... -
Gem
:: Specification # required _ ruby _ version=(requirement) (24518.0) -
この Gem パッケージを動作させるのに必要な Ruby のバージョンをセットします。
...この Gem パッケージを動作させるのに必要な Ruby のバージョンをセットします。
@param requirement Gem::Requirement.create が受け付ける形式のオブジェクトを指定します。
@see Gem::Requirement... -
Gem
:: Specification # required _ rubygems _ version -> Gem :: Requirement (24501.0) -
この Gem パッケージを動作させるのに必要な RubyGems のバージョンを返します。
...この Gem パッケージを動作させるのに必要な RubyGems のバージョンを返します。... -
Gem
:: Specification # required _ rubygems _ version=(requirement) (24501.0) -
この Gem パッケージを動作させるのに必要な RubyGems のバージョンをセットします。
...この Gem パッケージを動作させるのに必要な RubyGems のバージョンをセットします。
@param requirement Gem::Requirement.create が受け付ける形式のオブジェクトを指定します。
@see Gem::Requirement... -
OptionParser
# on(short , long , desc = "") {|v| . . . } -> self (24429.0) -
オプションを取り扱うためのブロックを自身に登録します。 ブロックはコマンドラインのパース時に、オプションが指定されていれば呼ばれます。
...ます。
opts.on("-r", "--require LIBRARY"){|lib| ...}
これは以下と同値です。
opts.on("-r LIBRARY"){|lib| ...}
opts.on("--require LIBRARY"){|lib| ...}
複数の異なるオプションに同じブロックを一度に登録することもできます。
opt.on('-v', '-vv'){|boo......lean| ...}
opt.on('--require X', '--need', '--dependon'){|x| ... }
@param short ショートオプションを表す文字列を指定します。
そのオプションが引数をとらない場合は、
//emlist{
on("-x"){|boolean| ...}
//}
となります。コマ......合 true を引数と
してブロックを評価します。
ショートオプションが引数をとる場合は、以下のようになります。
//emlist{
on("-x MANDATORY"){|val| ...} # " MANDATORY" の部分は任意の文字列で構いません
on("-xSTRING"... -
TSort
# each _ strongly _ connected _ component -> Enumerator (24413.0) -
TSort#strongly_connected_components メソッドのイテレータ版です。 obj.each_strongly_connected_component は obj.strongly_connected_components.each に似ていますが、 ブロックの評価中に obj が変更された場合は予期しない結果になる ことがあります。
...
TSort#strongly_connected_components メソッドのイテレータ版です。
obj.each_strongly_connected_component は
obj.strongly_connected_components.each に似ていますが、
ブロックの評価中に obj が変更された場合は予期しない結果になる
ことがあります。......trongly_connected_component は nil を返します。
//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
non_sort = {1=>[2], 2=>[3, 4], 3=>[2], 4=>[]}
non_sort.each_st......rongly_connected_component{|nodes|
p nodes
}
#出力
#=> [4]
#=> [2, 3]
#=> [1]
//}
@see TSort.each_strongly_connected_component... -
TSort
# each _ strongly _ connected _ component {|nodes| . . . } -> nil (24413.0) -
TSort#strongly_connected_components メソッドのイテレータ版です。 obj.each_strongly_connected_component は obj.strongly_connected_components.each に似ていますが、 ブロックの評価中に obj が変更された場合は予期しない結果になる ことがあります。
...
TSort#strongly_connected_components メソッドのイテレータ版です。
obj.each_strongly_connected_component は
obj.strongly_connected_components.each に似ていますが、
ブロックの評価中に obj が変更された場合は予期しない結果になる
ことがあります。......trongly_connected_component は nil を返します。
//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
non_sort = {1=>[2], 2=>[3, 4], 3=>[2], 4=>[]}
non_sort.each_st......rongly_connected_component{|nodes|
p nodes
}
#出力
#=> [4]
#=> [2, 3]
#=> [1]
//}
@see TSort.each_strongly_connected_component... -
TSort
# each _ strongly _ connected _ component _ from(node , id _ map={} , stack=[]) -> Enumerator (24413.0) -
node から到達可能な強連結成分についてのイテレータです。
...ん。
each_strongly_connected_component_from は
tsort_each_node を呼びません。
@param node ノードを指定します。
//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
non_sort = {1=>[2], 2=>[3, 4], 3=>[2], 4=>[]}
non_sort.each_strongly_connected_component{|nodes|
p nodes
nodes.each {|node|
non_sort.each_strongly_connected_component_from(node){|ns|
printf("%s -> %s\n", node, ns.join(","))
}
}
}......#出力
#=> [4]
#=> 4 -> 4
#=> [2, 3]
#=> 2 -> 4
#=> 2 -> 2,3
#=> 3 -> 4
#=> 3 -> 3,2
#=> [1]
#=> 1 -> 4
#=> 1 -> 2,3
#=> 1 -> 1
//}
@see TSort.each_strongly_connected_component_from...