tskit icon indicating copy to clipboard operation
tskit copied to clipboard

Support negative indexing in Tree.unrank

Open jeromekelleher opened this issue 5 years ago • 0 comments

This would be useful for generating the last tree in the ordering, as discussed in #944. We'd like to be able to write

tree = tskit.Tree.unrank((-1, 0), 6)

jeromekelleher avatar Oct 29 '20 10:10 jeromekelleher