Fixing a bug in pregel where the initial vertex-program results are lost.
This commit is contained in:
parent
be8269af07
commit
0bd92ed8d0
|
@ -50,7 +50,7 @@ object Pregel {
|
|||
def mapF(vid: Vid, edge: EdgeTriplet[VD,ED]) = sendMsg(edge.otherVertexId(vid), edge)
|
||||
|
||||
// Receive the first set of messages
|
||||
g.mapVertices( (vid, vdata) => vprog(vid, vdata, initialMsg))
|
||||
g = g.mapVertices( (vid, vdata) => vprog(vid, vdata, initialMsg))
|
||||
|
||||
while (i < numIter) {
|
||||
// compute the messages
|
||||
|
|
Loading…
Reference in a new issue