COIN-OR::LEMON - Graph Library

Changeset 2207:75a29ac69c19 in lemon-0.x for demo/min_route.cc


Ignore:
Timestamp:
09/07/06 15:27:16 (13 years ago)
Author:
Alpar Juttner
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2933
Message:

xy -> dim2::Point

File:
1 edited

Legend:

Unmodified
Added
Removed
  • demo/min_route.cc

    r1959 r2207  
    2323#include <lemon/dijkstra.h>
    2424#include <lemon/maps.h>
    25 #include <lemon/xy.h>
     25#include <lemon/dim2.h>
    2626#include <lemon/graph_reader.h>
    2727
     
    4747  typedef typename CoordMap::Key Key;
    4848
    49   PotentialMap(const CoordMap& _coord, const xy<double>& _target)
     49  PotentialMap(const CoordMap& _coord, const dim2::Point<double>& _target)
    5050    : coord(_coord), target(_target) {}
    5151
     
    5656private:
    5757  const CoordMap& coord;
    58   xy<double> target;
     58  dim2::Point<double> target;
    5959};
    6060
     
    8787  typedef Graph::NodeIt NodeIt;
    8888  typedef Graph::EdgeMap<double> LengthMap;
    89   typedef Graph::NodeMap<xy<double> > CoordMap;
     89  typedef Graph::NodeMap<dim2::Point<double> > CoordMap;
    9090
    9191  SmartGraph graph;
     
    9595 
    9696  CoordMap coord(graph);
    97   XMap<CoordMap> xcoord = xMap(coord);
     97  dim2::XMap<CoordMap> xcoord = xMap(coord);
    9898  reader.readNodeMap("coordinates_x", xcoord);
    99   YMap<CoordMap> ycoord = yMap(coord);
     99  dim2::YMap<CoordMap> ycoord = yMap(coord);
    100100  reader.readNodeMap("coordinates_y", ycoord);
    101101
Note: See TracChangeset for help on using the changeset viewer.