equal
deleted
inserted
replaced
12 #include <lemon/graph_reader.h> |
12 #include <lemon/graph_reader.h> |
13 #include <lemon/graph_writer.h> |
13 #include <lemon/graph_writer.h> |
14 #include <lemon/graph_utils.h> |
14 #include <lemon/graph_utils.h> |
15 #include <lemon/maps.h> |
15 #include <lemon/maps.h> |
16 #include <lemon/error.h> |
16 #include <lemon/error.h> |
17 #include <lemon/xy.h> |
17 #include <lemon/dim2.h> |
18 |
18 |
19 enum {E_WIDTH, E_COLOR, E_TEXT, EDGE_PROPERTY_NUM}; // edge properties; |
19 enum {E_WIDTH, E_COLOR, E_TEXT, EDGE_PROPERTY_NUM}; // edge properties; |
20 enum {N_RADIUS, N_COLOR, N_TEXT, NODE_PROPERTY_NUM}; // node properties; |
20 enum {N_RADIUS, N_COLOR, N_TEXT, NODE_PROPERTY_NUM}; // node properties; |
21 enum {MOVE, CREATE_NODE, CREATE_EDGE, ERASER, MAP_EDIT, TOOL_NUM}; // tools; |
21 enum {MOVE, CREATE_NODE, CREATE_EDGE, ERASER, MAP_EDIT, TOOL_NUM}; // tools; |
22 #define RANGE 3 |
22 #define RANGE 3 |
35 extern int longest_property_string_length; |
35 extern int longest_property_string_length; |
36 #endif //MAIN_PART |
36 #endif //MAIN_PART |
37 |
37 |
38 using namespace lemon; |
38 using namespace lemon; |
39 |
39 |
40 typedef xy<double> XY; |
40 typedef lemon::dim2::Point<double> XY; |
41 typedef ListGraph Graph; |
41 typedef ListGraph Graph; |
42 typedef Graph::Node Node; |
42 typedef Graph::Node Node; |
43 typedef Graph::Edge Edge; |
43 typedef Graph::Edge Edge; |
44 typedef Graph::EdgeIt EdgeIt; |
44 typedef Graph::EdgeIt EdgeIt; |
45 typedef Graph::InEdgeIt InEdgeIt; |
45 typedef Graph::InEdgeIt InEdgeIt; |