test/dijkstra_test.cc
branch1.1
changeset 797 c18ed26f016c
parent 761 f1398882a928
parent 796 7e368d9b67f7
child 808 bdfc038f364c
equal deleted inserted replaced
12:237c0c4dd70d 14:04fab320b402
    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>())