Name
tsort - topological sort
Syntax
tsort [file]
Description
The tsort command 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.
Standards Conformance
tsort is conformant with:
AT&T SVID Issue 2, Select Code 307-127;
and The X/Open Portability Guide II of January 1987.
(printed 6/18/89)