Functor which adds edges to form an Erdos-Renyi random network.
More...
|
| erdos_renyi_neighbors (size_t size, double prob, bool bidirectional, unsigned int seed=get_location_id()) |
|
template<typename Vertex , typename Graph > |
void | operator() (Vertex v, Graph &view) |
|
|
size_t | m_size |
|
double | m_prob |
|
bool | m_bidirectional |
|
rand_gen | m_rng |
|
Functor which adds edges to form an Erdos-Renyi random network.
◆ erdos_renyi_neighbors()
stapl::generators::detail::erdos_renyi_neighbors::erdos_renyi_neighbors |
( |
size_t |
size, |
|
|
double |
prob, |
|
|
bool |
bidirectional, |
|
|
unsigned int |
seed = get_location_id() |
|
) |
| |
- Parameters
-
size | Number of vertices in the output graph. |
prob | The probability of adding any given edge. |
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: