Copy an existing graph with new node labels and new relationship type

Hello,

I have a graph that I need to copy as is but rename the node labels and the relationship types in the duplicated graph.
What is the neo4j recommended way of doing this?

Thanks!

Hi Michael,

Thanks for the sample query.

I have a similar problem, where I need to clone a graph:

-The original graph must remain the same

-The nodes' label from the original graph have a unique constraint on a property

-The nodes' in the cloned graph must have a different Label

-The nodes in the cloned graph must have the same property and it's value as the original node from the original graph

Im trying to use virtual nodes/relationships but it is getting harder to map relationships' start and end nodes

Hi @stuart_laurie

Thanks for the sample query.

I have a similar problem, where I need to clone a graph:

-The original graph must remain the same

-The nodes' label from the original graph have a unique constraint on a property

-The nodes' in the cloned graph must have a different Label

-The nodes in the cloned graph must have the same property and it's value as the original node from the original graph

Im trying to use virtual nodes/relationships but it is getting harder to map relationships' start and end nodes