g.V().outE('FOLLOWS')
and write all the vertices id's to a csv file.
vid1,vid2
vid1,vid2
What is the most efficient way to loop through and export using gremlin on a massive graph?
Thanks
--
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/0a463994-ca91-4eff-9390-b073ddd84ffa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/c95acbb3-ff4d-49b4-8c86-6a603d044d8b%40googlegroups.com.
new File('/tmp/result.txt').withWriter { def w ->g.V().has("foo","bar").outE().each { def e ->w << e.outVertex().id() + "\t" + e.inVertex().id() + "\n"}}
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/d9b8b03d-aad8-4c34-adc0-2cd04c9cb2b1%40googlegroups.com.