Skip to content

jayknayak/tree-pro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tree-pro

Tree Data Structure and methods to efficiently handle complex hierarchical structures of JS Objects. The tree-pro lets you create a Dynamic Tree from a list of Objects. Then, you can do the basic tree operations, such as BFS, DFS, node presence check, and add child node. Also, there are following methods that let you efficiently traverse, filter, and fetch desired set of nodes from the tree.

filter

This method filters the tree based on the given searchAttribute and its attributeValue.

filterChildren

This method returns the children nodes of the given Node.

fetchChildComponents

This method returns the metadata of immediate children (in the form of a list) from the given Node.

filterParent

This method returns the immediate parent node of the given Node.

About

Tree Data Structure and methods to efficiently handle complex hierarchical structures of JS Objects.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors