Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
03-21-2022 02:24 AM
In neo4j, we can call the allshortestpaths query to find out all shortest paths between two nodes, like this:
MATCH p=allShortestPaths((h)-[*1..20]->(k))
Where can I find the code/algorithm behind this query? I would like to know which algorithm here used to do path searching, is it Dijkstra, or Floyd-Warshall or something else.
Many thanks.
03-28-2022 12:47 AM
hi @lingxuan9 can you check this blog post maybe it helps. For allshortestpath also this other blog post can help. To get to know the code, maybe you can get the source code of Neo4j or check it in the book for the Graph Algorithms.
All the sessions of the conference are now available online