You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@neozhangthe1 , we need a before_iteration and after_iteration interface, these apis will update vertex program's status before iteration. Use cases like if I want to count active node in a graph, I must check the activated flag of every vertex, which can be initialized in before_iteration.
Here is discussion thread of IAlgorithm API.
Following are confirmed API:
gather_type gather(icontext_type& context, const vertex_type& vertex, edge_type& edge)
void apply(icontext_type& context, vertex_type& vertex, const gather_type& total)
void scatter(icontext_type& context, const vertex_type& vertex, edge_type& edge)
void beforeIteration(icontext_type& context, const vertex_type& vertex)
void afterIteration(icontext_type& context, const vertex_type& vertex)
The text was updated successfully, but these errors were encountered: