label

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

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

Complexity

Constant

Parameters

i – the node whose label is sought.

Throws

LibsemigroupsException – if i exceeds nr_nodes().

Returns

A Forest::label_type.