0.0.1 • Published 8 years ago
tree-node-js v0.0.1
Tree Node
A tree node structure
Install
$ npm install --save tree-node-js
##Usage
var Node = require("tree-node-js")
var node1 = Node(22)
API
Node(value, additional_attributes)
Name | Type | Description |
---|---|---|
data | Any | Data that the node will store |
additional_attrubutes | Hash | A hash of additional key values you want the node to have |
var Node = require("tree-node-js")
var node1 = Node(22, {visited: false})
0.0.1
8 years ago