src/test/bfs_test.cc
changeset 1218 5331168bbb18
parent 1164 80bb73097736
child 1220 20b26ee5812b
equal deleted inserted replaced
8:553ec959e871 9:9f57d554e680
    40   Edge e;
    40   Edge e;
    41   int l;
    41   int l;
    42   bool b;
    42   bool b;
    43   BType::DistMap d(G);
    43   BType::DistMap d(G);
    44   BType::PredMap p(G);
    44   BType::PredMap p(G);
    45   BType::PredNodeMap pn(G);
    45   //  BType::PredNodeMap pn(G);
    46   
    46   
    47   BType bfs_test(G);
    47   BType bfs_test(G);
    48   
    48   
    49   bfs_test.run(n);
    49   bfs_test.run(n);
    50   
    50   
    51   l  = bfs_test.dist(n);
    51   l  = bfs_test.dist(n);
    52   e  = bfs_test.pred(n);
    52   e  = bfs_test.pred(n);
    53   n  = bfs_test.predNode(n);
    53   n  = bfs_test.predNode(n);
    54   d  = bfs_test.distMap();
    54   d  = bfs_test.distMap();
    55   p  = bfs_test.predMap();
    55   p  = bfs_test.predMap();
    56   pn = bfs_test.predNodeMap();
    56   //  pn = bfs_test.predNodeMap();
    57   b  = bfs_test.reached(n);
    57   b  = bfs_test.reached(n);
    58 
    58 
    59 }
    59 }
    60 
    60 
    61 int main()
    61 int main()