STAPL API Reference          
Overview   Containers   Algorithms   Views   Skeletons   Run-Time System
Modules     Classes    
List of all members | Public Member Functions | Public Types
stapl::kla_detail::neighbor_operator_apply< reinvoke_behavior::avoid_hubs, VertexOp, NeighborOp > Struct Template Reference

Functor to visit the target vertex with the user provided neighbor-operator. More...

Public Member Functions

template<typename... Args>
 neighbor_operator_apply (Args &&... args)
 
template<typename Vertex >
bool propagation_condition (Vertex &&target) const
 Condition to determine if a vertex operator should be invoked on the same vertex after the neighbor operator. In this case, we consider both the KLA superstep condition and if this vertex's out-degree is below a given threshold (which is defined in the vertex operator wrapper (. More...
 
void operator() (Graph *graph, Vertex &&target) const
 
NeighborOp const & neighbor_op () const
 
VertexOp const & vertex_op () const
 

Public Types

typedef neighbor_operator_apply_base< VertexOp, NeighborOp, neighbor_operator_apply< reinvoke_behavior::avoid_hubs, VertexOp, NeighborOp > > base_type
 
using result_type = void
 

Detailed Description

template<typename VertexOp, typename NeighborOp>
struct stapl::kla_detail::neighbor_operator_apply< reinvoke_behavior::avoid_hubs, VertexOp, NeighborOp >

Functor to visit the target vertex with the user provided neighbor-operator.

This is a specialization for

See also
neighbor_operator_apply_base where the trigger for propagation is both the level criterion and that the visited vertex's out-degree falls below a threshold.
Template Parameters
VertexOpType of the user provided vertex-operator.
NeighborOpType of the user provided neighbor-operator.

Member Function Documentation

◆ propagation_condition()

template<typename VertexOp , typename NeighborOp >
template<typename Vertex >
bool stapl::kla_detail::neighbor_operator_apply< reinvoke_behavior::avoid_hubs, VertexOp, NeighborOp >::propagation_condition ( Vertex &&  target) const

Condition to determine if a vertex operator should be invoked on the same vertex after the neighbor operator. In this case, we consider both the KLA superstep condition and if this vertex's out-degree is below a given threshold (which is defined in the vertex operator wrapper (.

See also
vertex_operator_apply)).
Parameters
targetThe vertex that was sucessfully visited

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