This page contains documentation related to safely constructing a WordGraph instance.
- See also
- The `make` function for an overview of possible uses of the
make
function.
|
template<typename Return> |
std::enable_if_t< IsWordGraph< Return >, 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< IsWordGraph< Return >, 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. //NOLINT()
|
|
◆ make() [1/2]
template<typename Return>
This function constructs a word graph from its arguments whose out-degree is specified by the length of the first item in the 2nd parameter.
- Template Parameters
-
- Parameters
-
num_nodes | the number of nodes in the word graph. |
targets | the targets of the word graph. |
- Returns
- A value of type WordGraph.
- Exceptions
-
- Complexity
- \(O(mn)\) where \(m\) is the length of
targets
and \(n\) is the parameter num_nodes
.
- Example
enable_if_is_same< Return, Blocks > make(Container const &cont)
Check the arguments, construct a Blocks object, and check it.
Definition bipart.hpp:798
◆ make() [2/2]
template<typename Return>
This function constructs a word graph from its arguments whose out-degree is specified by the length of the first item in the 2nd parameter.
- Template Parameters
-
- Parameters
-
num_nodes | the number of nodes in the word graph. |
targets | the targets of the word graph. |
- Returns
- A value of type WordGraph.
- Exceptions
-
- Complexity
- \(O(mn)\) where \(m\) is the length of
targets
and \(n\) is the parameter num_nodes
.
- Example
- //NOLINT()