简体   繁体   English

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

[英]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.

相关问题 从csv在两个节点之间创建具有不同属性的相同类型的多个关系 - Create multiple relationships of same type with different properties between two nodes from csv 在具有不同属性的节点之间创建相同的关系 - Create same relationships between nodes with different properties 使用Cypher在Neo4j中的两个节点之间创建相同类型的多个关系 - Creating multiple relationships of the same type between two nodes in Neo4j using Cypher 在具有相同属性的节点之间创建关系 - Creating relationships between nodes with same properties 查询具有多个相同类型关系的节点 - Querying for nodes with multiple relationships of the same type cypher:合并具有相同属性和不同关系的两个节点 - cypher: merge two nodes with same attributes and different relationships neo4j-我们可以在具有相同关系类型但具有不同值的相同节点之间创建多重关系吗? - neo4j - can we create the multiple relationship between same nodes with same relationship type but with different values? 匹配具有相同属性的节点之间的关系 - Match relationships between nodes with the same property 根据两个不同节点之间的关系查询节点 - Querying nodes based on relationships between two different nodes Neo4j-需要聚合同一对节点之间不同关系上的值 - Neo4j - Need to aggregate values on different relationships between same pair of nodes
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM