class Bundler::Molinillo::DependencyGraph
def self.tsort(vertices)
-
(Array
- The sorted vertices.)
Parameters:
-
vertices
(Enumerable
) -- the vertices to be sorted, which must
def self.tsort(vertices) TSort.tsort( lambda { |b| vertices.each(&b) }, lambda { |v, &b| (v.successors & vertices).each(&b) } ) end