I'm very new to Gremlin.
I have a Pregel (GraphX) algorithm that is doing the following: given a list of vertices, finds all the network neighborhoods up to level N (adjacent vertices, and vertices adjacent to them, repeating N times. so that the number of edges between the furthest vertex is no more than N)
In Pregel this is basically just doing a shortest paths traversal starting at the source vertices, but stopping after N iterations.
How using Gremlin (tinkerpop3) can i achieve the same behavior?
Example use cases are - in a social networks, find all friends, friends of friends and friends of friends of friends of an individual, etc...
It sounds like a very common use case but I couldn't find the syntax to do it.