boolean (Integer node, Integer dom) { while (!node.equals(dom)) { Integer idom = colOrderedIDoms.getWithKey(node); if (idom.equals(node)) { return false; // root node } else { node = idom; } } return true; }