joaonuno/tree-model-js

Inorder traversal

Closed this issue · 2 comments

I am interested in using your module, but I am looking for inorder traversal.

https://en.wikipedia.org/wiki/Tree_traversal#In-order_(LNR)

Hi, I think in-order traversal is only meaningful for binary trees. This library is for tree structures with any number of children. It doesn't have the notion of left and right sub-trees.

That makes sense. Thank you. I am looking at https://www.npmjs.com/package/binarytree.