10000 GitHub - graph-data-structure/adjacency-matrix: :waffle: Graph adjacency matrix for JavaScript
[go: up one dir, main page]

Skip to content

graph-data-structure/adjacency-matrix

Repository files navigation

Adjacency matrix code bricks for JavaScript. Follows the specification in @graph-data-structure/specification. Parent is @aureooms/js-gn.

⚠️ Depending on your environment, the code may require regeneratorRuntime to be defined, for instance by importing regenerator-runtime/runtime.

for ( let v of V( 
971A
G ) ) ... ;

License Version Tests Dependencies GitHub issues Downloads

Code issues Code maintainability Code coverage (cov) Code technical debt Documentation Package size

Use

import {Graph, DiGraph} from '@graph-data-structure/adjacency-matrix';
// use `DiGraph` for directed graphs

let { V , E , N } = require( "@aureooms/js-graph-theory-notation" ) ;

let G = new Graph( ) ;

let u = G.vadd( ) ;

let v = G.vadd( ) ;

let e = G.eadd( u , v ) ;

for ( let w of V( G ) ) ... ;

for ( let e of E( G ) ) ... ;

for ( let w of N( G , u ) ) ... ;

G.edel( e ) ;

G.vdel( v ) ;

G.vdel( u ) ;

About

🧇 Graph adjacency matrix for JavaScript

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  
0