test/dijkstra_test.cc
changeset 1064 fc3854d936f7
parent 877 141f9c0db4a3
parent 1007 7e368d9b67f7
child 1084 8b2d4e5d96e4
equal deleted inserted replaced
12:e92b52cda573 14:a57edf0401a9
    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>())