Bug fix in bipartite graph
authordeba
Wed, 21 Dec 2005 08:47:38 +0000
changeset 186824bf4b8299e7
parent 1867 15cf1fd6a505
child 1869 52f5a7f9fb48
Bug fix in bipartite graph
lemon/bits/graph_extender.h
     1.1 --- a/lemon/bits/graph_extender.h	Mon Dec 19 16:59:05 2005 +0000
     1.2 +++ b/lemon/bits/graph_extender.h	Wed Dec 21 08:47:38 2005 +0000
     1.3 @@ -474,9 +474,7 @@
     1.4  	Parent::nextDown(edge);
     1.5        } else {
     1.6  	Parent::nextUp(edge);
     1.7 -	if (edge == INVALID) {
     1.8 -	  edge.forward = true;
     1.9 -	}	
    1.10 +        edge.forward = static_cast<UndirEdge&>(edge) == INVALID;
    1.11        }
    1.12      }
    1.13  
    1.14 @@ -494,9 +492,7 @@
    1.15  	Parent::nextUp(edge);
    1.16        } else {
    1.17  	Parent::nextDown(edge);
    1.18 -	if (edge == INVALID) {
    1.19 -	  edge.forward = true;
    1.20 -	}	
    1.21 +	edge.forward = static_cast<UndirEdge&>(edge) == INVALID;
    1.22        }
    1.23      }
    1.24