tsort(1) CLIX tsort(1)
NAME
tsort - Runs a topological sort
SYNOPSIS
tsort [file]
DESCRIPTION
The tsort command produces on stdout a totally ordered list of items
consistent with a partial ordering of items mentioned in the input file.
If no file is specified, stdin 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.
EXAMPLES
To produce a topological sort of myfile on stdout, enter the following:
tsort myfile
DIAGNOSTICS
odd data There is an odd number of fields in the input file.
EXIT VALUES
The tsort command returns 0 on success; if an error is encountered it
returns 1.
RELATED INFORMATION
Commands: lorder(1)
2/94 - Intergraph Corporation 1