可以在Memgraph中使用Yen的K最短路径算法吗?

huangapple go评论53阅读模式
英文:

Can I use Yen's k-shortest path algorithm in Memgraph?

问题

我正在尝试查找Memgraph中Yen的k最短路径算法的实现,但在文档中找不到。我有所遗漏吗?
我正在使用Memgraph 2.7,并通过Docker运行了它。

英文:

I am trying to find if there is an implementation of Yen's k-shortest path algorithm in Memgraph and I can't find it in the documentation. Am I missing something or?
I am using Memgraph 2.7 and I ran it with Docker.

答案1

得分: 0

Currently (Memgraph 2.7), there is no implementation of Yen's k-shortest path algorithm, but there is All shortest paths algorithm in Memgraph that is basically an expansion of a classic Dijkstra's algorithm. If I got it right, for k=1, you need Dijkstra and that's Weighted shortest in Memgraph. With All shortest paths you get k=(all paths). There is a missing part of having k=n, for any number of paths.

Here is the documentation for Weighted shortest path built-in algorithm in Memgraph (Dijkstra) (k=1 in your case). Here is documentation for All shortest paths (k = all paths in your case).

英文:

Currently (Memgraph 2.7), there is no implementation of Yen's k-shortest path algorithm, but there is All shortest paths algorithm in Memgraph that is basically an expansion of a classic Dijkstra's algorithm. If I got it right, for k=1, you need Dijkstra and that's Weighted shortest in Memgraph. With All shortest paths you get k=(all paths). There is a missing part of having k=n, for any number of paths.

Here is the documentation for Weighted shortest path built-in algorithm in Memgraph (Dijkstra) (k=1 in your case). Here is documentation for All shortest paths (k = all paths in your case).

huangapple
  • 本文由 发表于 2023年4月19日 23:46:33
  • 转载请务必保留本文链接:https://go.coder-hub.com/76056483.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定