This page contains documentation related to safely constructing a Forest instance.
Functions | |
| template<typename Return> | |
| enable_if_is_same< Return, Forest > | make (std::initializer_list< uint32_t > parent, std::initializer_list< uint32_t > edge_labels) |
| Construct a Forest from parents and labels. | |
| template<typename Return> | |
| enable_if_is_same< Return, Forest > | make (std::vector< uint32_t > const &parent, std::vector< uint32_t > const &edge_labels) |
| Construct a Forest from parents and labels. | |
|
nodiscard |
This function constructs a Forest from initializer lists of parents and labels.
| Return | the return type. Must satisfy std::is_same<Return, Forest>. |
| parent | the initializer list of parents of nodes in the Forest. |
| edge_labels | the initializer list of edge labels in the Forest. |
parent and edge labels edge_labels.| LibsemigroupsException | if any of the following hold:
|
|
nodiscard |
This function constructs a Forest from vector of parents and labels.
| Return | the return type. Must satisfy std::is_same<Return, Forest>. |
| parent | the vector of parents of nodes in the Forest. |
| edge_labels | the vector of edge labels in the Forest. |
parent and edge labels edge_labels.| LibsemigroupsException | if any of the following hold:
|