void scatter(icontext_type& context, const vertex_type& vertex, edge_type& edge) const { float weight = edge.data(); if ( ((double)rand() / RAND_MAX) < weight){ context.signalVid(edge.target().id()); } }