Definition 2.7 Two PQ-trees T1 and T2 over the same set U are equivalent (T1 T2)
if and only if T1 can be transformed into T2 by applying zero or more of the following
transformations.
(1) Perform an arbitrary permutation of the children of a P-node.
(2) Perform the reverse permutation of the children of a Q-node.