Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

aureooms-js-adjacency-list

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aureooms-js-adjacency-list

adjacency list code bricks for JavaScript

  • 3.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7
increased by133.33%
Maintainers
1
Weekly downloads
 
Created
Source

js-adjacency-list

Adjacency list code bricks for JavaScript. Parent is js-gn.

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

NPM license NPM version Bower version Build Status Coverage Status Dependencies Status devDependencies Status Code Climate NPM downloads per month GitHub issues Inline docs

Can be managed through jspm, duo, component, bower, ender, jam, spm, and npm.

Install

jspm

jspm install github:aureooms/js-adjacency-list
# or
jspm install npm:aureooms-js-adjacency-list

duo

No install step needed for duo!

component

component install aureooms/js-adjacency-list

bower

bower install aureooms-js-adjacency-list

ender

ender add aureooms-js-adjacency-list

jam

jam install aureooms-js-adjacency-list

spm

spm install aureooms-js-adjacency-list --save

npm

npm install aureooms-js-adjacency-list --save

Require

jspm

let adjacencylist = require( "github:aureooms/js-adjacency-list" ) ;
// or
import adjacencylist from 'aureooms-js-adjacency-list' ;

duo

let adjacencylist = require( "aureooms/js-adjacency-list" ) ;

component, ender, spm, npm

let adjacencylist = require( "aureooms-js-adjacency-list" ) ;

bower

The script tag exposes the global variable adjacencylist.

<script src="bower_components/aureooms-js-adjacency-list/js/dist/adjacency-list.min.js"></script>

Alternatively, you can use any tool mentioned here.

jam

require( [ "aureooms-js-adjacency-list" ] , function ( adjacencylist ) { ... } ) ;

Use

let dll = require( "aureooms-js-dll" ) ;

let Graph = adjacencylist.List( dll.DoublyLinkedList ) ;

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 ) ;

Keywords

FAQs

Package last updated on 11 Aug 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc