Replies: 2 comments 4 replies
-
|
Beta Was this translation helpful? Give feedback.
2 replies
-
There's no way of knowing this in the Tree API (the information isn't stored by the low-level code). The total number of in-and-out edges from the diffs provides a reasonable, easy, definition. If you start reasoning about what the edges do you'll get into all sorts of semantic awkwardnesses (esp. in cases where multiple recombinations happen). |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Given a tree, is there a way to find the number of edge changes to the next (or previous) tree? I can use the
.next()
method to get to the next one, but I can't see a way to find the number of changes involved. If there isn't one, I presume that I simply get the entire array by using[len(ed.edges_in) for ed in ts.edge_diffs()]
?Beta Was this translation helpful? Give feedback.
All reactions