test/bellman_ford_test.cc
changeset 1024 b84e68af8248
parent 999 00f8d9f9920d
child 1085 a337a0dd3f75
equal deleted inserted replaced
9:934ee8a5088c 10:63a273d527cb
    63 
    63 
    64   Digraph gr;
    64   Digraph gr;
    65   Node s, t, n;
    65   Node s, t, n;
    66   Arc e;
    66   Arc e;
    67   Value l;
    67   Value l;
       
    68   ignore_unused_variable_warning(l);
    68   int k=3;
    69   int k=3;
    69   bool b;
    70   bool b;
       
    71   ignore_unused_variable_warning(b);
    70   BF::DistMap d(gr);
    72   BF::DistMap d(gr);
    71   BF::PredMap p(gr);
    73   BF::PredMap p(gr);
    72   LengthMap length;
    74   LengthMap length;
    73   concepts::Path<Digraph> pp;
    75   concepts::Path<Digraph> pp;
    74 
    76 
   145   typedef Digraph::Node Node;
   147   typedef Digraph::Node Node;
   146   typedef concepts::ReadMap<Digraph::Arc,Value> LengthMap;
   148   typedef concepts::ReadMap<Digraph::Arc,Value> LengthMap;
   147 
   149 
   148   Digraph g;
   150   Digraph g;
   149   bool b;
   151   bool b;
       
   152   ignore_unused_variable_warning(b);
       
   153 
   150   bellmanFord(g,LengthMap()).run(Node());
   154   bellmanFord(g,LengthMap()).run(Node());
   151   b = bellmanFord(g,LengthMap()).run(Node(),Node());
   155   b = bellmanFord(g,LengthMap()).run(Node(),Node());
   152   bellmanFord(g,LengthMap())
   156   bellmanFord(g,LengthMap())
   153     .predMap(concepts::ReadWriteMap<Node,Arc>())
   157     .predMap(concepts::ReadWriteMap<Node,Arc>())
   154     .distMap(concepts::ReadWriteMap<Node,Value>())
   158     .distMap(concepts::ReadWriteMap<Node,Value>())