diff -r eff1caf6d32e -r a143f19f465b lemon/hypercube_graph.h --- a/lemon/hypercube_graph.h Tue Sep 29 10:39:20 2009 +0200 +++ b/lemon/hypercube_graph.h Tue Sep 29 13:03:34 2009 +0200 @@ -262,7 +262,7 @@ return arc._id >> _dim; } - int index(Node node) const { + static int index(Node node) { return node._id; } @@ -337,7 +337,7 @@ /// /// Gives back the index of the given node. /// The lower bits of the integer describes the node. - int index(Node node) const { + static int index(Node node) { return Parent::index(node); }