Skip to content

Commit

Permalink
fix a problem of EdgePartitionBuilder in Graphx
Browse files Browse the repository at this point in the history
  • Loading branch information
lianhuiwang committed Nov 6, 2014
1 parent c8abddc commit 3f4e503
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ class EdgePartitionBuilder[@specialized(Long, Int, Double) ED: ClassTag, VD: Cla
// Copy edges into columnar structures, tracking the beginnings of source vertex id clusters and
// adding them to the index
if (edgeArray.length > 0) {
index.update(srcIds(0), 0)
var currSrcId: VertexId = srcIds(0)
index.update(edgeArray(0).srcId, 0)
var currSrcId: VertexId = edgeArray(0).srcId
var i = 0
while (i < edgeArray.size) {
srcIds(i) = edgeArray(i).srcId
Expand Down

0 comments on commit 3f4e503

Please sign in to comment.