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

Binary tree to n-ary tree #2369

Closed
agarwalBinay18 opened this issue Dec 24, 2021 · 3 comments
Closed

Binary tree to n-ary tree #2369

agarwalBinay18 opened this issue Dec 24, 2021 · 3 comments

Comments

@agarwalBinay18
Copy link

I want to convert the binary tree to an n-ary expression tree having only a single level using math.parse. How can I achieve this?

@josdejong
Copy link
Owner

Thanks for your input. Can you elaborate a bit, and show an example of what you mean?

@gwhitney
Copy link
Collaborator

It seems quite possible to me that what @agarwalBinay18 may have been looking for is simplify.utils.flatten, which is not currently exported (and probably needs a bit more robustness to be made public).

@josdejong
Copy link
Owner

Yeah could be. I'll close this issue now due to lack of response. Please reopen when needed.

For reference: the discussion on simplify.utils.flatten can be found in #2282

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

No branches or pull requests

3 participants