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

Functor which adds edges to form a list graph. More...

Public Member Functions

 list_neighbors (size_t n, size_t start, bool bidirectional)
 
template<typename Vertex , typename Graph >
void operator() (Vertex v, Graph &view)
 

Public Types

typedef void result_type
 

Public Attributes

size_t m_n
 
size_t m_start
 
bool m_bidirectional
 

Detailed Description

Functor which adds edges to form a list graph.

Constructor & Destructor Documentation

◆ list_neighbors()

stapl::generators::detail::list_neighbors::list_neighbors ( size_t  n,
size_t  start,
bool  bidirectional 
)
Parameters
nSize of the graph.
startFirst vertex id of the list.
bidirectionalTrue for adding back-edges, False for forward only.

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