TSORT(CP) XENIX System V TSORT(CP)
Name
tsort - Sorts a file topologically.
Syntax
tsort [ file ]
Description
tsort produces on the standard output a totally ordered list
of items consistent with a partial ordering of items
mentioned in the input file. If no file is specified, the
standard input is understood.
The input consists of pairs of items (nonempty strings)
separated by blanks. Pairs of different items indicate
ordering. Pairs of identical items indicate presence, but
not ordering.
See Also
lorder(CP)
Diagnostics
Odd data: There is an odd number of fields in the input
file.
Notes
The sort algorithm is quadratic, which can be slow if you
have a large input list.
Page 1 (printed 8/7/87)