BSD 4_1_snap development
[unix-history] / usr / man / man1 / tsort.1
CommitLineData
e3758c96
C
1.TH TSORT 1
2.SH NAME
3tsort \- topological sort
4.SH SYNOPSIS
5.B tsort
6[ file ]
7.SH DESCRIPTION
8.I Tsort
9produces on the standard output a totally ordered list of items
10consistent with a partial ordering of items
11mentioned in the input
12.IR file .
13If no
14.I file
15is specified, the standard input is understood.
16.PP
17The input consists of pairs of items (nonempty strings)
18separated by blanks.
19Pairs of different items indicate ordering.
20Pairs of identical items indicate presence, but not ordering.
21.SH "SEE ALSO"
22lorder(1)
23.SH DIAGNOSTICS
24Odd data: there is an odd number of fields in the input file.
25.SH BUGS
26Uses a quadratic algorithm;
27not worth fixing for the typical use of ordering
28a library archive file.