method

tsort

tsort(vertices)
public

Topologically sorts the given vertices. @param [Enumerable] vertices the vertices to be sorted, which must

all belong to the same graph.

@return [Array] The sorted vertices.