lib/mlrisc-lib/MLRISC/graphs/matching.sig
raw| 1 | (* |
| 2 | * This module implenents max cardinality matching. |
| 3 | * Each edge of the matching are folded together with a user supplied |
| 4 | * function. |
| 5 | * |
| 6 | * -- Allen |
| 7 | *) |
| 8 | |
| 9 | signature BIPARTITE_MATCHING = |
| 10 | sig |
| 11 | |
| 12 | val matching : ('n,'e,'g) Graph.graph -> |
| 13 | ('e Graph.edge * 'a -> 'a) -> 'a -> 'a * int |
| 14 | |
| 15 | end |