Euler tour of a tree

Write down a walk that explores every branch of a tree and returns to the start. Someone else can follow the record, including the steps back from each branch.

Record each child when arriving and the parent again when returning. We cross each tree edge in both directions.

The tour has 2V − 1 stops for V vertices. Time is O(V).