STAPL API Reference          
Overview   Containers   Algorithms   Views   Skeletons   Run-Time System
Modules     Classes    
List of all members | Public Member Functions | Public Types | Public Attributes
stapl::generators::detail::erdos_renyi_neighbors Struct Reference

Functor which adds edges to form an Erdos-Renyi random network. More...

Public Member Functions

 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)
 

Public Types

using result_type = void
 

Public Attributes

size_t m_size
 
double m_prob
 
bool m_bidirectional
 
rand_gen m_rng
 

Detailed Description

Functor which adds edges to form an Erdos-Renyi random network.

Constructor & Destructor Documentation

◆ 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
sizeNumber of vertices in the output graph.
probThe probability of adding any given edge.
bidirectionalTrue to add back-edges in a directed graph, false for forward edges only.
seedThe seed for random-number generation.

The documentation for this struct was generated from the following file: