-
Notifications
You must be signed in to change notification settings - Fork 71
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
tree.is_root()
method
#2620
Labels
Comments
Yes I agree this is useful. Your code is almost right, we just have to change the |
Oh yes, I forgot about that. So many complex parts! |
So I guess:
|
szhan
added
enhancement
New feature or request
Python API
Issue is about the Python API
labels
Oct 31, 2022
Closed
hyanwong
added a commit
to hyanwong/tskit
that referenced
this issue
Dec 23, 2022
hyanwong
added a commit
to hyanwong/tskit
that referenced
this issue
Dec 23, 2022
hyanwong
added a commit
to hyanwong/tskit
that referenced
this issue
Jan 10, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's tempting to check whether a node is a root by looking for
u in tree.roots
without realising thattree.roots
might be huge. I think a more efficient way to check isIs that right @jeromekelleher ? This might be useful for @szhan in #2618
The text was updated successfully, but these errors were encountered: