Skip to content

Latest commit

 

History

History
6 lines (4 loc) · 397 Bytes

README.md

File metadata and controls

6 lines (4 loc) · 397 Bytes

Shortest-path-problem

This is a script to solve the general shortest path problem based on Floyd–Warshall algorithm. Input the Adjacency Matrix, and you'll get the shortest path and the shortest path distance.

I'll supplement other algorithms of solving this problem, like Dijkstra's algorithm and Bellman–Ford algorithm, sometime. Anyone who are interested can contribute to this work.