equal
deleted
inserted
replaced
67 std::ifstream is("route.lgf"); |
67 std::ifstream is("route.lgf"); |
68 GraphReader<Graph> reader(is, graph); |
68 GraphReader<Graph> reader(is, graph); |
69 |
69 |
70 CoordMap coord(graph); |
70 CoordMap coord(graph); |
71 XMap<CoordMap> xcoord = xMap(coord); |
71 XMap<CoordMap> xcoord = xMap(coord); |
72 reader.addNodeMap("coordinates_x", xcoord); |
72 reader.readNodeMap("coordinates_x", xcoord); |
73 YMap<CoordMap> ycoord = yMap(coord); |
73 YMap<CoordMap> ycoord = yMap(coord); |
74 reader.addNodeMap("coordinates_y", ycoord); |
74 reader.readNodeMap("coordinates_y", ycoord); |
75 |
75 |
76 LengthMap length(graph); |
76 LengthMap length(graph); |
77 reader.addEdgeMap("length", length); |
77 reader.readEdgeMap("length", length); |
78 |
78 |
79 Node source, target; |
79 Node source, target; |
80 reader.addNode("source", source); |
80 reader.readNode("source", source); |
81 reader.addNode("target", target); |
81 reader.readNode("target", target); |
82 |
82 |
83 reader.run(); |
83 reader.run(); |
84 |
84 |
85 { |
85 { |
86 Timer timer; |
86 Timer timer; |