diff options
Diffstat (limited to 'lib/tsort.rb')
-rw-r--r-- | lib/tsort.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/tsort.rb b/lib/tsort.rb index 0dd68c6b8a..21adeaabfe 100644 --- a/lib/tsort.rb +++ b/lib/tsort.rb @@ -78,9 +78,13 @@ TSort uses Hash internally. --- tsort_each_node {|node| ...} should be implemented by a extended class. + (({tsort_each_node})) is used to iterate for all nodes over a graph. + --- tsort_each_child(node) {|child| ...} should be implemented by a extended class. + (({tsort_each_child})) is used to iterate for child nodes of ((|node|)). + == More Realistic Example Very simple `make' like tool can be implemented as follows: |