Skip to content

Commit e8a8a8d

Browse files
committed
removing long lines
1 parent 459fa8c commit e8a8a8d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

graphx/src/main/scala/org/apache/spark/graphx/lib/PageRank.scala

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ object PageRank extends Logging {
9797
// Compute the outgoing rank contributions of each vertex, perform local preaggregation, and
9898
// do the final aggregation at the receiving vertices. Requires a shuffle for aggregation.
9999
val rankUpdates = rankGraph.mapReduceTriplets[Double](
100-
e => Iterator((e.dstId, e.srcAttr * e.attr)), _ + _, mapUsesSrcAttr = true, mapUsesDstAttr = false)
100+
e => Iterator((e.dstId, e.srcAttr * e.attr)), _ + _,
101+
mapUsesSrcAttr = true, mapUsesDstAttr = false)
101102

102103
// Apply the final rank updates to get the new ranks, using join to preserve ranks of vertices
103104
// that didn't receive a message. Requires a shuffle for broadcasting updated ranks to the
@@ -171,7 +172,8 @@ object PageRank extends Logging {
171172

172173
// Execute a dynamic version of Pregel.
173174
Pregel(pagerankGraph, initialMessage, activeDirection = EdgeDirection.Out)(
174-
vertexProgram, sendMessage, messageCombiner, sendMsgUsesSrcAttr = true, sendMsgUsesDstAttr = false)
175+
vertexProgram, sendMessage, messageCombiner,
176+
sendMsgUsesSrcAttr = true, sendMsgUsesDstAttr = false)
175177
.mapVertices((vid, attr) => attr._1)
176178
} // end of deltaPageRank
177179
}

0 commit comments

Comments
 (0)