This is the code i’m executing:
g.v(452).outE('friend', 'like').outV()
The return 52 nodes … i want to form them in categories by edge type, something like:
[ {friend: [v2,v3,v4…]}, {‘like’: [v5,v7,v9…]} ]
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Using the toy graph from the Gremlin terminal for example purposes :
I added an extra edge called ‘friends’ to make the data a bit more interesting (where there would be multiple edges between two vertices):
From there you could do something like: