max
Get the largest number in a traversal.
Synopsis
max()
Description
The max()
step is a map step that will discover the largest number generated from the previous step in the traversal.
Examples
Find the maximum number of reviews written by any person:
g.V().hasLabel('person').map(outE('reviewed').count()).max()