times
Repeat a step for the specified number of times.
Synopsis
times( integer )
Description
The times()
step is a step modulator, a helper step for another traversal step.
Its main use is to repeat a repeat() step for the specified number of times.
Examples
An example that repeats through all the outgoing knows adjacent vertices of John Doe three times:
g.V().hasLabel('person','name','John Doe'). repeat(out('knows')).times(3)