Github user spmallette commented on the issue:

    https://github.com/apache/tinkerpop/pull/705
  
    You could deep clone (brand new vertices/edges/properties) of tinkergraph 
by using detachment. Do something like this:
    
    ```text
    gremlin> graph1 = TinkerFactory.createModern()
    ==>tinkergraph[vertices:6 edges:6]
    gremlin> graph2 = TinkerGraph.open()
    ==>tinkergraph[vertices:0 edges:0]
    gremlin> graph1.vertices().forEachRemaining { v -> 
DetachedFactory.detach(v, true).attach(Attachable.Method.create(graph2)) }
    gremlin> graph2
    ==>tinkergraph[vertices:6 edges:0]
    gremlin> graph1.edges().forEachRemaining { e -> DetachedFactory.detach(e, 
true).attach(Attachable.Method.create(graph2)) }
    gremlin> graph2
    ==>tinkergraph[vertices:6 edges:6]
    ```
    
    I think that gets it, right?



---

Reply via email to