src/work/jacint/max_matching.cc
changeset 986 e997802b855c
parent 921 818510fa3d99
     1.1 --- a/src/work/jacint/max_matching.cc	Sat Nov 13 12:24:01 2004 +0000
     1.2 +++ b/src/work/jacint/max_matching.cc	Sat Nov 13 12:53:28 2004 +0000
     1.3 @@ -190,8 +190,8 @@
     1.4    bool noedge=true;
     1.5    EdgeIt e;
     1.6    for(G.first(e); G.valid(e); G.next(e) ) {
     1.7 -    if ( (pos[G.head(e)]==max_matching.C && pos[G.tail(e)]==max_matching.D) || 
     1.8 -	 (pos[G.head(e)]==max_matching.D && pos[G.tail(e)]==max_matching.C) )
     1.9 +    if ( (pos[G.target(e)]==max_matching.C && pos[G.source(e)]==max_matching.D) || 
    1.10 +	 (pos[G.target(e)]==max_matching.D && pos[G.source(e)]==max_matching.C) )
    1.11        noedge=false; 
    1.12    }
    1.13    if ( noedge ) std::cout<<"OK"<<std::endl;