AlgorithmsGraphsEdit on GitHubEdit history
Yen's Algorithm
Yen's k Shortest Loopless Paths1971
An algorithm that finds the k shortest loopless paths one by one: for each vertex of the previously found path, it fixes the prefix up to that vertex, blocks edges that would repeat already found paths, and computes the shortest remaining spur path.
Origin
Jin Y. Yen (1971). Finding the K Shortest Loopless Paths in a Network. Management Science 17(11).doi:10.1287/mnsc.17.11.712 — checked against Crossref, 2026-11-08
Lineage
Algorithms 3 · Relations 3
Parent algorithms
Where it came from
Dijkstra's Algorithm1959
Structural analysisIt repeatedly calls a shortest-path algorithm as a subroutine to compute the remaining path at each spur vertex.
Notable implementations
Paths checked against the GitHub default branch
- networkx/networkx/networkx/algorithms/simple_paths.pyPython
- google/or-tools/ortools/graph/k_shortest_paths.hC++
- jgrapht/jgrapht/jgrapht-core/src/main/java/org/jgrapht/alg/shortestpath/YenKShortestPath.javaJava
Find more: GitHub · Semantic Scholar · Google Scholar · arXiv
Claims & disputes
Loading…