Graph generator for a Erdos-Renyi type M graph. More...
Public Member Functions | |
erdos_renyi_m_generator (std::size_t size, std::size_t m, bool bidirectional) | |
erdos_renyi_m_generator (G &g, std::size_t size, std::size_t m, bool bidirectional) | |
void | add_edges () |
Function which is called to add edges to the graph. | |
graph_type | operator() () |
Calls add_vertices and add_edges on the derived class. More... | |
Public Types | |
using | base_type = generator_base< erdos_renyi_m_generator< G > > |
Protected Member Functions | |
graph_type & | graph () |
void | add_vertices () |
Function which is called to add vertices to the graph using the default functor. | |
void | add_vertices (VF const &vf) |
Function which is called to add vertices to the graph using the provided vertex addition functor. More... | |
void | add_edges (EF const &ef) |
Function which is called to add edges to the graph using the provided edge addition functor. More... | |
Protected Attributes | |
std::size_t | m_n |
std::size_t | m_m |
bool | m_bidirectional |
Graph generator for a Erdos-Renyi type M graph.
G | Type of the graph view used to construct the graph. |
stapl::generators::detail::erdos_renyi_m_generator< G >::erdos_renyi_m_generator | ( | std::size_t | size, |
std::size_t | m, | ||
bool | bidirectional | ||
) |
size | The number of vertices |
m | The number of edges to generate |
bidirectional | Whether to add back edges |
stapl::generators::detail::erdos_renyi_m_generator< G >::erdos_renyi_m_generator | ( | G & | g, |
std::size_t | size, | ||
std::size_t | m, | ||
bool | bidirectional | ||
) |
g | View over the graph to generate. |
size | The number of vertices |
m | The number of edges to generate |
bidirectional | Whether to add back edges |
|
protectedinherited |
Function which is called to add vertices to the graph using the provided vertex addition functor.
vf | Functor which is used to add vertices. |
|
protectedinherited |
Function which is called to add edges to the graph using the provided edge addition functor.
ef | Functor which is used to add edges. |
|
inherited |
Calls add_vertices and add_edges on the derived class.