public function removeNode(AbstractNode $node) {
        if (true === array_key_exists($node->id, $this->index)) {
            unset($this->nodes[$this->index[$node->id]]);
            unset($this->index[$node->id]);
            $node->parent = null;
        }
        return $this;
    }
public function removeNode(AbstractNode $node) {
        if (true === array_key_exists($node->id, $this->index)) {
            unset($this->nodes[$this->index[$node->id]]);
            unset($this->index[$node->id]);
            $node->parent = null;
        }
        return $this;
    }
public function removeNode ( AbstractNode $ node ) { if ( true === array_key_exists ( $ node -> id , $ this -> index ) ) { unset ( $ this -> nodes [ $ this -> index [ $ node -> id ] ] ) ; unset ( $ this -> index [ $ node -> id ] ) ; $ node -> parent = null ; } return $ this ; }
Remove a node.

@param AbstractNode $node The children node.
@return AbstractNode Returns this node.
Remove a node .