COIN-OR::LEMON - Graph Library

source: glemon-0.x/all_include.h @ 136:924607a2d4a1

gui
Last change on this file since 136:924607a2d4a1 was 98:f60f89147531, checked in by Akos Ladanyi, 19 years ago

Save and load the coordinates of the arrows on the edges.

File size: 1.3 KB
RevLine 
[6]1// -*- C++ -*- //
2
3#ifndef ALL_INCLUDE_H
4#define ALL_INCLUDE_H
5
6#include <fstream>
7#include <iostream>
8
9#include <vector>
10
11#include <lemon/list_graph.h>
12#include <lemon/graph_reader.h>
13#include <lemon/graph_writer.h>
14#include <lemon/graph_utils.h>
15#include <lemon/maps.h>
16#include <lemon/error.h>
17#include <lemon/xy.h>
18
[28]19enum {E_WIDTH, E_COLOR, E_TEXT, EDGE_PROPERTY_NUM}; // edge properties;
20enum {N_RADIUS, N_COLOR, N_TEXT, NODE_PROPERTY_NUM}; // node properties;
[32]21enum {MOVE, CREATE_NODE, CREATE_EDGE, ERASER, EDGE_MAP_EDIT, NODE_MAP_EDIT, TOOL_NUM}; // tools;
[6]22#define RANGE 3
23#define WIN_WIDTH 900
24#define WIN_HEIGHT 600
[48]25#define MIN_EDGE_WIDTH 2
26#define MAX_EDGE_WIDTH 40
27#define MIN_NODE_RADIUS 2
28#define MAX_NODE_RADIUS 80
[6]29
30#ifndef MAIN_PART
[28]31extern std::vector <std::string> edge_property_strings;
32extern std::vector <double> edge_property_defaults;
33extern std::vector <std::string> node_property_strings;
34extern std::vector <double> node_property_defaults;
[81]35extern int longest_property_string_length;
[6]36#endif //MAIN_PART
37
38using namespace lemon;
39
[98]40typedef xy<double> XY;
[6]41typedef ListGraph Graph;
42typedef Graph::Node Node;
[62]43typedef Graph::Edge Edge;
[6]44typedef Graph::EdgeIt EdgeIt;
[69]45typedef Graph::InEdgeIt InEdgeIt;
46typedef Graph::OutEdgeIt OutEdgeIt;
[6]47typedef Graph::NodeIt NodeIt;
48
[68]49const std::string prog_name = "LEMON Graph Editor";
50
[6]51#endif // ALL_INCLUDE_H
Note: See TracBrowser for help on using the repository browser.