# Graphing only paths returned by allShortestPaths()

**URL:** <https://community.neo4j.com/t/graphing-only-paths-returned-by-allshortestpaths/3359>\
**Category:** Cypher\
**Created:** [November 26, 2018, 6:26pm UTC](https://community.neo4j.com/t/graphing-only-paths-returned-by-allshortestpaths/3359 "2018-11-26T18:26:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jballew1992](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/jballew1992/32/989_2.png) [@jballew1992](https://community.neo4j.com/u/jballew1992)\
**Post date:** [November 26, 2018, 6:26pm UTC](https://community.neo4j.com/t/graphing-only-paths-returned-by-allshortestpaths/3359/1 "2018-11-26T18:26:19Z")

</div>

I am interested in producing visualizations of the paths returned from allShorestestPaths(). The issue I am running into is after returning the paths any relationships between intermediary nodes is also displayed. I would like to only display the relationships between the nodes in each individual path. Would anyone happen to know of a way to do this? I can see when it originally graphs the paths it only has the relationships I want, but shortly after it starts mapping relationships between all the other nodes as well which quickly clutters the output.

---

<div class="post-metadata">

**Author:** ![jsmccrumb](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/jsmccrumb/32/287_2.png) [@jsmccrumb](https://community.neo4j.com/u/jsmccrumb)\
**Post date:** [November 26, 2018, 10:30pm UTC](https://community.neo4j.com/t/graphing-only-paths-returned-by-allshortestpaths/3359/2 "2018-11-26T22:30:54Z")

</div>

Sounds like you might have the "Connect Result Nodes" option checked in the Neo4j browser. Click the gear icon in the lower left, if it is checked, uncheck it and then try your query.

---

<div class="post-metadata">

**Author:** ![jballew1992](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/jballew1992/32/989_2.png) [@jballew1992](https://community.neo4j.com/u/jballew1992)\
**Post date:** [November 27, 2018, 5:58pm UTC](https://community.neo4j.com/t/graphing-only-paths-returned-by-allshortestpaths/3359/3 "2018-11-27T17:58:09Z")

</div>

Thank you Jacob, this is the solution I was looking for. I was expecting the solution to be syntax related but this was much simpler!

---

<div class="post-metadata">

**Author:** ![jsmccrumb](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/jsmccrumb/32/287_2.png) [@jsmccrumb](https://community.neo4j.com/u/jsmccrumb)\
**Post date:** [November 27, 2018, 7:05pm UTC](https://community.neo4j.com/t/graphing-only-paths-returned-by-allshortestpaths/3359/4 "2018-11-27T19:05:41Z")

</div>

No problem! It's great when it turns out simpler than expected.
