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

发布于 2024-12-07 12:58:02 字数 172 浏览 8 评论 0原文

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梦行七里 2024-12-14 12:58:02

是的,在 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!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文