diff -r 0977046c60d2 -r 6f10c6ec5a21 lemon/bellman_ford.h --- a/lemon/bellman_ford.h Sat Sep 26 07:21:54 2009 +0200 +++ b/lemon/bellman_ford.h Mon Sep 28 15:53:20 2009 +0200 @@ -23,6 +23,7 @@ /// \file /// \brief Bellman-Ford algorithm. +#include #include #include #include @@ -775,7 +776,7 @@ /// This function gives back a directed cycle with negative total /// length if the algorithm has already found one. /// Otherwise it gives back an empty path. - lemon::Path negativeCycle() { + lemon::Path negativeCycle() const { typename Digraph::template NodeMap state(*_gr, -1); lemon::Path cycle; for (int i = 0; i < int(_process.size()); ++i) {