Skip to content

Commit e1699e8

Browse files
committed
Fixed error in scaladoc of convertToCanonicalEdges
The code convertToCanonicalEdges is such that srcIds are smaller than dstIds but the scaladoc suggested otherwise. Have fixed the same.
1 parent 30e7433 commit e1699e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graphx/src/main/scala/org/apache/spark/graphx/GraphOps.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ class GraphOps[VD: ClassTag, ED: ClassTag](graph: Graph[VD, ED]) extends Seriali
282282
* Convert bi-directional edges into uni-directional ones.
283283
* Some graph algorithms (e.g., TriangleCount) assume that an input graph
284284
* has its edges in canonical direction.
285-
* This function rewrites the vertex ids of edges so that srcIds are bigger
285+
* This function rewrites the vertex ids of edges so that srcIds are smaller
286286
* than dstIds, and merges the duplicated edges.
287287
*
288288
* @param mergeFunc the user defined reduce function which should

0 commit comments

Comments
 (0)