Skip to content

A simple javascript object that maintains a list of nodes and links in response to updates

Notifications You must be signed in to change notification settings

jasonford/graph-engine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

#Graph Engine A simple object that maintains a list of nodes and links in response to updates

##Usage:

var g = new GraphEngine();

g.addNode('anIdForTheNode', ['listOf', 'otherNodeIds', 'thatNodeLinksTo']);
g.updateNode('anIdForTheNode', ['new', 'listOf', 'otherNodeIds', 'thatNodeNowLinksTo']);
g.removeNode('anIdForTheNode');

g.onUpdate(functionToExecuteWheneverGraphChanges);

g.links(); // links in graph
g.nodes(); // nodes in graph

About

A simple javascript object that maintains a list of nodes and links in response to updates

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published