Euler tour with add/subtract trick converts path-to-root queries into prefix sum queries. This pattern works whenever you need path sums or updates on root-to-node paths. The entry/exit pair ensures each node contributes exactly once to its own subtree's prefix. For general path queries (not from root), you need HLD or other techniques.
But root paths are common and this trick handles them cleanly.