Skip to content

Commit

Permalink
updated to set ShortestPaths to run 'forward' rather than 'backward'
Browse files Browse the repository at this point in the history
  • Loading branch information
Brennon York committed Jan 29, 2015
1 parent 8125168 commit aa57f83
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ object ShortestPaths {
}

def sendMessage(edge: EdgeTriplet[SPMap, _]): Iterator[(VertexId, SPMap)] = {
val newAttr = incrementMap(edge.srcAttr)
if (edge.dstAttr != addMaps(newAttr, edge.dstAttr)) Iterator((edge.dstId, newAttr))
val newAttr = incrementMap(edge.dstAttr)
if (edge.srcAttr != addMaps(newAttr, edge.srcAttr)) Iterator((edge.srcId, newAttr))
else Iterator.empty
}

Expand Down

0 comments on commit aa57f83

Please sign in to comment.