This page contains documentation related to safely constructing a WordGraph instance.
Functions | |
| template<typename Return> | |
| std::enable_if_t< is_specialization_of_v< Return, WordGraph >, Return > | make (size_t num_nodes, std::initializer_list< std::vector< typename Return::node_type > > targets) |
| Constructs a word graph from a number of nodes and targets. | |
| template<typename Return> | |
| std::enable_if_t< is_specialization_of_v< Return, WordGraph >, Return > | make (size_t num_nodes, std::vector< std::vector< typename Return::node_type > > const &targets) |
| Constructs a word graph from a number of nodes and targets. | |
| template<typename Return> | |
| std::enable_if_t< is_specialization_of_v< Return, WordGraph >, Return > | make (size_t num_nodes, std::initializer_list< std::vector< typename Return::node_type > > targets) |
| Constructs a word graph from a number of nodes and targets. | |
| template<typename Return> | |
| std::enable_if_t< is_specialization_of_v< Return, WordGraph >, Return > | make (size_t num_nodes, std::vector< std::vector< typename Return::node_type > > const &targets) |
| Constructs a word graph from a number of nodes and targets. | |
|
nodiscard |
This function constructs a word graph from its arguments whose out-degree is specified by the length of the first item in the second parameter, or 0 if the second parameter is empty.
| Return | the return type. Must satisfy is_specialization_of_v<Return, WordGraph>. |
| num_nodes | the number of nodes in the word graph. |
| targets | the targets of the word graph. |
| LibsemigroupsException | if WordGraph<Node>::target throws when adding edges from targets. |
targets and \(n\) is the parameter num_nodes.
|
nodiscard |
This function constructs a word graph from its arguments whose out-degree is specified by the length of the first item in the second parameter, or 0 if the second parameter is empty.
| Return | the return type. Must satisfy is_specialization_of_v<Return, WordGraph>. |
| num_nodes | the number of nodes in the word graph. |
| targets | the targets of the word graph. |
| LibsemigroupsException | if WordGraph<Node>::target throws when adding edges from targets. |
targets and \(n\) is the parameter num_nodes.
|
nodiscard |
This function constructs a word graph from its arguments whose out-degree is specified by the length of the first item in the second parameter, or 0 if the second parameter is empty.
| Return | the return type. Must satisfy is_specialization_of_v<Return, WordGraph>. |
| num_nodes | the number of nodes in the word graph. |
| targets | the targets of the word graph. |
| LibsemigroupsException | if WordGraph<Node>::target throws when adding edges from targets. |
targets and \(n\) is the parameter num_nodes.
|
nodiscard |
This function constructs a word graph from its arguments whose out-degree is specified by the length of the first item in the second parameter, or 0 if the second parameter is empty.
| Return | the return type. Must satisfy is_specialization_of_v<Return, WordGraph>. |
| num_nodes | the number of nodes in the word graph. |
| targets | the targets of the word graph. |
| LibsemigroupsException | if WordGraph<Node>::target throws when adding edges from targets. |
targets and \(n\) is the parameter num_nodes.