parent

node_type libsemigroups::Forest::parent(node_type i) const

Returns the parent of a node.

Return

A Forest::node_type.

Complexity

Constant

Parameters
  • i: the node whose parent is sought.

Exceptions