package KaSim

  1. Overview
  2. Docs
type t
val empty : with_connected_components:bool -> t
val copy : t -> t
type stats = {
  1. nb_agents : int;
}
val stats : t -> stats
val add_agent : ?id:int -> Signature.s -> int -> t -> int * t
val add_free : int -> int -> t -> t
val add_internal : int -> int -> int -> t -> t
val remove_agent : int -> t -> t
val remove_free : int -> int -> t -> t
val remove_internal : int -> int -> t -> int * t
val is_agent : Agent.t -> t -> bool
val is_free : int -> int -> t -> bool
val is_internal : int -> int -> int -> t -> bool
val exists_fresh : int -> int -> int -> int -> t -> int option
val get_internal : int -> int -> t -> int
val get_sites : int -> t -> int
val get_sort : int -> t -> int
val get_connected_component : int -> t -> int option
val in_same_connected_component : int -> int -> t -> bool
val all_agents_where : (Agent.t -> bool) -> t -> IntCollection.t
type path = ((Agent.t * int) * (Agent.t * int)) list
val empty_path : path
val singleton_path : Agent.t -> int -> Agent.t -> int -> path
val rev_path : path -> path
val print_path : ?sigs:Signature.s -> Format.formatter -> path -> unit
val are_connected : ?max_distance:int -> t -> Agent.t list -> Agent.t list -> path option
val species : Signature.s -> int -> t -> User_graph.connected_component
val build_snapshot : Signature.s -> t -> (int * User_graph.connected_component) list
val debug_print : Format.formatter -> t -> unit
OCaml

Innovation. Community. Security.