Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dfs - pass in node iterator function #62

Open
arieljake opened this issue Jul 22, 2016 · 0 comments · May be fixed by #93
Open

dfs - pass in node iterator function #62

arieljake opened this issue Jul 22, 2016 · 0 comments · May be fixed by #93

Comments

@arieljake
Copy link

the default behavior of pre/postorder is to accumulate the nodes in an array, but that is just one possible behavior that we could take when visiting each node. This could be a default iterator function that is passed into dfs if none other is provided. But, what if we allow the user to provide their own iterator function that is called when each node is visited?

@dionyziz dionyziz linked a pull request Aug 25, 2018 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant