1.1 --- a/src/work/deba/graph_io_test.cc Wed Mar 09 14:23:36 2005 +0000
1.2 +++ b/src/work/deba/graph_io_test.cc Fri Mar 11 16:29:03 2005 +0000
1.3 @@ -1,10 +1,9 @@
1.4 #include <lemon/smart_graph.h>
1.5
1.6 -#include "map_utils.h"
1.7 +#include <lemon/map_utils.h>
1.8
1.9 -
1.10 -#include "graph_reader.h"
1.11 -#include "graph_writer.h"
1.12 +#include <lemon/graph_reader.h>
1.13 +#include <lemon/graph_writer.h>
1.14
1.15 #include <iostream>
1.16 #include <fstream>
1.17 @@ -41,8 +40,8 @@
1.18 reader.addEdge("newedge", newedge);
1.19
1.20 try {
1.21 - reader.read();
1.22 - } catch (IOException& e) {
1.23 + reader.run();
1.24 + } catch (IOError& e) {
1.25 cerr << e.what() << endl;
1.26 } catch (Exception e) {
1.27 cerr << e.what() << endl;
1.28 @@ -78,7 +77,7 @@
1.29
1.30 writer.addNode("source", node_ids.inverse()[3]);
1.31 // writer.addEdge("elek", edge_ids.inverse()[6]);
1.32 - writer.write();
1.33 + writer.run();
1.34
1.35 return 0;
1.36 }