mkgraph

1.1.0 • Public • Published

mkgraph

A tiny module for having fun with graphs.

Install

npm i mkgraph

Usage

const {Graph, Node} = require('mkgraph')
 
const g = new Graph()
 
g.add('a')
g.add('b')
g.add('c')
 
g.drawEdge('a', 'b')
g.drawEdge('b', 'c')
 
g.shortestPath('a', 'c') // ['a', 'b', 'c']

API

Code of Conduct

Contributing

Dependencies (0)

    Dev Dependencies (5)

    Package Sidebar

    Install

    npm i mkgraph

    Weekly Downloads

    1

    Version

    1.1.0

    License

    MIT

    Last publish

    Collaborators

    • mk