lib/mlrisc-lib/MLRISC/graphs/min-cut.sig
raw| 1 | (* |
| 2 | * Minimal cut of a graph. The graph is treated as undirected. |
| 3 | * Note: the graph must be simple! |
| 4 | * |
| 5 | * -- Allen |
| 6 | *) |
| 7 | signature MIN_CUT = |
| 8 | sig |
| 9 | structure Num : ABELIAN_GROUP |
| 10 | val min_cut : { graph : ('n,'e,'g) Graph.graph, |
| 11 | weight : 'e Graph.edge -> Num.elem |
| 12 | } -> Graph.node_id list * Num.elem |
| 13 | end |