1
votes

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 enter image description here 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!?!? Neo4j Graph View

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?

enter image description here

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

enter image description here

1

1 Answers

3
votes

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:

Graph visualization options