描述:从一个已知节点出发,向外(out)遍历,直至不存在叶子节点为止 语句:g.V().hasId(\"xxx\").repeat(out(\"look\")).until(outE(\"look\").count().is(0)).path() 数据:3000多条边+3000多个顶点; **上述语句执行花了12s**+ 请问什么原因 可否优化
Activity
zhoney commentedon Aug 31, 2018
执行时间长可能的原因:
repeat(out("look"))->repeat(out("look").simplePath())可以按此排查一下问题
另外,对于第一条,我们开发了一个subgraphpaths API #43 ,可以从source vertex出发,以某种label和某种方向的边(可选)出发,返回到所有叶子节点和包含环路的路径(由顶点id组成),如果满足你的场景的话,可以用这个。
zhoney commentedon Sep 10, 2018
sugbraphpaths API拆分成了rays和rings API:
rings:从一个vertex出发按照指定的方向和边label可达的所有环路的路径
rays:从一个vertex出发按照指定的方向和边label到边界点(无法继续,相当于叶子节点)的路径
fisherinbox commentedon Oct 31, 2018
@zhoney 这个sugbraphpaths API具体怎么用,文档中没看到呢
add rays and rings restful api
add rays and rings restful api
fix DegreeCentrality degree count limit OOL (#39)
fix DegreeCentrality degree count limit OOL (#39)
fix DegreeCentrality degree count limit OOL (#39)
fix DegreeCentrality degree count limit OOL (#39)
Support RowLock in LockGroup (#39)