Kappa_site_graphs.EdgesConcrete graph implementation
val empty : with_connected_components:bool -> tval add_agent : ?id:int -> Signature.s -> int -> t -> int * tadd_agent ?id sigs agent_type graph
add_link ag1 s1 ag2 s2 t Some (i,j) as second returned element means cc j is now merged into cc i
Some (i,j) as second returned element means separate "new" cc j from cc i
val is_agent_id : int -> t -> boolis_agent_id agent_id graph
val is_free : int -> int -> t -> boolis_free agent_id site graph
val is_internal : int -> int -> int -> t -> boolis_internal internal_state agent_id site graph
val link_exists : int -> int -> int -> int -> t -> boollink_exists ag1_id site1 ag2_id site2 graph
val exists_fresh : int -> int -> int -> int -> t -> int optionexists_fresh ag1 site1 type_of_ag2 site2 graph
val get_internal : int -> int -> t -> intget_internal ag site graph
val get_sites : int -> t -> intval get_sort : int -> t -> intval get_connected_component : int -> t -> int optionval in_same_connected_component : int -> int -> t -> booliter_neighbors f ag graph calls function f on all direct neighbors of agent ag in graph.
val all_agents_where :
(Agent.t -> bool) ->
t ->
Kappa_data_structures.IntCollection.tval empty_path : pathval print_path : ?sigs:Signature.s -> Stdlib.Format.formatter -> path -> unitare_connected ?max_distance graph nodes_x nodes_y
val species :
debug_mode:bool ->
Signature.s ->
int ->
t ->
User_graph.connected_componentval build_snapshot : raw:bool -> Signature.s -> t -> Snapshot.tval build_user_snapshot :
debug_mode:bool ->
raw:bool ->
Signature.s ->
t ->
(int * User_graph.connected_component) listval debug_print : Stdlib.Format.formatter -> t -> unit