Created
August 18, 2015 20:09
-
-
Save ponkin/9cd397d56781d917387f to your computer and use it in GitHub Desktop.
find all paths with length 1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val initStep = edges.join( startVertices.map( (_, "") ) ).mapValues( _._1 ) | |
val index = edges.map( _.swap ).persist() // we will iteratively join with this RDD |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment