Data Tree

Data oriented tree structure that unleashes the power of callbacks to create, search and traverse tree. Data tree keeps the track of current node which updates upon insertion and deletion of the node from tree.

Install:

$ npm install data-tree

Then use via require('data-tree')OR use browserified build available at dataTree.min.js in <script/> directly.

Examples:

Following examples will guide you to create tree, insert/remove nodes and search/traverse a tree. Don't forget to checkout Data-Tree reference.

Create tree

dataTree is global variable that can be used to create a tree in following way.