summaryrefslogtreecommitdiff
path: root/src/graph.mli
diff options
context:
space:
mode:
authorThomas Bauereiss2020-02-21 14:12:50 +0000
committerThomas Bauereiss2020-02-21 14:26:12 +0000
commite5ee087f1555582ba0c98a1890663eed9a4c2abb (patch)
tree52c3b52af47ace1314eb0139bd8cff6aafd303ce /src/graph.mli
parenta04a740a3b564f2a9b09ca0a2366043eac3e8bc0 (diff)
Move topological sorting code to graph.ml
Diffstat (limited to 'src/graph.mli')
-rw-r--r--src/graph.mli5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/graph.mli b/src/graph.mli
index 09b78304..cb29daae 100644
--- a/src/graph.mli
+++ b/src/graph.mli
@@ -91,6 +91,11 @@ module type S =
not directed acyclic. *)
val topsort : graph -> node list
+ (** Find strongly connected components using Tarjan's algorithm.
+ This algorithm also returns a topological sorting of the graph
+ components. *)
+ val scc : ?original_order:(node list) -> graph -> node list list
+
val make_dot : (node -> string) -> (node -> node -> string) -> (node -> string) -> out_channel -> graph -> unit
end