STAPL API Reference          
Overview   Containers   Algorithms   Views   Skeletons   Run-Time System
Modules     Classes    
List of all members
stapl::multidigraph< OptionalParams > Class Template Reference

Creates an DIRECTED, MULTIEDGES graph.Static graphs do not allow addition or deletion of vertices. The number of vertices must be known at construction. Edges may be added/deleted. More...

Public Member Functions

Constructors
 multidigraph (size_t const &n=0, typename base_type::vertex_property const &default_value=typename base_type::vertex_property())
 Creates a graph with a given size and constructs all elements with a default value for vertex property. More...
 
 multidigraph (typename base_type::partition_type const &ps, typename base_type::vertex_property const &default_value=typename base_type::vertex_property())
 Creates a graph with a given partition and default value for vertex property. More...
 
boost::shared_ptr< this_typeshared_from_this ()
 

Detailed Description

template<typename ... OptionalParams>
class stapl::multidigraph< OptionalParams >

Creates an DIRECTED, MULTIEDGES graph.

Static graphs do not allow addition or deletion of vertices. The number of vertices must be known at construction. Edges may be added/deleted.

Template Parameters
VertexPtype of property for the vertex. Default is no_property. Must be default assignable, copyable and assignable.
EdgePtype of property for the edge. Default is no_property. Must be default assignable, copyable and assignable.
PSPartition strategy that defines how to partition the original domain into subdomains. The default partition is balanced_partition.
MapMapper that defines how to map the subdomains produced by the partition to locations. The default mapper is mapper.
TraitsA traits class that defines customizable components of graph, such as the domain type, base container type, storage, etc. The default traits class is static_graph_traits.

Constructor & Destructor Documentation

◆ multidigraph() [1/2]

template<typename ... OptionalParams>
stapl::multidigraph< OptionalParams >::multidigraph ( size_t const &  n = 0,
typename base_type::vertex_property const &  default_value = typename base_type::vertex_property() 
)

Creates a graph with a given size and constructs all elements with a default value for vertex property.

◆ multidigraph() [2/2]

template<typename ... OptionalParams>
stapl::multidigraph< OptionalParams >::multidigraph ( typename base_type::partition_type const &  ps,
typename base_type::vertex_property const &  default_value = typename base_type::vertex_property() 
)

Creates a graph with a given partition and default value for vertex property.


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