`posets/text/covers` := TEXT(
` `,
`FUNCTION:  covers - covering relation of an acyclic digraph`,
` `,
`CALLING SEQUENCE:  covers(R);`,
`                   covers(R,X);`,
`                   covers(R,n);`,
` `,
`PARAMETERS:  R = an acyclic relation or digraph`,
`             X = a set (the vertex set)`,
`             n = a positive integer (the number of vertices)`,
`   `,
`SYNOPSIS:`,
`  If R is an acyclic set of ordered pairs [a,b], then covers(R) returns`,
`  the covering relation of R, i.e., the smallest subset C of R with the`,
`  property that for every pair [a,b] in R, there exists a directed path`,
`  [a,c_0], [c_0,c_1], ..., [c_k,b] to a from b through edges in C.`,
`   `,
`  More generally, if R is the edge set of any digraph D, then covers(R)`,
`  returns the covering relation of the acyclic subgraph of D induced by`,
`  the vertices that cannot reach a cycle of D via some directed path.`,
`   `,
`  covers(R,X) does the same, if the vertex set of R is X.`,
`  covers(R,n) does the same, if the vertex set of R is {1,...,n}.`,
`   `,
`EXAMPLES:`,
`  covers({[a,b],[b,d],[d,e],[a,e],[c,d]});`,
`                                   yields      {[a,b],[b,d],[d,e],[c,d]}`,
`  Q:=closure(chain(4));`,
`  covers(Q,5);                     yields         {[1,2],[2,3],[3,4]}`,
` `,
`SEE ALSO:  closure`,
NULL):

if `+`(0)=0 then # Maple V.4 or later
  print(INTERFACE_HELP(insert, topic=`posets/covers`,
  helpfile=HomeLib, text=`posets/text/covers`))
elif ceil(0)=0 then # Maple V.2 or V.3
  `help/posets/text/covers`:=`posets/text/covers`:
  save `help/posets/text/covers`, cat(HomeLib,`/help/posets/text/covers.m`)
fi:
