Update for the new Path interface
authoralpar
Sun, 22 Oct 2006 09:24:55 +0000
changeset 169c223ffdbdb5c
parent 168 a5f82cbbc1e4
child 170 bff6d1c63cff
Update for the new Path interface
dijkstrabox.cc
     1.1 --- a/dijkstrabox.cc	Sun Oct 22 09:24:15 2006 +0000
     1.2 +++ b/dijkstrabox.cc	Sun Oct 22 09:24:55 2006 +0000
     1.3 @@ -126,12 +126,12 @@
     1.4  	    {
     1.5  	      for(int j=0;j<found;j++)
     1.6  		{
     1.7 -		  DirPath<Graph> path(g);
     1.8 +		  Path<Graph> path(g);
     1.9  		  sb.getPath(path, j);
    1.10  		  for(int k=0;k<path.length();k++)
    1.11  		    {
    1.12 -		      DirPath<Graph>::EdgeIt ei;
    1.13 -		      path.nth(ei,k);
    1.14 +		      Path<Graph>::EdgeIt ei;
    1.15 +		      ei=path.nthEdge(k);
    1.16  		      (*outputmap)[ei]=j+1;
    1.17  		    }
    1.18  		}