A straightforward:
Node target = db.createNode();
copyProperties( source, target );
for ( Relationship sourceRel : source.getRelationships() ) {
Relationship targetRel = source.equals( sourceRel.getStartNode() ) ?
target.createRelationshipTo( sourceRel.getEndNode(),
sourc
Hi All,
I am using Java API with neo4j 1.4.2.
I want to copy all the relationships(Income/Outgoing) of a node to another
node and delete the original node. Can anyone suggest what will be the
easiest way.
Emil Dombagolla,
Thank you so much.
___
NOTICE:
2 matches
Mail list logo