sample
Sample previous steps in the traversal.
Synopsis
sample(integer)
Description
The sample() step is useful for sampling some number of traversers previous in the traversal.
Examples
Get three samples of the property numServ from the includes edges of a meal_item:
g.V().hasLabel('meal_item').inE().sample(3).by('numServ')