Skip to content

traverse all descendants of a node #28

@rocpengliu

Description

@rocpengliu

Hello

I am wondering if it is possible to traverse all the descendants including children, greatchildren, greatgreatchildren, and so on, of a particular node?
eg. how to only traverse the B1, B, C1, C2 and C through post iterator or B, B1, C and C1, C2 through pre iterator of the node A in this tree? (through a subtree of A could not be the best of my needs)

root
|
+----A
| |
| +---B
| | |
| | +---B1
| |
| +---C
| |
| +---C1
| |
| +---C2
+----D
|
+---E
|
+---F

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions