mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-26 13:23:25 +03:00
13 lines
316 B
C++
13 lines
316 B
C++
#ifndef moses_FloydWarshall_h
|
|
#define moses_FloydWarshall_h
|
|
|
|
#include <vector>
|
|
|
|
/**
|
|
* Floyd-Warshall all-pairs shortest path algorithm
|
|
* See CLR (1990). Introduction to Algorithms, p. 558-565
|
|
*/
|
|
void floyd_warshall(const std::vector<std::vector<bool> >& edges, std::vector<std::vector<int> >& distances);
|
|
|
|
#endif
|