Nitrogen Peroxide Monoxide
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    graphlib-adjacencypublic

    graphlib-adjacency

    Convert to graphlib or from adjacency list, and vice versa.

    travis

    testling

    Example

    var ga = require('graphlib-adjacency')
    var graph = ga.toGraph({
      'This is\nan element': ['b', 'c'],
      'b': ['f'],
      'c': ['e', 'd'],
      'd': [],
      'e': [],
      'f': ['g'],
      'g': []
    })
     
    console.log(ga.toAdjacency(graph))

    License

    MIT

    Keywords

    none

    install

    npm i graphlib-adjacency

    Downloadslast 7 days

    5

    version

    1.0.3

    license

    none

    repository

    github.com

    last publish

    collaborators

    • avatar