0.0.1 • Published 8 years ago

tree-node-js v0.0.1

Weekly downloads
2
License
MIT
Repository
-
Last release
8 years ago

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)

NameTypeDescription
dataAnyData that the node will store
additional_attrubutesHashA hash of additional key values you want the node to have
var Node = require("tree-node-js")
var node1 = Node(22, {visited: false})