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

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

问题描述

我有这个Cypher查询:

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

,我在Neo4j浏览器的文本"视图中获得了这些结果 我想要的答案是什么.

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

我可以写什么查询来显示此理想"图形视图(显示的日期是MIN(d.long)日期) 最少 > 仅显示与MIN日期的关系?

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

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浏览器将以图形可视化方式连接结果节点.

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

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

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

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

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?

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

解决方案

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.

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天全站免登陆