开发者

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

开发者 https://www.devze.com 2023-04-09 03:55 出处:网络
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.开发者_JAVA技巧For e.g., relation PE

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.开发者_JAVA技巧 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.


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!

0

精彩评论

暂无评论...
验证码 换一张
取 消