How can I get Gremlin return a tuple. I want to get 2 attributes from vertices at a time and then sort these tuples on one of the attributes. How can I do that.
Also how can analytics be applied to titan graphs....
How can I get Gremlin return a tuple. I want to get 2 attributes from vertices at a time and then sort these tuples on one of the attributes. How can I do that.
Also how can analytics be applied to titan graphs....
For the first part of your question regarding tuples - just transform to a two (or more) item list of your properties:
then to sort, just use
order
step and pick the item in the tuple to order by...in this case "name":and in this case "age":