Skip to content

Tree iterator ergonomics #383

Closed
Closed
@molpopgen

Description

@molpopgen

The following methods return optional iterators from a Tree:

  • parents
  • children
  • path_to_root
  • samples

The None variant is returned if the input node is not valid.
It would be more idiomatic/ergonomic to simply absorb the invalid
node and have the iterator immediately return None on the first advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ergonomicsIssues/PRs related to API ergonomics

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions