summaryrefslogtreecommitdiff
path: root/src/graph.mli
diff options
context:
space:
mode:
Diffstat (limited to 'src/graph.mli')
-rw-r--r--src/graph.mli9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/graph.mli b/src/graph.mli
index 09b78304..02480a9d 100644
--- a/src/graph.mli
+++ b/src/graph.mli
@@ -71,6 +71,15 @@ module type S =
val add_edge : node -> node -> graph -> graph
val add_edges : node -> node list -> graph -> graph
+ (** Add edges to the graph, but may leave the internal structure
+ of the graph in a non-normalized state. Fix leaves repairs any
+ such issue in the graph. These additional functions are much
+ faster than those above, but it is important to call fix_leaves
+ before calling reachable, prune, or any other function. *)
+ val add_edge' : node -> node -> graph -> graph
+ val add_edges' : node -> node list -> graph -> graph
+ val fix_leaves : graph -> graph
+
val children : graph -> node -> node list
(** Return the set of nodes that are reachable from the first set