Copyright | (c) Eric Mertens 2023 |
---|---|
License | ISC |
Maintainer | emertens@gmail.com |
Safe Haskell | None |
Language | Haskell2010 |
Karger-Stein approximation of the minimum cut of a graph.
Synopsis
- minCutApprox :: (RandomGen gen, Semigroup node) => Gr node edge -> gen -> [Gr node edge]
Documentation
minCutApprox :: (RandomGen gen, Semigroup node) => Gr node edge -> gen -> [Gr node edge] Source #
Generate a lazy list of minimun cut approximations. The nodes of the resulting graph will represent the merged components and the remaining edges are the cut.
The graph is treated as undirected and with uniform edge weight.