Graph generator for a binary tree network graph. More...
Public Member Functions | |
binary_tree_network (size_t levels) | |
binary_tree_network (G &g, size_t levels) | |
virtual void | add_vertices () |
Function which is called to add vertices to the graph. | |
virtual 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 | |
typedef generator_base< binary_tree_network< G > > | base_type |
Protected Member Functions | |
void | add_vertices_top () |
Function to add vertices for the first tree. | |
void | add_vertices_bottom () |
Function to add vertices for the second tree. | |
void | add_edges_top () |
Function to add edges for the first tree. | |
void | add_edges_bottom () |
Function to add edges for the second tree. | |
void | add_edges_middle () |
Function to add edges to link the two trees. | |
graph_type & | graph () |
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 | |
size_t | m_levels |
size_t | m_n |
Graph generator for a binary tree network graph.
G | Type of the graph view used to construct the graph. |
stapl::generators::binary_tree_network< G >::binary_tree_network | ( | size_t | levels | ) |
levels | Number of levels in each generated tree. |
stapl::generators::binary_tree_network< G >::binary_tree_network | ( | G & | g, |
size_t | levels | ||
) |
g | View over the graph to generate. |
levels | Number of levels in each generated tree. |
|
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.