label

label_type libsemigroups::Forest::label(node_type i) const

Returns the label of the edge from a node to its parent.

Return

A Forest::label_type.

Complexity

Constant

Parameters
  • i: the node whose label is sought.

Exceptions