Debian Codegraph @

lib/mlrisc-lib/MLRISC/graphs/max-flow.sig

raw
1 (*
2 * Signature of max flow computation
3 *
4 * -- Allen
5 *)
6
7 signature MAX_FLOW =
8 sig
9 structure Num : ABELIAN_GROUP
10 val max_flow : { graph : ('n,'e,'g) Graph.graph,
11 s : Graph.node_id,
12 t : Graph.node_id,
13 capacity : 'e Graph.edge -> Num.elem,
14 flows : 'e Graph.edge * Num.elem -> unit
15 } -> Num.elem
16
17 val min_cost_max_flow : { graph : ('n,'e,'g) Graph.graph,
18 s : Graph.node_id,
19 t : Graph.node_id,
20 capacity : 'e Graph.edge -> Num.elem,
21 cost : 'e Graph.edge -> Num.elem,
22 flows : 'e Graph.edge * Num.elem -> unit
23 } -> Num.elem
24 end