@graph-algorithm/minimum-cut
v2.0.0
Published
Minimum cut problem for JavaScript
Downloads
136
Readme
:haircut_woman: @graph-algorithm/minimum-cut
Minimum cut algorithms for JavaScript. Parent is js-algorithms. See docs.
// 5 2
// |\ /|
// | 0--1 |
// |/ \|
// 4 3
mincut([[0,1],[1,2],[1,3],[2,3],[0,4],[0,5],[4,5]]); // 0--1