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

Merging method? #34

Open
henry2004y opened this issue Aug 19, 2021 · 1 comment
Open

Merging method? #34

henry2004y opened this issue Aug 19, 2021 · 1 comment

Comments

@henry2004y
Copy link

Hi,

Great package! I have a question regarding the available functionality: as an opposite to split!, is there a merge! method available to combine leaves together? If it hasn't existed yet, it is possible to add such method?

Something like

root = Cell(SVector(0., 0), SVector(1., 1))
split!(root) # 1 into 2x2
merge!(root) # 2x2 into 1?
@ashwanirathee
Copy link

I also think this could be very helpful with a lot of tree pruning but isn't merge! same as root.children = nothing?

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

2 participants