diff -r 8d9c47f31699 -r a81fbbac3b4c src/demo/min_route.cc --- a/src/demo/min_route.cc Fri Apr 15 14:03:23 2005 +0000 +++ b/src/demo/min_route.cc Fri Apr 15 14:46:03 2005 +0000 @@ -1,3 +1,6 @@ +#include +#include + #include #include #include @@ -8,6 +11,7 @@ #include + using namespace lemon; template @@ -24,8 +28,8 @@ (coord[node].y - target.y) * (coord[node].y - target.y)); } private: + const CoordMap& coord; xy target; - const CoordMap& coord; }; template @@ -60,7 +64,8 @@ SmartGraph graph; - GraphReader reader(std::cin, graph); + std::ifstream is("route.lgf"); + GraphReader reader(is, graph); CoordMap coord(graph); XMap xcoord = xMap(coord);