Bugfix in the hyper map
authordeba
Mon, 06 Mar 2006 09:38:19 +0000
changeset 19982ba916d7aae3
parent 1997 b7a70cdb5520
child 1999 2ff283124dfc
Bugfix in the hyper map
lemon/hypercube_graph.h
     1.1 --- a/lemon/hypercube_graph.h	Fri Mar 03 21:49:39 2006 +0000
     1.2 +++ b/lemon/hypercube_graph.h	Mon Mar 06 09:38:19 2006 +0000
     1.3 @@ -25,6 +25,7 @@
     1.4  #include <lemon/bits/utility.h>
     1.5  #include <lemon/error.h>
     1.6  
     1.7 +#include <lemon/bits/base_extender.h>
     1.8  #include <lemon/bits/graph_extender.h>
     1.9  
    1.10  ///\ingroup graphs
    1.11 @@ -318,7 +319,7 @@
    1.12  	int n = 0;
    1.13  	while (id != 0) {
    1.14  	  if (id & 1) {
    1.15 -	    val = _bin_func(_values[n], _first_value);
    1.16 +	    val = _bin_func(val, _values[n]);
    1.17  	  }
    1.18  	  id >>= 1;
    1.19  	  ++n;