Skip to content

Conversation

molpopgen
Copy link
Member

@molpopgen molpopgen commented Dec 14, 2021

Add support for virtual root.
Update some internal code to use the virtual root.

@molpopgen molpopgen linked an issue Dec 14, 2021 that may be closed by this pull request
@molpopgen molpopgen force-pushed the support_virtual_root branch from bf326af to dd43e19 Compare December 14, 2021 20:54
* add Tree::virtual_root
* add 1 to the length of each array defining the tree structure
* RootIterator now uses virtual_root.
* Update PreorderNodeIterator to use virtual_root
* Add Tree::array_len to account for array lengths with virtual
roots.

Closes #170
@molpopgen molpopgen force-pushed the support_virtual_root branch from dd43e19 to 34b3174 Compare December 14, 2021 20:54
@molpopgen molpopgen merged commit 2391c9e into main Dec 14, 2021
@molpopgen molpopgen deleted the support_virtual_root branch December 14, 2021 21:01
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.

Update tree structures to use "virtual root"?

1 participant