Neo4j Show Only Specific Relations in the Browser Graph View

血红的双手。 提交于 2019-12-20 03:50:24

问题


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


回答1:


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:



来源:https://stackoverflow.com/questions/50065869/neo4j-show-only-specific-relations-in-the-browser-graph-view

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!