simple.graphs.js

0.1.0 • Public • Published

simple.graphs.js

A simple simple graph utility in js

Build Status npm version

How to use it

const Graph = require(simple.graphs.js);

const g = new Graph(['a','b','c'], [['a','c'],['c','b']])

g.graph

g.addNode('d');

g.addEdge('d', 'a');

g.nodes()

g.neighbours('a')

g.degree('a')

g.removeNode('a')

g.removeEdge('b','c')

g.degreeList()

/simple.graphs.js/

    Package Sidebar

    Install

    npm i simple.graphs.js

    Weekly Downloads

    0

    Version

    0.1.0

    License

    MIT

    Unpacked Size

    6.99 kB

    Total Files

    6

    Last publish

    Collaborators

    • gherardo