I'm new to gremlin and I'm trying to optimize the query. Any ideas what can be done?
traversal = graph.V(fromID).toE(toID)
traversal.project(1KEY, 2KEY)
.by(valueMap().with(WithOptions.tokens))
.by(outV().valueMap().with(WithOptions.tokens))
.by(inV().valueMap().with(WithOptions.tokens));