How to hide unwanted relationships between nodes in Neo4j

前端 未结 2 1284
庸人自扰
庸人自扰 2020-11-30 14:51

I\'m new in Neo4j and I have a weird requirement.

I have some node

CREATE (a:node {title:1})
CREATE (b:node {title:2})
CREATE (c:node {title:3})
CR         


        
相关标签:
2条回答
  • 2020-11-30 15:33

    By default the Neo4j Browser uses an "Auto-Complete" feature to show all relationships that exist between nodes in the visualization. You can change this by toggling the "Auto-Complete" button in the Neo4j browser:

    This will exclude any relationships not explicitly returned in the Cypher query from the visualization.

    Note that you will need to explicitly return the relationships you are interested in. So your query becomes:

    MATCH (a)-[r]->(b) 
    WHERE 1 IN r.jump 
    RETURN a,r,b
    
    0 讨论(0)
  • 2020-11-30 15:50

    In neo4j 3.2.1 this feature has been relocated to the bottom left corner, under the gear icon: "Connect result nodes" (checked by default, thus returning all relationships between nodes included in the result).

    0 讨论(0)
提交回复
热议问题