Get neighbours of a vertex

User 423 | 7/17/2014, 2:22:28 AM

Is there an easy way to get neighbours of a vertex without "mapreduceneighbourhood()"?

Comments

User 121 | 7/17/2014, 12:46:24 PM

IMHO, No. Only other option is, to explicitly gather() the IN and/or OUT edges, and build your customized neighbour set in apply(). I think it is the easiest way to get neighbours you want. It also depends on your definition of neighbourhood.