Skip to content

Commit 8128b6c

Browse files
update readme
1 parent 2727713 commit 8128b6c

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

README.md

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,18 @@
11
[@aureooms/js-mincut](https://aureooms.github.io/js-mincut)
22
==
33

4-
Minimum cut problem for JavaScript.
4+
Minimum cut algorithm for JavaScript.
55
See [docs](https://aureooms.github.io/js-mincut/index.html).
66

7+
```js
8+
// 5 2
9+
// |\ /|
10+
// | 0--1 |
11+
// |/ \|
12+
// 4 3
13+
mincut([[0,1],[1,2],[1,3],[2,3],[0,4],[0,5],[4,5]]); // 0--1
14+
```
15+
716
[![License](https://img.shields.io/github/license/aureooms/js-mincut.svg?style=flat)](https://raw.githubusercontent.com/aureooms/js-mincut/master/LICENSE)
817
[![NPM version](https://img.shields.io/npm/v/@aureooms/js-mincut.svg?style=flat)](https://www.npmjs.org/package/@aureooms/js-mincut)
918
[![Build status](https://img.shields.io/travis/aureooms/js-mincut.svg?style=flat)](https://travis-ci.org/aureooms/js-mincut)

0 commit comments

Comments
 (0)