2.0.0 • Published 9 years ago
aureooms-js-graph-theory-notation v2.0.0
js-graph-theory-notation
Graph theory notation code bricks for JavaScript.
for ( let v of V( G ) ) ... ;
Can be managed through jspm, duo, component, bower, ender, jam, spm, and npm.
Install
jspm
jspm install github:aureooms/js-graph-theory-notation
# or
jspm install npm:aureooms-js-graph-theory-notation
duo
No install step needed for duo!
component
component install aureooms/js-graph-theory-notation
bower
bower install aureooms-js-graph-theory-notation
ender
ender add aureooms-js-graph-theory-notation
jam
jam install aureooms-js-graph-theory-notation
spm
spm install aureooms-js-graph-theory-notation --save
npm
npm install aureooms-js-graph-theory-notation --save
Require
jspm
let graphtheorynotation = require( "github:aureooms/js-graph-theory-notation" ) ;
// or
import graphtheorynotation from 'aureooms-js-graph-theory-notation' ;
duo
let graphtheorynotation = require( "aureooms/js-graph-theory-notation" ) ;
component, ender, spm, npm
let graphtheorynotation = require( "aureooms-js-graph-theory-notation" ) ;
bower
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.
jam
require( [ "aureooms-js-graph-theory-notation" ] , function ( graphtheorynotation ) { ... } ) ;
Use
let { V , E , N } = graphtheorynotation ;
for ( let v of V( G ) ) ... ;
for ( let e of E( G ) ) ... ;
for ( let v of N( G , u ) ) ... ;