求帮看一下有没有可能根据edge上的property d_time(运行时长) 算出运行时长最长的路径 #6020
Unanswered
JiaTingYefei
asked this question in
Q&A
Replies: 1 comment
-
少量数据的话,用 reduce 是可以计算path 内累加属性再排序的,但是不 scale。 推荐用 Nebula Algorithm 中的代码,里边实现了读取全图为 spark graphx 的方法,然后用 graphx 去实现这个全图内的有 weight 加权的路径算法? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
nebula graph 3.4.0 以下nGQL可以运行,但是只能查出1跳的 d_time最长的10条路径,如何能修改它让它查出 整张图里面d_time相加最长的10条路径 MATCH p = (start:Process)-[e:PROCESS_DEPENDS]->(end:Process)
WHERE rank(e) == 2
WITH start, end, e.d_time AS path_duration
ORDER BY path_duration DESC
LIMIT 10
RETURN start, end, path_duration;
Beta Was this translation helpful? Give feedback.
All reactions