Debian Codegraph @

lib/mlrisc-lib/MLRISC/graphs/graph-topsort.sig

raw
1 (*
2 * This module returns a topological sort of an acyclic graph.
3 *
4 * -- Allen
5 *)
6
7 signature GRAPH_TOPOLOGICAL_SORT =
8 sig
9
10 (* topological sort *)
11
12 val topsort : ('n,'e,'g) Graph.graph ->
13 Graph.node_id list -> Graph.node_id list
14
15 end
16