Module Bigraph.IntSet
Standard set operations
val add : int -> t -> tval cardinal : t -> intval compare : t -> t -> intval diff : t -> t -> tval elements : t -> int listval empty : tval equal : t -> t -> boolval exists : (int -> bool) -> t -> boolval filter : (int -> bool) -> t -> tval fold : (int -> 'a -> 'a) -> t -> 'a -> 'aval for_all : (int -> bool) -> t -> boolval inter : t -> t -> tval is_empty : t -> boolval iter : (int -> unit) -> t -> unitval max_elt : t -> int optionval mem : int -> t -> boolval min_elt : t -> int optionval partition : (int -> bool) -> t -> t * tval remove : int -> t -> tval singleton : int -> tval subset : t -> t -> boolval union : t -> t -> t
Additional functions
val to_string : t -> stringReturn the string representation of a set. Example:
{1,4,7}
val pp : Stdlib.Format.formatter -> t -> unitPretty printer.
val of_list : int list -> tReturn a set containing the elements of a list.
val of_int : int -> tof_int nreturns set{0, 1, ...., n - 1}.
val fix : t -> Iso.tCompute an isomorphism to fix the numbering of a set. For example, the isomorphism for set
{2, 5, 6, 7}is{(2,0), (5,1), (6,2), (7,3)}.