Tree shape (no values)

Ancestors & distance

As if rooted at r

Paths

Node queries

One node

Rank

Count

Sum

Sum by rank (1-indexed)

Distance sums

Nearest to x

Frequency

Search

Node updates

One node

Still to add: rerooting for value queries: subtree of node when rooted at r