method
tsort_each
tsort_each()
public
The iterator version of the #tsort method. obj.tsort_each is similar to obj.tsort.each, but modification of obj during the iteration may lead to unexpected results.
#tsort_each returns nil. If there is a cycle, TSort::Cyclic is raised.