lemon/grid_ugraph.h
changeset 2207 75a29ac69c19
parent 2151 38ec4a930c05
child 2223 590c1b663a27
     1.1 --- a/lemon/grid_ugraph.h	Wed Sep 06 11:39:22 2006 +0000
     1.2 +++ b/lemon/grid_ugraph.h	Thu Sep 07 13:27:16 2006 +0000
     1.3 @@ -26,7 +26,7 @@
     1.4  #include <lemon/bits/base_extender.h>
     1.5  #include <lemon/bits/graph_extender.h>
     1.6  
     1.7 -#include <lemon/xy.h>
     1.8 +#include <lemon/dim2.h>
     1.9  
    1.10  ///\ingroup graphs
    1.11  ///\file
    1.12 @@ -381,15 +381,15 @@
    1.13  
    1.14      typedef ExtendedGridUGraphBase Parent;
    1.15  
    1.16 -    /// \brief Map to get the indices of the nodes as xy<int>.
    1.17 +    /// \brief Map to get the indices of the nodes as dim2::Point<int>.
    1.18      ///
    1.19 -    /// Map to get the indices of the nodes as xy<int>.
    1.20 +    /// Map to get the indices of the nodes as dim2::Point<int>.
    1.21      class IndexMap {
    1.22      public:
    1.23        /// \brief The key type of the map
    1.24        typedef GridUGraph::Node Key;
    1.25        /// \brief The value type of the map
    1.26 -      typedef xy<int> Value;
    1.27 +      typedef dim2::Point<int> Value;
    1.28  
    1.29        /// \brief Constructor
    1.30        ///
    1.31 @@ -400,7 +400,7 @@
    1.32        ///
    1.33        /// The subscript operator.
    1.34        Value operator[](Key key) const {
    1.35 -	return xy<int>(graph.row(key), graph.col(key));
    1.36 +	return dim2::Point<int>(graph.row(key), graph.col(key));
    1.37        }
    1.38  
    1.39      private: