Different from them, we transform P and H into two sets of RHD triplets, instead of comparing one RHD triplet of P with the merged information of the whole H (and vice versa), we directly compare a RHD triplet of P with another RHD triplet of H to obtain the individual comparison vector (without merging).
when comparing two RHD triplets, each part in RHD triplet (i.e., rel, head, and dep) is compared separately and cross-comparison is adopted between nodes.