lib/mlrisc-lib/MLRISC/graphs/spanning-tree.sig
raw| 1 | (* |
| 2 | * Signature for the minimal cost spanning tree problem. |
| 3 | * All spanning tree edges are folded together with a user supplied |
| 4 | * function. |
| 5 | * |
| 6 | * -- Allen |
| 7 | *) |
| 8 | |
| 9 | signature MIN_COST_SPANNING_TREE = |
| 10 | sig |
| 11 | |
| 12 | exception Unconnected |
| 13 | |
| 14 | val spanning_tree : { weight : 'e Graph.edge -> 'w, |
| 15 | < : 'w * 'w -> bool |
| 16 | } -> ('n, 'e, 'g) Graph.graph |
| 17 | -> ('e Graph.edge * 'x -> 'x) -> 'x -> 'x |
| 18 | end |
| 19 |