test/bellman_ford_test.cc
changeset 1206 86a5b114a066
parent 1131 4add05447ca0
equal deleted inserted replaced
13:388a19946a19 14:67a917c8ec13
    98     d  = const_bf_test.distMap();
    98     d  = const_bf_test.distMap();
    99     p  = const_bf_test.predMap();
    99     p  = const_bf_test.predMap();
   100     pp = const_bf_test.path(t);
   100     pp = const_bf_test.path(t);
   101     pp = const_bf_test.negativeCycle();
   101     pp = const_bf_test.negativeCycle();
   102 
   102 
       
   103 #ifdef LEMON_CXX11
   103     for (BF::ActiveIt it(const_bf_test); it != INVALID; ++it) {}
   104     for (BF::ActiveIt it(const_bf_test); it != INVALID; ++it) {}
   104     for (auto n: const_bf_test.activeNodes()) { ::lemon::ignore_unused_variable_warning(n); }
   105     for (auto n: const_bf_test.activeNodes()) { ::lemon::ignore_unused_variable_warning(n); }
   105     for (Digraph::Node n: const_bf_test.activeNodes()) {
   106     for (Digraph::Node n: const_bf_test.activeNodes()) {
   106       ::lemon::ignore_unused_variable_warning(n);
   107       ::lemon::ignore_unused_variable_warning(n);
   107     }
   108     }
       
   109 #endif
   108   }
   110   }
   109   {
   111   {
   110     BF::SetPredMap<concepts::ReadWriteMap<Node,Arc> >
   112     BF::SetPredMap<concepts::ReadWriteMap<Node,Arc> >
   111       ::SetDistMap<concepts::ReadWriteMap<Node,Value> >
   113       ::SetDistMap<concepts::ReadWriteMap<Node,Value> >
   112       ::SetOperationTraits<BellmanFordDefaultOperationTraits<Value> >
   114       ::SetOperationTraits<BellmanFordDefaultOperationTraits<Value> >