![]() |
libsemigroups
v3.0.0
C++ library for semigroups and monoids
|
This page contains the documentation of some helper functions for the Forest class.
Functions | |
word_type | path_to_root (Forest const &f, Forest::node_type i) |
Returns a word containing the labels of the edges on the path to a root node from i . | |
void | path_to_root (Forest const &f, word_type &w, Forest::node_type i) |
Modifies w to contain the labels of the edges on the path to a root node from i . | |
word_type | path_to_root_no_checks (Forest const &f, Forest::node_type i) |
Returns a word containing the labels of the edges on the path to a root node from i . | |
void | path_to_root_no_checks (Forest const &f, word_type &w, Forest::node_type i) |
Modifies w to contain the labels of the edges on the path to a root node from i . | |
|
nodiscard |
This function returns a word containing the labels of the edges on the path to a root node from node i
.
f | the forest. |
i | the node. |
i
.LibsemigroupsException | if i is greater than or equal to number_of_nodes. |
void path_to_root | ( | Forest const & | f, |
word_type & | w, | ||
Forest::node_type | i ) |
This function modifies its first argument w
in-place to contain the labels of the edges on the path to a root node from node i
.
f | the forest. |
w | value to contain the result. |
i | the node. |
LibsemigroupsException | if i is greater than or equal to number_of_nodes. |
|
nodiscard |
This function returns a word containing the labels of the edges on the path to a root node from node i
.
f | the forest. |
i | the node. |
i
.void path_to_root_no_checks | ( | Forest const & | f, |
word_type & | w, | ||
Forest::node_type | i ) |
This function modifies its first argument w
in-place to contain the labels of the edges on the path to a root node from node i
.
f | the forest. |
w | value to contain the result. |
i | the node. |