Neo4j 在浏览器图形视图中仅显示特定关系 [英] Neo4j Show Only Specific Relations in the Browser Graph View

查看:20
本文介绍了Neo4j 在浏览器图形视图中仅显示特定关系的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这个 Cypher 查询:

I have this Cypher query:

MATCH (i:Issue {name:"SN-229"})-[d:ON_DATE]->(s:Stage)
RETURN i,(MAX(d.long)-MIN(d.long)+1) AS Days,s

我在 Neo4j 浏览器的文本视图中得到这些结果哪些是我想要的答案.

and I get these results in the Neo4j Browser's Text view Which are the answers I want.

但是当我在 Neo4j 浏览器的 Graph 视图中查看结果时,它坚持显示关系中的各个日期!?!?

But when I view the result in the Neo4j Browser's Graph view, it insists on displaying the individual dates in the relationships!?!?

我可以写什么查询来显示这个理想的"图表视图(显示的日期是 MIN(d.long) 日期)至少 只显示与 MIN 日期的关系?

What query could I write to show me this "ideal" Graph view (the displayed dates are the MIN(d.long) dates) or at least just display the relationship with the MIN date?

此查询将返回我理想的图形视图所需的所有信息,但同样,它坚持显示所有关系(我不不知道如何通过查询修改关系的标题,以将X 天"添加到关系的显示日期):

This query will return all of the required info for my ideal Graph view, but again, it insists on displaying all of the relations (and I don't know how to modify the caption for the relationship, via the query, to add the 'X Days' to the relation's displayed date):

MATCH (i:Issue {name:"SN-229"})-[d:ON_DATE]->(s:Stage) RETURN i,MIN(d),(MAX(d.long)-MIN(d.long)+1) AS Days,s

推荐答案

选中连接结果节点"选项时,Neo4j 浏览器会在这些节点之间存在连接时以图形可视化模式连接这些节点.

When the option "Connect result nodes" is checked, Neo4j browser will connect the resultant nodes in the graph visualization mode when a connection between these nodes exist.

>

要禁用此行为,您应该转到 Neo4j 浏览器设置的图形可视化"部分并取消选中连接结果节点"选项,如下图所示:

To disable this behavior you should go to the section "Graph Visualization" of Neo4j Browser Settings and uncheck the option "Connect result nodes" as show in the image below:

这篇关于Neo4j 在浏览器图形视图中仅显示特定关系的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆