-
- Downloads
[SPARK-4917] Add a function to convert into a graph with canonical edges in GraphOps
Convert bi-directional edges into uni-directional ones instead of 'canonicalOrientation' in GraphLoader.edgeListFile. This function is useful when a graph is loaded as it is and then is transformed into one with canonical edges. It rewrites the vertex ids of edges so that srcIds are bigger than dstIds, and merges the duplicated edges. Author: Takeshi Yamamuro <linguin.m.s@gmail.com> Closes #3760 from maropu/ConvertToCanonicalEdgesSpike and squashes the following commits: 7f8b580 [Takeshi Yamamuro] Add a function to convert into a graph with canonical edges in GraphOps
Showing
- graphx/src/main/scala/org/apache/spark/graphx/GraphOps.scala 26 additions, 0 deletionsgraphx/src/main/scala/org/apache/spark/graphx/GraphOps.scala
- graphx/src/test/scala/org/apache/spark/graphx/GraphOpsSuite.scala 15 additions, 0 deletions...rc/test/scala/org/apache/spark/graphx/GraphOpsSuite.scala
Please register or sign in to comment