At 2014-09-16 00:07:34 -0700, sochi <sochise...@gmail.com> wrote: > so, above example is like a ---(e1)---> b ---(e1)---> c ---(e1)---> d > > In this case, can I find b,c and d when I have just src vertex, a and edge, > e1?
First, to clarify: the three edges in your example are all distinct, since they have different source and destination vertices. Therefore I assume you're using e1 to refer to the edge property that they have in common. In that case, this problem is equivalent to finding the connected component containing vertex a in the subgraph where edges have property e1. Here is how to do that in the Spark shell: https://gist.github.com/ankurdave/25732a493bc8c8541c97 Ankur --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@spark.apache.org For additional commands, e-mail: dev-h...@spark.apache.org