I'm still at my earlier stages with graphs and gremlin.
Is it possible to randomly select graph vertices in Gremlin?
Consider the following pipeline that gets the cars owned by a user's friend:
u.out('Friend')[0..9].out('Drives').map()
But this code is only executed against the first 10 friends every time. How can I make the selection random efficiently?
Thank you for your time :)
u.out('Friend')[0..n].out('Drives').map()
--
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/a5602837-b7c3-46f2-9762-2ee827b0c696%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.