Yet another Merkle DAG
npm install hypergraph
var graph = hypergraph(levelup)
creates a new graph from a levelup
Various methods use these options for specifying ranges in the graph:
since - array of nodes to begin the range until - array of nodes to end the range
Get the total number of nodes between a range. Calls
cb with the node count for the range you specify
opts should be Range Options.
Given an array of hashes, calls
cb with the hashes that exist in the local graph
cb with an array of the current heads of the graph
Returns a readable stream that will emit graph nodes.
opts should be Range Options
Returns a writable stream that stores data in the graph
Gets the value for a key in the graph, calls
cb with the value
value to the current head, calls
cb when done. Uses
graph.add(links, value, cb)
value into the graph as a child of
cb when done.
Calls close on the underlying