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

    Install

    npm i mkgraph

    DownloadsWeekly Downloads

    22

    Version

    1.1.0

    License

    MIT

    Last publish

    Collaborators

    • mk