@@ -421,33 +421,52 @@ gap> D := DigraphByInNeighbours(IsMutableDigraph,
421421
422422<#GAPDoc Label="AsDigraph">
423423<ManSection >
424- <Oper Name =" AsDigraph" Arg =" [filt, ]f[, n]"
425- Label =" for a transformation or perm" />
424+ <Oper Name =" AsDigraph" Arg =" [filt, ]f[, n]" Label =" for a binary relation" />
426425 <Returns >A digraph, or <K >fail</K >.</Returns >
427426 <Description >
428- If <A >f</A > is a transformation or permutation,
429- and <A >n</A > is a non-negative integer
430- such that the restriction of <A >f</A > to <C >[1..<A >n</A >]</C > defines
431- a function of <C >[1..<A >n</A >]</C >, then <C >AsDigraph</C >
432- returns the functional digraph with <A >n</A > vertices defined by
433- <A >f</A >. See <Ref Prop =" IsFunctionalDigraph" />.
434- <P />
435-
436- Specifically, the digraph returned by <C >AsDigraph</C > has <A >n</A > edges:
437- for each vertex <C >v</C > in <C >[1..<A >n</A >]</C >, there is a unique edge
438- with source <C >v</C >; this edge has range <C >v^<A >f</A ></C >.
439- <P />
440427
441- If the optional second argument <A >n</A > is not supplied, then
442- the degree of the transformation <A >f</A >,
443- or the largest moved point of the permutation <A >f</A >,
444- as applicable, is used by default. If the restriction of
445- <A >f</A > to <C >[1..<A >n</A >]</C > does not define a function of
446- <C >[1..<A >n</A >]</C >, then <C >AsDigraph(<A >f</A >, <A >n</A >)</C >
447- returns <K >fail</K >.
428+ If <A >f</A > is a binary relation represented as one of the following in
429+ &GAP; :
430+ <List >
431+ <Mark >
432+ a transformation
433+ </Mark >
434+ <Item >
435+ satisfying <Ref Filt =" IsTransformation" BookName =" ref" />;
436+ </Item >
437+ <Mark >
438+ a permutation
439+ </Mark >
440+ <Item >
441+ satisfying <Ref Filt =" IsPerm" BookName =" ref" />;
442+ </Item >
443+ <Mark >
444+ a partial perm
445+ </Mark >
446+ <Item >
447+ satisfying <Ref Filt =" IsPartialPerm" BookName =" ref" />;
448+ </Item >
449+ <Mark >
450+ a binary relation
451+ </Mark >
452+ <Item >
453+ satisfying <Ref Filt =" IsBinaryRelation" BookName =" ref" />;
454+ </Item >
455+ </List >
456+ and <A >n</A > is a non-negative integer, then <C >AsDigraph</C > attempts
457+ to construct a digraph with <A >n</A > vertices whose edges are determined
458+ by <A >f</A >.<P />
459+
460+ The digraph returned by <C >AsDigraph</C > has for each vertex
461+ <C >v</C > in <C >[1 .. <A >n</A >]</C >, an edge with source <C >v</C > and range
462+ <C >v ^ <A >f</A ></C >. If <C >v ^ <A >f</A ></C > is greater than <A >n</A > for any
463+ <C >v</C >, then <K >fail</K > is returned.
448464 <P />
449465
450- See also <Ref Attr =" AsTransformation" />.
466+ If the optional second argument <A >n</A > is not supplied, then the degree
467+ of the transformation <A >f</A >, the largest moved point of the permutation
468+ <A >f</A >, the maximum of the degree and the codegree of the partial perm
469+ <A >f</A >, or as applicable, is used by default.
451470 <P />
452471
453472 &STANDARD_FILT_TEXT;
0 commit comments