js-adjacency-matrix
Adjacency matrix code bricks for JavaScript. Follows the specification in js-graph-spec. Parent is js-gn.
for let v of ... ;
Can be managed through jspm, duo, component, bower, ender, jam, spm, and npm.
Install
jspm
jspm install github:aureooms/js-adjacency-matrix# orjspm install npm:aureooms-js-adjacency-matrix
duo
No install step needed for duo!
component
component install aureooms/js-adjacency-matrix
bower
bower install aureooms-js-adjacency-matrix
ender
ender add aureooms-js-adjacency-matrix
jam
jam install aureooms-js-adjacency-matrix
spm
spm install aureooms-js-adjacency-matrix --save
npm
npm install aureooms-js-adjacency-matrix --save
Require
jspm
let adjacencymatrix = ;// or;
duo
let adjacencymatrix = ;
component, ender, spm, npm
let adjacencymatrix = ;
bower
The script tag exposes the global variable adjacencymatrix
.
Alternatively, you can use any tool mentioned here.
jam
;
Use
let Graph = adjacencymatrixGraph ;// use `adjacencymatrix.DiGraph` for directed graphs let V E N = ; let G = ; let u = G ; let v = G ; let e = G ; for let w of ... ; for let e of ... ; for let w of ... ; G ; G ; G ;