Anil
Anil

Reputation: 31

Multiple relationships of the same type but with different properties between the same two nodes

Can I create multiple relationships of the same type between the same two nodes? I am trying to discover patterns in nodes connected with the same relationship type. For e.g., relation PERFORMED_BY could have a property to record Person1 as the performer with a timestamp for the transition from node A to node B and a second relation PERFORMED_BY could have Person2 as the performer at a different time between the same two nodes.

Upvotes: 3

Views: 3272

Answers (1)

nawroth
nawroth

Reputation: 4361

Yes, you can have multiple relationships of the same type between the same two nodes in Neo4j. And the properties on the different relationships are independent from each other.

It would be useful if you describe your domain a bit more, at least if you want any input on the graph structure!

Upvotes: 2

Related Questions