graphlib-adjacency

convert to and from adjacency lists and graphlib

npm install graphlib-adjacency
8 downloads in the last week
16 downloads in the last month

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

npm loves you