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(),

[Neo4j] SpringDataNeo4j 2.0 Supernode navigation

2012-01-12 Thread Agelos Pikoulas
Hello everyone, just watched Michael Hunger on the Spring Data Neo4j webinar - thanks Michael. Now to the question, its an old problem - the supernode relationship navigation: Assume a *Movie *node has N.000.000 incoming *LIKES *from *User *nodes, but only a few incoming *ACTS_IN *from *Actor*