amazon-neptune

gremlin clone a node and its edges

时光总嘲笑我的痴心妄想 提交于 2019-11-28 02:19:20
问题 Does gremlin provide the ability to clone a vertex for instance v1->v2, v1->v3, v1->v4 how can I simply and efficiently create a new vertex v5 that also has edges that point to v2, v3, v4 (the same places that v1's edges point to) without have to explicitly set them and instead saying something like g.createV(v1).clone(v2) . Note that I am using the AWS Neptune version of gremlin, solution must be compatible with that. 回答1: A clone step doesn't exist (yet), but it can be solved with a single