Adding GraphEdgeSet and GraphNodeSet classes to graph_utils.h.
4 #define LEMON_ASSERT_ABORT 0
5 #include <lemon/error.h>
10 throw lemon::DataFormatError("Syntax error");
13 void parse_file(string fn) {
17 catch(lemon::DataFormatError &e) {
28 parse_file("input.txt");
30 catch(lemon::Exception &e) {
31 cerr << "Exception '" << e.exceptionName()
32 << "' caught: " << endl;
33 cerr << e.what() << endl;
36 cerr << "Exception caught: " << endl;
37 cerr << e.what() << endl;
41 throw lemon::LogicError();
43 catch(lemon::Exception &e) {
44 cerr << "Exception '" << e.exceptionName()
45 << "' caught: " << endl;
46 cerr << e.what() << endl;
52 catch(lemon::Exception &e) {
53 cerr << "Exception '" << e.exceptionName()
54 << "' caught: " << endl;
55 cerr << e.what() << endl;
58 cerr << "Exception caught: " << endl;
59 cerr << e.what() << endl;
65 LEMON_ASSERT(1==0, "Ellentmondas");
66 LEMON_FIXME("Nincs kesz");
69 #undef LEMON_ASSERT_HANDLER
70 #define LEMON_ASSERT_EXCEPTION
72 #include <lemon/error.h>
75 LEMON_ASSERT(2*2==5, "Marson vagyunk");