Home Manual Reference Source

Overview

Installation

Can be managed using jspm or npm.

jspm

jspm install npm:@graph-algorithm/minimum-cut

npm

npm install @graph-algorithm/minimum-cut --save

Usage

The code needs a ES2015+ polyfill to work, for example regenerator-runtime/runtime.

await import( 'regenerator-runtime/runtime.js' ) ;
// or
import 'regenerator-runtime/runtime.js' ;

Then

const {mincut} = await import( '@graph-algorithm/minimum-cut' ) ;
// or
import {mincut} from '@graph-algorithm/minimum-cut' ;

Example