Work-function to add a random edge.
More...
|
| add_random_edge (size_t size, bool bidirectional, unsigned int seed=get_location_id()) |
|
template<typename Index , typename Graph > |
void | operator() (Index &&, Graph &view) |
|
|
std::size_t | m_size |
|
bool | m_bidirectional |
|
rand_gen | m_rng |
|
Work-function to add a random edge.
◆ add_random_edge()
stapl::generators::detail::add_random_edge::add_random_edge |
( |
size_t |
size, |
|
|
bool |
bidirectional, |
|
|
unsigned int |
seed = get_location_id() |
|
) |
| |
- Parameters
-
size | Number of vertices in the output graph. |
bidirectional | True to add back-edges in a directed graph, false for forward edges only. |
seed | The seed for random-number generation. |
The documentation for this struct was generated from the following file: