Clear all the child nodes from children. The children will be empty after this operation.
void clear() { children.clear(); }