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::add_random_edge Struct Reference

Work-function to add a random edge. More...

Public Member Functions

 add_random_edge (size_t size, bool bidirectional, unsigned int seed=get_location_id())
 
template<typename Index , typename Graph >
void operator() (Index &&, Graph &view)
 

Public Types

using result_type = void
 

Public Attributes

std::size_t m_size
 
bool m_bidirectional
 
rand_gen m_rng
 

Detailed Description

Work-function to add a random edge.

Constructor & Destructor Documentation

◆ add_random_edge()

stapl::generators::detail::add_random_edge::add_random_edge ( size_t  size,
bool  bidirectional,
unsigned int  seed = get_location_id() 
)
Parameters
sizeNumber of vertices in the output graph.
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: