Skip to content

gherardovarando/graphs.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simple.graphs.js

A simple simple graph utility in js

Build Status npm version

How to use it

const Graph = require(simple.graphs.js);

const g = new Graph(['a','b','c'], [['a','c'],['c','b']])

g.graph

g.addNode('d');

g.addEdge('d', 'a');

g.nodes()

g.neighbours('a')

g.degree('a')

g.removeNode('a')

g.removeEdge('b','c')

g.degreeList()

About

simple simple js utility for graphs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published