Re: [Neo4j] Copy all the Relationships to another Node

2012-01-12 Thread Mattias Persson
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

[Neo4j] Copy all the Relationships to another Node

2012-01-11 Thread Emil Dombagolla
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: