ShortestPath doesn't find any path without max hops limit

后端 未结 1 692
北海茫月
北海茫月 2021-01-22 01:02

In my graph there is a path between vertices 5 and 36 but when I run query:

match (n {Id:5}), (m {Id:36}), p=shortestPath(n-[*]->m) return length(p);

1条回答
  •  北恋
    北恋 (楼主)
    2021-01-22 01:45

    I came across this same problem, and I found out that if you don't inform the maximum hops, the shortestPath will limit the maximum hops to 15. I'm using neo4j 2.2.1

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