Skip to content

Instantly share code, notes, and snippets.

@ponkin
Created August 18, 2015 20:55
Show Gist options
  • Save ponkin/420630391558f49ec4a1 to your computer and use it in GitHub Desktop.
Save ponkin/420630391558f49ec4a1 to your computer and use it in GitHub Desktop.
val allPaths = initStep union stepOver(initStep)
/* now we can collect all paths */
val result = startVertices.map( (_, "") ).cougroup(allPaths).map( pair => (pair._1, pair._2._2.toList) )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment