Charles.Forsyth20060303-partialeea662d19 years agoHistory
26 lines · 971 B · Text
RawDownload
.TH TSORT 1.SH NAMEtsort \- topological sort.SH SYNOPSIS.B tsort.SH DESCRIPTION.I Tsortreads a set of partial order relations between labels (sequences of non-space characters)from its standard input,and lists the labels on its standard output one per line following a topological sort.Each input line represents a set of inequalities: the first label on the line is less thanall the others on the same line, and should appear earlierin sorted order.(The relation might for instance represent arcs in a directed graph, fromthe first label on a line to the others, or dependency relationships.)Labels on a line are separated by space or tab..SH DIAGNOSTICSIf the input contains cycles,.I tsortprints a diagnostic on standard error for each cycle, listing its members.The members of each cycle will also appear on the standard output, in any order,but after any predecessors outside the cycle..SH SOURCE.B /appl/cmd/tsort.b.SH SEE ALSO.IR sort (1)