public Tree setParent(TreeNet parent) {
        this.parent = parent;
        return this;
    }
Sets the parent tree net of this.

@param parent The parent tree net.
@return This, to allow chaining.
searchlib/src/main/java/com/yahoo/searchlib/treenet/rule/Tree.java