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 fromparent
tonode
.
- Exceptions
LibsemigroupsException
: ifnode
orparent
exceeds nr_nodes().