friend1 = ...;friend2 = ...;g.V(friend1).both("friend").where(both("knows").is(eq(friend2))) // mutual friends of friend1 and friend2
Hello everyone, I am new to titan and gremlin. I need a query to find mutual friends between two users(vertices). Please someone help me??Thank you in advance.
--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/a0c48d95-3ec1-43e2-844c-a9ec0b416b0b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
g.V(friend1).both("friend").where(both("friend").is(eq(friend2)))