tinkerpop/gremlin — Issue #270: Feature request: clone
Author: EddyR
Created: 2011-12-16 05:31:12+00:00
State: open

My second (highly-anticipated!) feature request.

To be able to "clone" any part of a graph - and like my previous feature request, to be able to add a edge to it immediately.

I think it's pretty self explanatory -

Example:

addEdge(
g.v(1),
g.clone(g.v(1), my-clone-id),
'ATTACH'
)

I guess the benefit of something like this instead of a Copy & Paste feature is that a Clone would occur immediately.