diff options
| author | Thomas Bauereiss | 2020-02-21 14:12:50 +0000 |
|---|---|---|
| committer | Thomas Bauereiss | 2020-02-21 14:26:12 +0000 |
| commit | e5ee087f1555582ba0c98a1890663eed9a4c2abb (patch) | |
| tree | 52c3b52af47ace1314eb0139bd8cff6aafd303ce /src/graph.mli | |
| parent | a04a740a3b564f2a9b09ca0a2366043eac3e8bc0 (diff) | |
Move topological sorting code to graph.ml
Diffstat (limited to 'src/graph.mli')
| -rw-r--r-- | src/graph.mli | 5 |
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 |
