The Bellman Ford algorithm is used to find the shortest path from one vertex (source) to all other vertices, while the Johnson algorithm is used to find the entire shortest path of a pair. If you want to implement Johnson's algorithm in C, let me know.
user3590463
source
share