Module Link.Ports
This module implements multisets of nodes as maps.
Standard operations on maps
val choose : t -> (int * int) optionval compare : (int -> int -> int) -> t -> t -> intval empty : tval equal : t -> t -> boolval filter : (int -> int -> bool) -> t -> tval fold : (int -> int -> 'b -> 'b) -> t -> 'b -> 'bval is_empty : t -> boolval iter : (int -> int -> unit) -> t -> unitval max_binding : t -> (int * int) optionval min_binding : t -> (int * int) option
Additional functions
val add : int -> t -> tval apply : Iso.t -> t -> tapply i papplies isomorphismito port setp. Elements ofpnot in the domain ofiare dropped.
val arity : t -> int -> int optionval cardinal : t -> intval of_list : (int * int) list -> tval of_nodes : Nodes.t -> tof_nodes nstransform a set of nodes into a set of ports.
val sum : t -> t -> tval to_IntSet : t -> IntSet.tto_IntSet psreturns a set of node identifiers form a set of ports.
val to_string : t -> stringto_string sgives the string representation of port sets. For example:"\{(0, 0), (1, 3)\}".