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

回眸只為那壹抹淺笑 提交于 2019-12-13 15:24:46

问题


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.


回答1:


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!



来源:https://stackoverflow.com/questions/7601346/multiple-relationships-of-the-same-type-but-with-different-properties-between-th

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!