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

Check isomorphism #31

Merged
merged 11 commits into from
Aug 27, 2021
Merged

Check isomorphism #31

merged 11 commits into from
Aug 27, 2021

Conversation

TomNicholas
Copy link
Member

Added function to test if two trees are isomorphic to one another, which is a necessary check to perform as part of solving #29 .

Also refactors some things, including pulling code out into a new mapping.py module.

@TomNicholas TomNicholas mentioned this pull request Aug 27, 2021
@TomNicholas TomNicholas merged commit b412456 into main Aug 27, 2021
@TomNicholas TomNicholas deleted the check_isomorphism branch September 2, 2021 16:15
flamingbear pushed a commit to flamingbear/rewritten-datatree that referenced this pull request Jan 19, 2024
* pseudocode ideas for generalizing map_over_subtree

* pseudocode for a generalized map_over_subtree (still only one return arg) + a new mapping.py file

* pseudocode for mapping but now multiple return values

* pseudocode for mapping but with multiple return values

* check_isomorphism works and has tests

* cleaned up the mapping tests a bit

* remove WIP from oter branch

* ensure tests pass

* map_over_subtree in the public API properly

* linting
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 this pull request may close these issues.

1 participant