1.1 --- a/demo/descriptor_map_demo.cc Wed Sep 06 11:39:22 2006 +0000
1.2 +++ b/demo/descriptor_map_demo.cc Thu Sep 07 13:27:16 2006 +0000
1.3 @@ -29,7 +29,7 @@
1.4 #include <lemon/list_graph.h>
1.5 #include <lemon/graph_utils.h>
1.6 #include <lemon/graph_writer.h>
1.7 -#include <lemon/xy.h>
1.8 +#include <lemon/dim2.h>
1.9 #include <lemon/graph_to_eps.h>
1.10
1.11 #include <iostream>
1.12 @@ -40,7 +40,7 @@
1.13
1.14 using namespace lemon;
1.15
1.16 -// Special xy<double> map type
1.17 +// Special dim2::Point<double> map type
1.18 //
1.19 // It gives back a position for each node. The position of the nodes
1.20 // are on the circle with the given center and radius.
1.21 @@ -51,7 +51,7 @@
1.22 class CircleMap {
1.23 public:
1.24
1.25 - typedef xy<double> Value;
1.26 + typedef dim2::Point<double> Value;
1.27 typedef typename Graph::Node Key;
1.28
1.29 CircleMap(const Graph& _graph,
1.30 @@ -118,7 +118,7 @@
1.31
1.32 // Make postscript from the graph.
1.33
1.34 - CircleMap<Graph> coords(graph, xy<double>(0.0, 0.0), 10.0);
1.35 + CircleMap<Graph> coords(graph, dim2::Point<double>(0.0, 0.0), 10.0);
1.36
1.37 graphToEps(graph,"descriptor_map_demo.eps").scaleToA4().
1.38 title("Generated graph").