treelib icon indicating copy to clipboard operation
treelib copied to clipboard

Limit contains method to a set depth

Open golharam opened this issue 4 years ago • 0 comments

Right now, I see .contains() on the tree will search the tree for a given node. Suppose I only want to search the immediate children of a node? Based on what I can tell, I have to get the children of the node, then iterate over them to find the matching child, if any. It would be nice to have a depth option on .contains() or a .find() method on a Node to search the immediate children.

golharam avatar Oct 12 '20 19:10 golharam