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

Readme

Keywords

none

Package Sidebar

Install

npm i graphlib-adjacency

Weekly Downloads

4

Version

1.0.3

License

MIT

Last publish

Collaborators

  • nopersonsmodules