为什么 AWS Neptune 会产生如此多的图表结果?

Why AWS Neptune produce so many results for graph?

Graph

%%gremlin -p v,outE,inV,outE,inV,outE,inV,outE,inV,outE,inV,outE,inV,outE,inV,outE,inV,outE,inV -l 40 -le 40 -g Datagroup 

g.V().hasLabel('I-GPM').outE().inV().outE().inV().outE().inV().outE().inV().outE().inV().outE().inV().outE().inV().outE().inV().outE().inV().path().
by(valueMap().with(WithOptions.tokens)).by(label).limit(100000)

为什么生成这样的图表会生成 #100000 个结果? 有没有一种方法可以在生成相同图形的同时对其进行优化?

graph-notebook 根据视觉渲染决定显示内容的方式是基于代表 path 的任何结果。因此,如果查询产生 100,000 条路径,它将尝试以可视化方式呈现每条路径。但是,您可以简化查询提示。如果将查询更改为使用 path().by(elementMap()).

,则可以删除 -p