Skip to content

Commit c269429

Browse files
committed
Pregel example type fix
1 parent d38c502 commit c269429

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/graphx-programming-guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -800,7 +800,7 @@ import org.apache.spark.graphx._
800800
// Import random graph generation library
801801
import org.apache.spark.graphx.util.GraphGenerators
802802
// A graph with edge attributes containing distances
803-
val graph: Graph[Int, Double] =
803+
val graph: Graph[Long, Double] =
804804
GraphGenerators.logNormalGraph(sc, numVertices = 100).mapEdges(e => e.attr.toDouble)
805805
val sourceId: VertexId = 42 // The ultimate source
806806
// Initialize the graph such that all vertices except the root have distance infinity.

0 commit comments

Comments
 (0)