Create Relationship between child nodes

95 Views Asked by At

I want to create a new relationship between nodes of the same label based on their relationship to the same parent node. The attached picture is an example:

Nodes overview

Only (Person)/Authors that worked on the same Article should have a relationship [WORKED_WITH] to another. Is there an elegant way, to do this using cypher or maybe apoc? So far the only solution I came up with is by creating a RESULT of each article name with a list (collect) of the authors. Which then would have to be used (py2neo) to create the relationship.

Thanks for your help.

0

There are 0 best solutions below