是否有可能获得两个节点之间的两个不同的关系时间?
我是 Neo4j 的新手只是通过玩来深入学习。我有一个小疑问,比如
我是否在空间中创建了两个节点并提供了这两个节点之间的关系以及系统时间(以知道它们在什么时间彼此成为朋友)。
所以现在我的问题是,是否有可能获得两个不同的关系时间(如果我将方向提供为“两者”并且我仅创建了一次关系)?
你们知道遍历函数在 Neo4j 中的行为方式。
如果是这样,请跟我解释一些例子,比如如何?
I am new to Neo4j & just playing to learn in deep. I have a small doubt like,
if I created two nodes in the space and provided relationship and also the system time (to know at what time they are friends each other) between those two nodes.
So now my question is, Is it possible to get two different relation times (If I provide Direction as Both & I created the relation only once)?
You people knows that how traverse function behaves in Neo4j.
If so please explain with me some example like how ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你的问题并不完全清楚。
如果你有
,那么你可以拥有任意数量的这些关系,它们可以是任一方向(两者实际上意味着两种关系,一种在任一方向)。
对于直接关系,您可以这样做:
对于较长的路径,您可以使用 GraphAlgoFactory.allSimplePaths 来检索之间的路径
两个人,随心所欲地处理关系和他们的时间信息。
HTH
迈克尔·
Your question is not entirely clear.
If you have
then you can have as many of those relationships as you'd like, they could be in either direction (BOTH actually means two relationship, one in either direction).
For direct relationships you could do:
For longer paths you can use GraphAlgoFactory.allSimplePaths to retrieve the paths between
two people and do with the relationships and their time information whatever you want.
HTH
Michael