lemon/grid_ugraph.h
changeset 2386 81b47fc5c444
parent 2384 805c5a2a36dd
child 2391 14a343be7a5a
     1.1 --- a/lemon/grid_ugraph.h	Fri Mar 02 17:56:22 2007 +0000
     1.2 +++ b/lemon/grid_ugraph.h	Fri Mar 02 18:04:28 2007 +0000
     1.3 @@ -49,10 +49,10 @@
     1.4  
     1.5    protected:
     1.6  
     1.7 -    void construct(int width, int height) {
     1.8 -      _height = height; _width = width;
     1.9 -      _nodeNum = height * width; _edgeNum = 2 * _nodeNum - width - height;
    1.10 -      _edgeLimit = _nodeNum - width;
    1.11 +    void construct(int w, int h) {
    1.12 +      _height = h; _width = w;
    1.13 +      _nodeNum = h * w; _edgeNum = 2 * _nodeNum - w - h;
    1.14 +      _edgeLimit = _nodeNum - w;
    1.15      }
    1.16  
    1.17      Edge _down(Node n) const {