set¶
-
void
libsemigroups::Forest::set(node_type node, node_type parent, label_type gen)¶ Set the parent and edge label for a node.
- Return
(None)
- Complexity
Constant
- Parameters
node: the node whose parent and label to set.parent: the parent nodegen: the label of the edge fromparenttonode.
- Exceptions
LibsemigroupsException: ifnodeorparentexceeds nr_nodes().