Johnson all pair shortest path and output in a C array
Dear list,
I need to get the all pair shortest path in a C array, to pass it to a
java program.
However johnson all pair shortest path[1] requires a BasicMatrix[2] as
output, so a simple array won't do.
At the moment I used few classes (see Matrix and MatrixR[3]) as
wrapper around a std::vector and it works fine, but I was wondering if
I am missing a simpler solution. Is there?
Yours faithfully,
Paolo
[1]http://www.boost.org/doc/libs/release/libs/graph/doc/johnson_all_pairs_short...
[2]http://www.boost.org/doc/libs/release/libs/graph/doc/BasicMatrix.html
[3]
struct Matrix {
Matrix(std::vector
participants (1)
-
Paolo Bolzoni