![[MONOiD]](monoid.png)
Relation( list )
Relation returns the binary relation defined by the list list of
subsets of {1, ..., n} where n is the length of list.
gap> Relation( [ [ 1, 2 ], [ ], [ 3, 1 ] ] );
Relation( [ [ 1, 2 ], [ ], [ 1, 3 ] ] )
Alternatively, list can be a list of boolean lists of length n, each of which is interpreted as a subset of {1, ..., n} (see chapter "Boolean Lists").
gap> Relation( [
> [ true, true, false ],
> [ false, false, false ],
> [ true, false, true ] ] );
Relation( [ [ 1, 2 ], [ ], [ 1, 3 ] ] )
Version 2.4 (May 1998)