`posets/text/dual` := TEXT(
` `,
`FUNCTION:  dual - dual of a poset (or directed graph)`,
` `,
`CALLING SEQUENCE:  dual(P);   dual(P,X);   dual(P,n);`,
` `,
`PARAMETERS:  P = a poset (or any set of ordered pairs)`,
`             X = a set (the vertex set)`,
`             n = a positive integer (the number of vertices)`,
`   `,
`SYNOPSIS:`,
`  If P is a set of ordered pairs, then dual(P) returns the set in which`,
`  each member [a,b] of P is replaced with [b,a].`,
`   `,
`  Any additional arguments are ignored.`,
`   `,
`EXAMPLES:`,
`  P:={[1,2],[1,3],[3,4]};`,
`  dual(P);                     yields     {[2,1], [3,1], [4,3]}`,
`  dual(P,5);                   yields     {[2,1], [3,1], [4,3]}`,
` `,
`SEE ALSO: `,
NULL):

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