COIN-OR::LEMON - Graph Library

Changeset 1986:9b56cca61e2e in lemon-0.x for lemon/grid_ugraph.h


Ignore:
Timestamp:
02/27/06 11:36:01 (18 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2584
Message:

An additional simplier interface for static size graphs.
Node operator()(int) for getting node by index
int index(Node node) for getting index by node

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/grid_ugraph.h

    r1979 r1986  
    127127    /// Gives back the node on the given position.
    128128    Node operator()(int i, int j) const {
    129       LEMON_ASSERT(0 <= i && i < width() && 0 <= j  && j < height(), IndexError());
     129      LEMON_ASSERT(0 <= i && i < width() && 0 <= j  &&
     130                   j < height(), IndexError());
    130131      return Node(i + j * _width);
    131132    }
Note: See TracChangeset for help on using the changeset viewer.