summaryrefslogtreecommitdiff
path: root/lib/configuration/graph_tree.mli
blob: 381d9042b9026a5a823853558e15e44919eab56e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
type t

val create : unit -> t

val add_content : t -> Model.content -> unit
(** Add a new content in the tree *)

val add_edge : t -> Model.content -> Model.field -> Model.content -> unit
(** Add a relation between two contents.

    The function does not check if the two contents are actually linked together
*)

val pp : Format.formatter -> t -> unit
val fold : (Model.content -> 'a -> 'a) -> t -> 'a -> 'a
val iter : (Model.content -> unit) -> t -> unit

exception Cycle of Model.content list

val check_cycle : t -> unit