Skip to content
On this page

Tree<T>.traverseDFS

Traverses the tree using DFS.

Parameters

callbackCallBackFn<T>: The callback function to execute on each node.

startNodeTreeNode<T>: The node to start the traversal from.