


TSORT(1)                 USER COMMANDS                   TSORT(1)



NAME
     tsort - topological sort

SYNOPSIS
     tsort [ _f_i_l_e_n_a_m_e ]

DESCRIPTION
     tsort produces on the standard output a totally ordered list
     of  items  consistent  with a partial ordering of items men-
     tioned in the input _f_i_l_e_n_a_m_e.  If no _f_i_l_e_n_a_m_e is  specified,
     the standard input is understood.

     The input consists of  pairs  of  items  (nonempty  strings)
     separated  by  SPACE  characters.   Pairs of different items
     indicate ordering.  Pairs of identical items indicate  pres-
     ence, but not ordering.

SEE ALSO
     lorder(1)

BUGS
     Uses a quadratic algorithm; not worth fixing for the typical
     use of ordering a library archive file.
































Sun Release 4.1   Last change: 9 September 1987                 1



