# \#paths

**URL:** https://community.neo4j.com/tag/paths/116.md

[Latest](https://community.neo4j.com/latest.md) · [Categories](https://community.neo4j.com/categories.md) · [Tags](https://community.neo4j.com/tags.md)

---

## [Is there any possibility in reducing the time for querying?](https://community.neo4j.com/t/is-there-any-possibility-in-reducing-the-time-for-querying/74022)

<div class="topic-metadata">

**Author:** [@plutohunter701](https://community.neo4j.com/u/plutohunter701)\
**Replies:** 1\
**Last updated:** [June 3, 2025, 7:03pm UTC](https://community.neo4j.com/t/is-there-any-possibility-in-reducing-the-time-for-querying/74022 "2025-06-03T19:03:42Z")

</div>

Sharing the PROFILE for the query I have developed for finding routes between port stations using QPP. Please help me to reduce down the time to generate the output. I have tried indexing for the node properties using …

---

## [All shortest paths between a set of nodes](https://community.neo4j.com/t/all-shortest-paths-between-a-set-of-nodes/241)

<div class="topic-metadata">

**Author:** [@michael.hunger](https://community.neo4j.com/u/michael.hunger)\
**Replies:** 7\
**Last updated:** [March 11, 2024, 8:45am UTC](https://community.neo4j.com/t/all-shortest-paths-between-a-set-of-nodes/241 "2024-03-11T08:45:26Z")

</div>

Consider a number of arbitrary nodes, A,B,C,D,E,F,..... I wish to return all of the shortest paths between these nodes. The nodes may have many edges between them, but anticipate a maximum of 4. The graph is complex …

---

## [Finding nodes by multiple required paths](https://community.neo4j.com/t/finding-nodes-by-multiple-required-paths/64953)

<div class="topic-metadata">

**Author:** [@kurt\_slater](https://community.neo4j.com/u/kurt_slater)\
**Replies:** 1\
**Last updated:** [November 14, 2023, 8:12pm UTC](https://community.neo4j.com/t/finding-nodes-by-multiple-required-paths/64953 "2023-11-14T20:12:04Z")

</div>

I have an interesting scenario that I would appreciate some feedback on. The general issue is the following: Given a starting node, how can I find a set of endpoints which can be reached by a set of paths, when each pa…

---

## [Retrieve all the distinct nodes and relationships from list of paths](https://community.neo4j.com/t/retrieve-all-the-distinct-nodes-and-relationships-from-list-of-paths/63207)

<div class="topic-metadata">

**Author:** [@mihaque313](https://community.neo4j.com/u/mihaque313)\
**Replies:** 2\
**Last updated:** [July 10, 2023, 5:17pm UTC](https://community.neo4j.com/t/retrieve-all-the-distinct-nodes-and-relationships-from-list-of-paths/63207 "2023-07-10T17:17:10Z")

</div>

Hi, Fellow graph enthusiasts! I'm stuck on an issue and need your help to optimise a cypher query. I have a cypher query which pulls up a graph using the following query: match p=(f:Material)\<-\[\*0..8\]-(s:MatPlant)\<-\[\*…

---

## [Query to return all possible paths return infinite no of paths](https://community.neo4j.com/t/query-to-return-all-possible-paths-return-infinite-no-of-paths/51030)

<div class="topic-metadata">

**Author:** [@murali\_venugopa](https://community.neo4j.com/u/murali_venugopa)\
**Replies:** 12\
**Last updated:** [March 7, 2022, 10:36am UTC](https://community.neo4j.com/t/query-to-return-all-possible-paths-return-infinite-no-of-paths/51030 "2022-03-07T10:36:49Z")

</div>

im using the below graphs to identify all possible paths between start to end nodes. there are 6 possible paths, that' i've identified, between start and end. maybe i've missed. around 15 or 20 max is what i guess. \`…

---

## [Find all ancestors of a subset of nodes](https://community.neo4j.com/t/find-all-ancestors-of-a-subset-of-nodes/33050)

<div class="topic-metadata">

**Author:** [@F\_Bastiat](https://community.neo4j.com/u/F_Bastiat)\
**Replies:** 2\
**Last updated:** [February 2, 2021, 11:21am UTC](https://community.neo4j.com/t/find-all-ancestors-of-a-subset-of-nodes/33050 "2021-02-02T11:21:27Z")

</div>

Hi, I have a tiny database that contains dependencies between a SQL DB objects. I have three types of nodes: all nodes have the 'objects' label, then they are split into 'procedures' and 'tables' labels. We are only int…

---

## [Shortest Paths algorithms](https://community.neo4j.com/t/shortest-paths-algorithms/19733)

<div class="topic-metadata">

**Author:** [@mayassia](https://community.neo4j.com/u/mayassia)\
**Replies:** 5\
**Last updated:** [September 11, 2020, 4:37am UTC](https://community.neo4j.com/t/shortest-paths-algorithms/19733 "2020-09-11T04:37:51Z")

</div>

Hello, I want to compute shortest paths for all pairs in my graph. I tried to use all pairs shortest paths and single shortest paths but both do not return paths like apoc dijkstra. I'm working in a graph with 4602 no…

---

## [Find all nodes and edges connecting a set of nodes](https://community.neo4j.com/t/find-all-nodes-and-edges-connecting-a-set-of-nodes/22641)

<div class="topic-metadata">

**Author:** [@art](https://community.neo4j.com/u/art)\
**Replies:** 5\
**Last updated:** [August 7, 2020, 9:57am UTC](https://community.neo4j.com/t/find-all-nodes-and-edges-connecting-a-set-of-nodes/22641 "2020-08-07T09:57:11Z")

</div>

I am trying to retrieve all the nodes and edges (edges can be optional if it improves performance) that connect a set of nodes n, m, x, and y I know the connectivity in advance: (n)-\[\]-\>(m)-\[\]-\>(x) (y)-\[\*\]-\>(x) What …

---

## [Spring data neo4j will not return a path](https://community.neo4j.com/t/spring-data-neo4j-will-not-return-a-path/11567)

<div class="topic-metadata">

**Author:** [@merritts](https://community.neo4j.com/u/merritts)\
**Replies:** 0\
**Last updated:** [November 3, 2019, 7:38pm UTC](https://community.neo4j.com/t/spring-data-neo4j-will-not-return-a-path/11567 "2019-11-03T19:38:09Z")

</div>

I am struggling to get spring to return the path result for the query below. I cannot find any documentation detailing how spring data neo4j handles returning paths. Any advice would be much appreciated. public interfac…

---

## [Find all simple paths in a graph](https://community.neo4j.com/t/find-all-simple-paths-in-a-graph/8550)

<div class="topic-metadata">

**Author:** [@jeremyforan](https://community.neo4j.com/u/jeremyforan)\
**Replies:** 0\
**Last updated:** [July 4, 2019, 2:14pm UTC](https://community.neo4j.com/t/find-all-simple-paths-in-a-graph/8550 "2019-07-04T14:14:18Z")

</div>

I have a graph database representing a subway system. I am interested in finding all simple paths (paths that do not visit the same station twice) possible from one station to another. Due to the complexity of the trai…

---

## [Running new MATCH to all nodes in a PARENT/CHILD path and still return a path](https://community.neo4j.com/t/running-new-match-to-all-nodes-in-a-parent-child-path-and-still-return-a-path/7084)

<div class="topic-metadata">

**Author:** [@morethancarbon](https://community.neo4j.com/u/morethancarbon)\
**Replies:** 1\
**Last updated:** [May 15, 2019, 12:57pm UTC](https://community.neo4j.com/t/running-new-match-to-all-nodes-in-a-parent-child-path-and-still-return-a-path/7084 "2019-05-15T12:57:48Z")

</div>

I have a hierarchical parent/child structure that I wish to return as a tree. I can use apoc.convert.toTree to return the tree and that works great. Since my graph's parent/child structure is somewhat like a file folder …

---

## [Neo4j crashing while running cypher path query](https://community.neo4j.com/t/neo4j-crashing-while-running-cypher-path-query/6384)

<div class="topic-metadata">

**Author:** [@abhatt22](https://community.neo4j.com/u/abhatt22)\
**Replies:** 4\
**Last updated:** [April 7, 2019, 10:44am UTC](https://community.neo4j.com/t/neo4j-crashing-while-running-cypher-path-query/6384 "2019-04-07T10:44:17Z")

</div>

Hi, I am a graduate student, running Cypher path queries on rdf graph dataset (size of dataset: 500MB, 3 million triples). However when I am running the below Cypher query MATCH (s:Resource {uri:'http://acm.rkbexplorer…

---

## [Create dynamic Json with neo4j path nodes](https://community.neo4j.com/t/create-dynamic-json-with-neo4j-path-nodes/2680)

<div class="topic-metadata">

**Author:** [@12kunal34](https://community.neo4j.com/u/12kunal34)\
**Replies:** 13\
**Last updated:** [January 10, 2019, 1:51pm UTC](https://community.neo4j.com/t/create-dynamic-json-with-neo4j-path-nodes/2680 "2019-01-10T13:51:42Z")

</div>

Hi Everyone , I need some help from you guys. i know that we can return json output from cypher queries.but my scenario is quite different i have nodes in below format DNA\<------EXP\<------HAR\<-------PI now problm is…
