src/lemon/list_graph.h
changeset 1234 49d018060749
parent 1164 80bb73097736
child 1281 164ca6938d09
equal deleted inserted replaced
19:e503a774e61c 20:39a907751f34
   375     {
   375     {
   376       for(OutEdgeIt e(*this,b);e!=INVALID;) {
   376       for(OutEdgeIt e(*this,b);e!=INVALID;) {
   377 	OutEdgeIt f=e;
   377 	OutEdgeIt f=e;
   378 	++f;
   378 	++f;
   379 	if(r && target(e)==a) erase(e);
   379 	if(r && target(e)==a) erase(e);
   380 	else moveSource(e,b);
   380 	else moveSource(e,a);
   381 	e=f;
   381 	e=f;
   382       }
   382       }
   383       for(InEdgeIt e(*this,b);e!=INVALID;) {
   383       for(InEdgeIt e(*this,b);e!=INVALID;) {
   384 	InEdgeIt f=e;
   384 	InEdgeIt f=e;
   385 	++f;
   385 	++f;
   386 	if(r && source(e)==a) erase(e);
   386 	if(r && source(e)==a) erase(e);
   387 	else moveTarget(e,b);
   387 	else moveTarget(e,a);
   388 	e=f;
   388 	e=f;
   389       }
   389       }
   390       erase(b);
   390       erase(b);
   391     }
   391     }
   392 
   392