两个节点之间具有相同类型但具有不同属性的多个关系 [英] Multiple relationships of the same type but with different properties between the same two nodes

查看:57
本文介绍了两个节点之间具有相同类型但具有不同属性的多个关系的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以在两个相同的节点之间创建多个相同类型的关系吗?我试图在连接相同关系类型的节点中发现模式.例如,关系PERFORMED_BY可以具有将Person1记录为执行者的属性,并带有从节点A过渡到节点B的时间戳,而第二个关系PERFORMED_BY可以在相同的两个节点之间的不同时间将Person2记录为执行者. >

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.

推荐答案

是的,您可以在Neo4j中的相同两个节点之间具有相同类型的多个关系.而且,不同关系上的属性是相互独立的.

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!

这篇关于两个节点之间具有相同类型但具有不同属性的多个关系的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆