# How to get rid of unselected relationship in graph

**URL:** <https://community.neo4j.com/t/how-to-get-rid-of-unselected-relationship-in-graph/60178>\
**Category:** General\
**Tags:** migrated\
**Created:** [July 27, 2022, 1:49am UTC](https://community.neo4j.com/t/how-to-get-rid-of-unselected-relationship-in-graph/60178 "2022-07-27T01:49:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vishalcjha](https://avatars.discourse-cdn.com/v4/letter/v/ecc23a/32.png) [@vishalcjha](https://community.neo4j.com/u/vishalcjha)\
**Post date:** [July 27, 2022, 1:49am UTC](https://community.neo4j.com/t/how-to-get-rid-of-unselected-relationship-in-graph/60178/1 "2022-07-27T01:49:06Z")

</div>

I have simple query to generate graph

```auto
CREATE (n1:TNode {id: 1}),
(n2:TNode {id:2})
MERGE (n1)-[:CONNECTED {id: 1}]->(n2)
MERGE (n1)-[:CONNECTED {id: 2}]->(n2)

```

And then I retrieve using

```auto
MATCH (n1:TNode)-[r:CONNECTED {id : 1}]->(n2:TNode)
return n1, n2, r

```

Even though only one relationship is selected (also right pane says it) and in Table view I see only relationship, why graph displays two relationships. Two relationships are a.` id : 1` and b. ` id :2`.

 ![Screen Shot 2022-07-26 at 9.37.54 PM.png](https://us1.discourse-cdn.com/flex021/uploads/neo4jcommunity/original/3X/5/1/51e444c35b6b708e40723f06ff74cb442742ea27.png "Screen Shot 2022-07-26 at 9.37.54 PM.png") Is there any way to display just one CONNECTED relationship?

---

<div class="post-metadata">

**Author:** ![vishalcjha](https://avatars.discourse-cdn.com/v4/letter/v/ecc23a/32.png) [@vishalcjha](https://community.neo4j.com/u/vishalcjha)\
**Post date:** [July 27, 2022, 2:29am UTC](https://community.neo4j.com/t/how-to-get-rid-of-unselected-relationship-in-graph/60178/2 "2022-07-27T02:29:49Z")

</div>

thanks for the quick response. It worked 👍

---

<div class="post-metadata">

**Author:** ![glilienfield](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/glilienfield/32/27534_2.png) [@glilienfield](https://community.neo4j.com/u/glilienfield)\
**Post date:** [July 27, 2022, 2:07am UTC](https://community.neo4j.com/t/how-to-get-rid-of-unselected-relationship-in-graph/60178/3 "2022-07-27T02:07:26Z")

</div>

The browser by default shows all all connections between nodes. You can disable this behavior so it shows only patterns from your query. Click on the settings icon (gear) on the bottom left. Look for a checkbox at the bottom of the settings that references showing connections. Rerun the query after you turn it off.
