type tType of finite binary relations on integers.
val cardinal : t -> intval empty : tval fold : (int -> IntSet.t -> 'b -> 'b) -> t -> 'b -> 'bval is_empty : t -> boolval iter : (int -> IntSet.t -> unit) -> t -> unitval mem : int -> t -> bool
val dom : t -> IntSet.tReturn the domain of a binary relation.
val codom : t -> IntSet.tReturn the codomain of a binary relation.
val to_list : t -> (int * IntSet.t) listReturn the list of pairs defined by a binary relation.
val of_list : (int * int list) list -> tInverse of Rel.to_list. Note that in case of clashing pairs only the right-most is used.
val to_string : t -> stringReturn the string representation of a binary relation. Example:
{(1, {1, 2, 3}), (2, {3, 4})}
val pp : Stdlib.Format.formatter -> t -> unitPretty printer.
val add : int -> IntSet.t -> t -> tadd i set r adds set to the values associated to i in relation r.
val equal : t -> t -> boolEquality between binary relations.
val compare : t -> t -> intComparison between binary relations.
val apply : t -> int -> IntSet.tapplyr i returns the set of values associated to i by relation r.