Home Manual Reference Source

Overview

Installation

Can be managed using yarn, npm, or jspm.

yarn

yarn add @graph-algorithm/maximum-matching

npm

npm install @graph-algorithm/maximum-matching --save

jspm

jspm install npm:@graph-algorithm/maximum-matching

Usage

:warning: The code needs a ES2015+ polyfill to run (regeneratorRuntime), for instance regenerator-runtime/runtime.

First, require the polyfill at the entry point of your application

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

Then, import the library where needed

const mm = require( '@graph-algorithm/maximum-matching' ) ;
// or
import * as mm from '@graph-algorithm/maximum-matching' ;

Examples

More examples in the test files.