test/dfs_test.cc
branch1.1
changeset 797 c18ed26f016c
parent 761 f1398882a928
parent 796 7e368d9b67f7
child 808 bdfc038f364c
equal deleted inserted replaced
11:9f3521a902e8 13:13191a194007
    65   Digraph G;
    65   Digraph G;
    66   Node s, t;
    66   Node s, t;
    67   Arc e;
    67   Arc e;
    68   int l, i;
    68   int l, i;
    69   bool b;
    69   bool b;
       
    70   ignore_unused_variable_warning(l,i,b);
       
    71 
    70   DType::DistMap d(G);
    72   DType::DistMap d(G);
    71   DType::PredMap p(G);
    73   DType::PredMap p(G);
    72   Path<Digraph> pp;
    74   Path<Digraph> pp;
    73   concepts::ReadMap<Arc,bool> am;
    75   concepts::ReadMap<Arc,bool> am;
    74 
    76 
   149   typedef Digraph::Arc Arc;
   151   typedef Digraph::Arc Arc;
   150   typedef Digraph::Node Node;
   152   typedef Digraph::Node Node;
   151 
   153 
   152   Digraph g;
   154   Digraph g;
   153   bool b;
   155   bool b;
       
   156   ignore_unused_variable_warning(b);
       
   157 
   154   dfs(g).run(Node());
   158   dfs(g).run(Node());
   155   b=dfs(g).run(Node(),Node());
   159   b=dfs(g).run(Node(),Node());
   156   dfs(g).run();
   160   dfs(g).run();
   157   dfs(g)
   161   dfs(g)
   158     .predMap(concepts::ReadWriteMap<Node,Arc>())
   162     .predMap(concepts::ReadWriteMap<Node,Arc>())