timeLimit
Limit the traversal to a specified number of milliseconds of execution time.
Synopsis
timeLimit(integer\_value)
Description
The timeLimit()
step is a filter step that limits the traversal to a specified number of milliseconds of execution time.
Examples
Limit the traversal to 2 milliseconds of execution time:
g.V().repeat(timeLimit(2).both().groupCount('m')).times(16).cap('m').order(local).by(values,decr).next()