There are many different sequences that transform one tree into another. The costs of the edit operations are added to the corresponding problems. See how trees correspond to each other with the optimal edit mapping. This can make handling edit distances quite appealing, mathematically. Still, it is key that you choose the edit distance function that is best fitting to your case.
nest...