It strikes me that an adaptor class for a tskit Tree to make it look like a networkx DiGraph would give easy access to networkx's substantial graph algorithm library (https://networkx.github.io/documentation/stable/reference/algorithms/index.html) to perform the traversals described in the tutorial and much more.
I think I could write something like that. Would there be interest in including such code in tskit?