mergeRoots
MergeRoots is a procedure used in hierarchical data processing to combine two rooted trees into a single tree. The basic form creates a new root node and makes the original roots its children, thereby unifying the structures under one top-level node. This operation is common in tasks such as merging parse trees, fusing hierarchical metadata, and unifying tree-structured representations in knowledge graphs.
Variants of mergeRoots exist. In the simplest version, a new root is introduced and linked to the
Algorithm overview. Given rooted trees T1=(V1,E1,r1) and T2=(V2,E2,r2), the default non-destructive merge proceeds by creating a
Applications and considerations. MergeRoots is useful when combining independent hierarchical analyses, aligning tree-structured data from different