两个节点之间具有相同类型但具有不同属性的多个关系

两个节点之间具有相同类型但具有不同属性的多个关系

问题描述:

我可以在两个相同的节点之间创建多个相同类型的关系吗?我试图在连接相同关系类型的节点中发现模式.例如,关系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!