demo/coloring.cc
changeset 1913 49fe71fce7fb
parent 1875 98698b69a902
child 1956 a055123339d5
equal deleted inserted replaced
6:c186f3116e00 7:d83abb041968
    38 using namespace std;
    38 using namespace std;
    39 using namespace lemon;
    39 using namespace lemon;
    40 
    40 
    41 int main() {
    41 int main() {
    42 
    42 
    43   typedef UndirSmartGraph Graph;
    43   typedef SmartUGraph Graph;
    44   typedef Graph::Node Node;
    44   typedef Graph::Node Node;
    45   typedef Graph::NodeIt NodeIt;
    45   typedef Graph::NodeIt NodeIt;
    46   typedef Graph::UndirEdge UndirEdge;
    46   typedef Graph::UEdge UEdge;
    47   typedef Graph::IncEdgeIt IncEdgeIt;
    47   typedef Graph::IncEdgeIt IncEdgeIt;
    48 
    48 
    49   std::cout << "Six coloring of a plan graph" << std::endl;
    49   std::cout << "Six coloring of a plan graph" << std::endl;
    50   std::cout << "Input file: coloring.lgf" << std::endl;
    50   std::cout << "Input file: coloring.lgf" << std::endl;
    51   std::cout << "Output file: coloring.eps" << std::endl;
    51   std::cout << "Output file: coloring.eps" << std::endl;
    52 
    52 
    53   Graph graph;
    53   Graph graph;
    54 
    54 
    55   UndirGraphReader<Graph> reader("coloring.lgf", graph);
    55   UGraphReader<Graph> reader("coloring.lgf", graph);
    56   Graph::NodeMap<xy<double> > coords(graph);
    56   Graph::NodeMap<xy<double> > coords(graph);
    57   reader.readNodeMap("coords", coords);
    57   reader.readNodeMap("coords", coords);
    58   
    58   
    59   reader.run();
    59   reader.run();
    60 
    60