I have a parent-child relationship in which there is a numeric property on the edge. I would like to sack
the maximum value of this property and carry it through the reset of the traversal, referring to it as needed.
Current implementation looks like this:
g.withSack(1).V(33131).outE("parent_to").values("order").max().unfold().sack(Operator.max)
.project("count","sack")
.by(V().count())
.by(sack())
Is there a cleaner way to do this? The projection here is only for example sake.