[英]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 eg, 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.
例如,关系PERFORMED_BY可以具有将Person1记录为具有从节点A到节点B的转换的时间戳的属性的属性,并且第二关系PERFORMED_BY可以在相同的两个节点之间的不同时间将Person2作为执行者。
Yes, you can have multiple relationships of the same type between the same two nodes in Neo4j. 是的,您可以在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! 如果你更多地描述你的域,那将是有用的,至少如果你想在图形结构上有任何输入!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.