src/lemon/kruskal.h
changeset 986 e997802b855c
parent 921 818510fa3d99
child 987 87f7c54892df
     1.1 --- a/src/lemon/kruskal.h	Sat Nov 13 12:24:01 2004 +0000
     1.2 +++ b/src/lemon/kruskal.h	Sat Nov 13 12:53:28 2004 +0000
     1.3 @@ -82,8 +82,8 @@
     1.4      EdgeCost tot_cost = 0;
     1.5      for (typename IN::const_iterator p = in.begin(); 
     1.6  	 p!=in.end(); ++p ) {
     1.7 -      if ( uf.join(G.head((*p).first),
     1.8 -		   G.tail((*p).first)) ) {
     1.9 +      if ( uf.join(G.target((*p).first),
    1.10 +		   G.source((*p).first)) ) {
    1.11  	out.set((*p).first, true);
    1.12  	tot_cost += (*p).second;
    1.13        }