In Neo4j, I want to create relationship between nodes where both the nodes are related with a common node.
For Example, I have three nodes where 2 student nodes and a teacher node. I already have relation between student and teacher. Now I want to create a third relationship between student to student where both the students are already related to the same teacher.
In the above image T1 and T2 are teacher nodes. S1, S2, S3 and S4 are student nodes. The relationships which are in blue is already created. now I want to create the relationships which are given in yellow.
Please help. Thanks in Advance.