test/bfs_test.cc
changeset 2335 27aa03cd3121
parent 2260 4274224f8a7d
child 2391 14a343be7a5a
     1.1 --- a/test/bfs_test.cc	Fri Jan 05 10:59:18 2007 +0000
     1.2 +++ b/test/bfs_test.cc	Mon Jan 08 10:39:59 2007 +0000
     1.3 @@ -59,8 +59,7 @@
     1.4    //  pn = bfs_test.predNodeMap();
     1.5    b  = bfs_test.reached(n);
     1.6  
     1.7 -  Path<Graph> pp(G);
     1.8 -  bfs_test.getPath(pp,n);
     1.9 +  Path<Graph> pp = bfs_test.path(n);
    1.10  }
    1.11  
    1.12  void check_Bfs_Function_Compile() 
    1.13 @@ -109,9 +108,11 @@
    1.14    
    1.15    check(bfs_test.dist(t)==3,"Bfs found a wrong path. " << bfs_test.dist(t));
    1.16  
    1.17 -  Path<Graph> p(G);
    1.18 -  check(bfs_test.getPath(p,t),"getPath() failed to set the path.");
    1.19 +  Path<Graph> p = bfs_test.path(t);
    1.20    check(p.length()==3,"getPath() found a wrong path.");
    1.21 +  check(checkPath(G, p),"path() found a wrong path.");
    1.22 +  check(pathSource(G, p) == s,"path() found a wrong path.");
    1.23 +  check(pathTarget(G, p) == t,"path() found a wrong path.");
    1.24    
    1.25  
    1.26    for(EdgeIt e(G); e==INVALID; ++e) {