// should NOT alter refcount Node* set_parent(Node* self, Node* parent) { self->parent = parent; return self; }