SuperNode.split#
- SuperNode.split(num: int = 2, names: Optional[list] = None, values: Optional[list] = None, ids: Optional[list] = None, functions: Optional[list] = None, **other_attrs_lists)[source]#
Splits the node into children. The number of children created from the node is specified by the num parameter.
- Parameters:
num (int, default = 2) – The number of children to be created.
names (list (optional)) – If used, the name attributes of the children will be the values of the names list. Its length should be the same as the parameter num.
values (list (optional)) – If used, the value attributes of the children will be the values of the values list. Its length should be the same as the parameter num.
ids (list (optional)) – If used, the id attributes of the children will be the values of the ids list. Its length should be the same as the parameter num.
functions (list (optional)) – If used, the function attributes of the children will be the values of the functions list. Its length should be the same as the parameter num.
other_attrs_list (list (optional)) – If used, the other_attrs attributes of the children will be the values of the other_attrs_lists. Each list length should be the same as the parameter num.
- Returns:
new_children
- Return type:
list of nodes