test/all_pairs_shortest_path_test.cc
changeset 1763 49045f2d28d4
parent 1745 d356e54bdafc
child 1956 a055123339d5
     1.1 --- a/test/all_pairs_shortest_path_test.cc	Fri Nov 04 13:53:22 2005 +0000
     1.2 +++ b/test/all_pairs_shortest_path_test.cc	Fri Nov 04 14:48:10 2005 +0000
     1.3 @@ -88,15 +88,15 @@
     1.4  	if (it != jt) {
     1.5   	  check(johnson.dist(it, jt) == 
     1.6  		johnson.dist(it, johnson.predNode(it, jt)) +
     1.7 -		length[johnson.pred(it, jt)],
     1.8 +		length[johnson.predEdge(it, jt)],
     1.9  		"Wrong edge in all pairs shortest path");
    1.10   	  check(fibJohnson.dist(it, jt) == 
    1.11  		fibJohnson.dist(it, fibJohnson.predNode(it, jt)) +
    1.12 -		length[fibJohnson.pred(it, jt)],
    1.13 +		length[fibJohnson.predEdge(it, jt)],
    1.14  		"Wrong edge in all pairs shortest path");
    1.15  	  check(floyd.dist(it, jt) == 
    1.16  		floyd.dist(it, floyd.predNode(it, jt)) +
    1.17 -		length[floyd.pred(it, jt)],
    1.18 +		length[floyd.predEdge(it, jt)],
    1.19  		"Wrong edge in all pairs shortest path");
    1.20  	}
    1.21        }