test/dijkstra_test.cc
changeset 802 0e30f63d45d0
parent 577 65fbcf2f978a
child 797 c18ed26f016c
child 807 3e711ee55d31
equal deleted inserted replaced
11:eb3a50d37db8 13:9330465224ca
    63   Node s, t, n;
    63   Node s, t, n;
    64   Arc e;
    64   Arc e;
    65   VType l;
    65   VType l;
    66   int i;
    66   int i;
    67   bool b;
    67   bool b;
       
    68   ignore_unused_variable_warning(l,i,b);
       
    69 
    68   DType::DistMap d(G);
    70   DType::DistMap d(G);
    69   DType::PredMap p(G);
    71   DType::PredMap p(G);
    70   LengthMap length;
    72   LengthMap length;
    71   Path<Digraph> pp;
    73   Path<Digraph> pp;
    72   concepts::ReadMap<Node,bool> nm;
    74   concepts::ReadMap<Node,bool> nm;
   160   typedef Digraph::Node Node;
   162   typedef Digraph::Node Node;
   161   typedef concepts::ReadMap<Digraph::Arc,VType> LengthMap;
   163   typedef concepts::ReadMap<Digraph::Arc,VType> LengthMap;
   162 
   164 
   163   Digraph g;
   165   Digraph g;
   164   bool b;
   166   bool b;
       
   167   ignore_unused_variable_warning(b);
       
   168 
   165   dijkstra(g,LengthMap()).run(Node());
   169   dijkstra(g,LengthMap()).run(Node());
   166   b=dijkstra(g,LengthMap()).run(Node(),Node());
   170   b=dijkstra(g,LengthMap()).run(Node(),Node());
   167   dijkstra(g,LengthMap())
   171   dijkstra(g,LengthMap())
   168     .predMap(concepts::ReadWriteMap<Node,Arc>())
   172     .predMap(concepts::ReadWriteMap<Node,Arc>())
   169     .distMap(concepts::ReadWriteMap<Node,VType>())
   173     .distMap(concepts::ReadWriteMap<Node,VType>())