I'm going to attempt to explain the functions on this slide just to make sure I understand GraphLab's abstractions.
The gather_edges function simply defines the edges (for each vertex) on which gather is called. The gather function is called on each of the defined edges and each of these calls is reduced with the addition operator and stored in the argument "total" in the apply function. The apply function updates the value at each vertex (presumably using "total", the result of the gather reduction). Finally, the scatter_edges function pushes the updated value of each vertex to the defined edges.
I'm going to attempt to explain the functions on this slide just to make sure I understand GraphLab's abstractions.
The
gather_edges
function simply defines the edges (for each vertex) on which gather is called. The gather function is called on each of the defined edges and each of these calls is reduced with the addition operator and stored in the argument "total" in the apply function. The apply function updates the value at each vertex (presumably using "total", the result of the gather reduction). Finally, thescatter_edges
function pushes the updated value of each vertex to the defined edges.This comment was marked helpful 0 times.