test/bellman_ford_test.cc
changeset 799 6be1f9bd2ac0
parent 781 6f10c6ec5a21
parent 790 1870cfd14fb6
child 844 a6eb9698c321
     1.1 --- a/test/bellman_ford_test.cc	Sun Oct 04 10:15:32 2009 +0200
     1.2 +++ b/test/bellman_ford_test.cc	Wed Dec 09 11:14:06 2009 +0100
     1.3 @@ -65,7 +65,7 @@
     1.4    Node s, t, n;
     1.5    Arc e;
     1.6    Value l;
     1.7 -  int k;
     1.8 +  int k=3;
     1.9    bool b;
    1.10    BF::DistMap d(gr);
    1.11    BF::PredMap p(gr);
    1.12 @@ -96,6 +96,7 @@
    1.13      d  = const_bf_test.distMap();
    1.14      p  = const_bf_test.predMap();
    1.15      pp = const_bf_test.path(t);
    1.16 +    pp = const_bf_test.negativeCycle();
    1.17      
    1.18      for (BF::ActiveIt it(const_bf_test); it != INVALID; ++it) {}
    1.19    }
    1.20 @@ -132,6 +133,7 @@
    1.21      s  = bf_test.predNode(t);
    1.22      b  = bf_test.reached(t);
    1.23      pp = bf_test.path(t);
    1.24 +    pp = bf_test.negativeCycle();
    1.25    }
    1.26  }
    1.27