Graph theory notation code bricks for JavaScript. Parent is js-gn.
for ( let v of V( G ) ) ... ;
Can be managed through jspm, duo, component, bower, ender, jam, spm, and npm.
jspm install github:aureooms/js-graph-theory-notation
# or
jspm install npm:@aureooms/js-graph-theory-notation
No install step needed for duo!
component install aureooms/js-graph-theory-notation
bower install @aureooms/js-graph-theory-notation
ender add @aureooms/js-graph-theory-notation
jam install @aureooms/js-graph-theory-notation
spm install @aureooms/js-graph-theory-notation --save
npm install @aureooms/js-graph-theory-notation --save
let graphtheorynotation = require( "github:aureooms/js-graph-theory-notation" ) ;
// or
import graphtheorynotation from '@aureooms/js-graph-theory-notation' ;
let graphtheorynotation = require( "aureooms/js-graph-theory-notation" ) ;
let graphtheorynotation = require( "@aureooms/js-graph-theory-notation" ) ;
The script tag exposes the global variable graphtheorynotation
.
<script src="bower_components/@aureooms/js-graph-theory-notation/js/dist/graph-theory-notation.min.js"></script>
Alternatively, you can use any tool mentioned here.
require( [ "@aureooms/js-graph-theory-notation" ] , function ( graphtheorynotation ) { ... } ) ;
let { V , E , N } = graphtheorynotation ;
for ( let v of V( G ) ) ... ;
for ( let e of E( G ) ) ... ;
for ( let v of N( G , u ) ) ... ;