graphlib-adjacency

1.0.3 • Public • Published

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

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i graphlib-adjacency

    Weekly Downloads

    1

    Version

    1.0.3

    License

    MIT

    Last publish

    Collaborators

    • nopersonsmodules