Dan graph. It is necessary to find a path consisting of edges of minimal length. But, as I understand it, the shortest path does not necessarily contain edges of minimal length (for example, you can go along one edge to the desired vertex, but you can bypass several, but smaller ones). What algorithms exist to find the path I need? Thank you in advance.

  • need to find from one vertex to all the others? - BogolyubskiyAlexey

1 answer 1

Here is what came to mind:

  • Floyd-Worshel Algorithm
  • Ford-Bellman algorithm
  • Dijkstra's Algorithm
  • Dijkstra's Algorithm for Sparse Graphs
  • Wave algorithm