diff -r 434f9add42cd -r 572bc7d0d3e2 demo/descriptor_map_demo.cc --- a/demo/descriptor_map_demo.cc Wed Jul 13 14:05:49 2005 +0000 +++ b/demo/descriptor_map_demo.cc Wed Jul 13 14:17:13 2005 +0000 @@ -1,8 +1,26 @@ +/* -*- C++ -*- + * demo/descriptor_map_demo.cc - Part of LEMON, a generic C++ optimization library + * + * Copyright (C) 2005 Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport + * (Egervary Research Group on Combinatorial Optimization, EGRES). + * + * Permission to use, modify and distribute this software is granted + * provided that this copyright notice appears in all copies. For + * precise terms see the accompanying LICENSE file. + * + * This software is provided "AS IS" with no warranty of any kind, + * express or implied, and with no claim as to its suitability for any + * purpose. + * + */ + #include #include +#include #include +#include -#include +#include #include #include @@ -50,7 +68,9 @@ typedef Graph::Edge Edge; // Generating a graph - + + std::cout << "Generating graph: " << std::endl; + Graph graph; const int NODE = 16; @@ -78,6 +98,11 @@ graph.addEdge(nodeInv[si], nodeInv[ti]); } + GraphWriter(std::cout, graph).run(); + + std::cout << std::endl; + std::cout << "Postscript file: descriptor_map_demo.eps" << std::endl; + // Make postscript from the graph. CircleMap coords(graph, xy(0.0, 0.0), 10.0);