diff options
author | Gaurav Kumar <gauravkumar37@gmail.com> | 2015-11-12 12:14:00 -0800 |
---|---|---|
committer | Reynold Xin <rxin@databricks.com> | 2015-11-12 12:14:00 -0800 |
commit | df0e318152165c8e50793aff13aaca5d2d9b8b9d (patch) | |
tree | 8451683ed8ed8294990cdc73e47c62a6390a2095 | |
parent | 08660a0bc903a87b72f8ffd8b9b02fd7ee379cf7 (diff) | |
download | spark-df0e318152165c8e50793aff13aaca5d2d9b8b9d.tar.gz spark-df0e318152165c8e50793aff13aaca5d2d9b8b9d.tar.bz2 spark-df0e318152165c8e50793aff13aaca5d2d9b8b9d.zip |
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.
Author: Gaurav Kumar <gauravkumar37@gmail.com>
Closes #9666 from gauravkumar37/patch-1.
-rw-r--r-- | graphx/src/main/scala/org/apache/spark/graphx/GraphOps.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/graphx/src/main/scala/org/apache/spark/graphx/GraphOps.scala b/graphx/src/main/scala/org/apache/spark/graphx/GraphOps.scala index 9451ff1e5c..9827dfab86 100644 --- a/graphx/src/main/scala/org/apache/spark/graphx/GraphOps.scala +++ b/graphx/src/main/scala/org/apache/spark/graphx/GraphOps.scala @@ -282,7 +282,7 @@ class GraphOps[VD: ClassTag, ED: ClassTag](graph: Graph[VD, ED]) extends Seriali * Convert bi-directional edges into uni-directional ones. * Some graph algorithms (e.g., TriangleCount) assume that an input graph * has its edges in canonical direction. - * This function rewrites the vertex ids of edges so that srcIds are bigger + * This function rewrites the vertex ids of edges so that srcIds are smaller * than dstIds, and merges the duplicated edges. * * @param mergeFunc the user defined reduce function which should |