demo/topology_demo.cc
changeset 2207 75a29ac69c19
parent 2174 f9e43b5cc617
child 2242 16523135943d
     1.1 --- a/demo/topology_demo.cc	Wed Sep 06 11:39:22 2006 +0000
     1.2 +++ b/demo/topology_demo.cc	Thu Sep 07 13:27:16 2006 +0000
     1.3 @@ -20,7 +20,7 @@
     1.4  #include <lemon/topology.h>
     1.5  #include <lemon/graph_to_eps.h>
     1.6  #include <lemon/graph_reader.h>
     1.7 -#include <lemon/xy.h>
     1.8 +#include <lemon/dim2.h>
     1.9  
    1.10  #include <iostream>
    1.11  
    1.12 @@ -49,7 +49,7 @@
    1.13    typedef Graph::Node Node;
    1.14  
    1.15    Graph graph;
    1.16 -  Graph::NodeMap<xy<double> > coords(graph);
    1.17 +  Graph::NodeMap<dim2::Point<double> > coords(graph);
    1.18  
    1.19    UGraphReader<Graph>("u_components.lgf", graph).
    1.20      readNodeMap("coordinates_x", xMap(coords)).
    1.21 @@ -74,7 +74,7 @@
    1.22    typedef Graph::Node Node;
    1.23  
    1.24    Graph graph;
    1.25 -  Graph::NodeMap<xy<double> > coords(graph);
    1.26 +  Graph::NodeMap<dim2::Point<double> > coords(graph);
    1.27  
    1.28    GraphReader<Graph>("dir_components.lgf", graph).
    1.29      readNodeMap("coordinates_x", xMap(coords)).
    1.30 @@ -104,7 +104,7 @@
    1.31    typedef Graph::UEdge UEdge;
    1.32  
    1.33    Graph graph;
    1.34 -  Graph::NodeMap<xy<double> > coords(graph);
    1.35 +  Graph::NodeMap<dim2::Point<double> > coords(graph);
    1.36  
    1.37    UGraphReader<Graph>("u_components.lgf", graph).
    1.38      readNodeMap("coordinates_x", xMap(coords)).
    1.39 @@ -134,7 +134,7 @@
    1.40    typedef Graph::UEdge UEdge;
    1.41  
    1.42    Graph graph;
    1.43 -  Graph::NodeMap<xy<double> > coords(graph);
    1.44 +  Graph::NodeMap<dim2::Point<double> > coords(graph);
    1.45  
    1.46    UGraphReader<Graph>("u_components.lgf", graph).
    1.47      readNodeMap("coordinates_x", xMap(coords)).
    1.48 @@ -163,7 +163,7 @@
    1.49    typedef Graph::UEdge UEdge;
    1.50  
    1.51    Graph graph;
    1.52 -  Graph::NodeMap<xy<double> > coords(graph);
    1.53 +  Graph::NodeMap<dim2::Point<double> > coords(graph);
    1.54  
    1.55    UGraphReader<Graph>("partitions.lgf", graph).
    1.56      readNodeMap("coordinates_x", xMap(coords)).