A Deformation-based Edit Distance for Merge Trees
Florian Wetzels, Christoph Garth
TL;DR
This work introduces a deformation-based edit distance for merge trees that operates directly on the continuous objects and on their abstract representations. By defining continuous deformation retractions and equivalent abstract edits (relabel, contraction, inverse contraction) with a persistence-based cost, it derives path mappings that realize optimal edits and proves that the one-degree distance $\delta_{\text{1}}$ is a metric and branch-decomposition independent. A polynomial-time dynamic programming framework computes the distance, with a practical $\mathcal{O}(n^4)$ algorithm for binary trees and an open-source implementation. The method offers a robust alternative to branch-based distances, enabling metric-based analyses like geodesics or barycenters, while maintaining strong ties to intuitive geometric edits on merge trees.
Abstract
In scientific visualization, scalar fields are often compared through edit distances between their merge trees. Typical tasks include ensemble analysis, feature tracking and symmetry or periodicity detection. Tree edit distances represent how one tree can be transformed into another through a sequence of simple edit operations: relabeling, insertion and deletion of nodes. In this paper, we present a new set of edit operations working directly on the merge tree as an geometrical or topological object: the represented operations are deformation retractions and inverse transformations on merge trees, which stands in contrast to other methods working on branch decomposition trees. We present a quartic time algorithm for the new edit distance, which is branch decomposition-independent and a metric on the set of all merge trees.
