Cloning sub-graph - best approach.

359 views
Skip to first unread message

Shahid Iqbal

unread,
Sep 28, 2018, 12:06:44 PM9/28/18
to gremli...@googlegroups.com
Hello,
I have to traversal through a graph and select certain vertices, edges with their properties (FROM Graph) and then clone them into new vertices / edges with same properties (but different IDs). I want to do this ideally in same traversal where I'm traversing FROM graph. Is there any gremlin sample code someone can share?

I noticed there used to be ElementHelper.copyProperties() in previous tinkerpop 2.x blueprints, but I don't see such helper method that in latest API.

Hoping there is some other way to do same.

Many thanks.  

--

- Shahid

Daniel Kuppitz

unread,
Sep 28, 2018, 4:15:45 PM9/28/18
to gremli...@googlegroups.com

--
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/CAFv4ctuq2apkP7%3DHi9pLOoGzqTo1GMSeQXOpRLGf%3Duh5rCJ0uA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages