lemon/grid_ugraph.h
changeset 1987 8cd6683382e0
parent 1979 c2992fd74dad
child 1993 2115143eceea
equal deleted inserted replaced
0:acafa30bc36c 1:770c2fd41634
   124     
   124     
   125     /// \brief The node on the given position.
   125     /// \brief The node on the given position.
   126     /// 
   126     /// 
   127     /// Gives back the node on the given position.
   127     /// Gives back the node on the given position.
   128     Node operator()(int i, int j) const {
   128     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());
   130       return Node(i + j * _width);
   131       return Node(i + j * _width);
   131     }
   132     }
   132 
   133 
   133     /// \brief Gives back the row index of the node.
   134     /// \brief Gives back the row index of the node.
   134     ///
   135     ///