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()
-
Notifications
You must be signed in to change notification settings - Fork 0
simple simple js utility for graphs
License
gherardovarando/graphs.js
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
simple simple js utility for graphs
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published