src/gui/all_include.h
author deba
Thu, 19 May 2005 11:49:42 +0000
changeset 1429 4283998fb2be
permissions -rw-r--r--
Able to read edge from undirected edgeset
Graph reader and graph writer can resolve items by id.

It makes possible:

GraphReader<Graph> reader(std::cin, graph);

reader.readNodeMap....

NewEdgeSetAdaptor<Graph> edgeset(graph);
UndirEdgeSetReader<Graph> unir_edgeset_reader(reader, edgeset, reader);

reader.run();

It reads the graph and an additional edgeset in to the edgeset.
     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 
    19 enum {WIDTH, COLOR, TEXT, PROPERTY_NUM};// properties;
    20 #define RANGE 3
    21 #define WIN_WIDTH 900
    22 #define WIN_HEIGHT 600
    23 
    24 
    25 #ifndef MAIN_PART
    26 extern std::string * property_strings;
    27 extern double * property_defaults;
    28 #endif //MAIN_PART
    29 
    30 using namespace lemon;
    31 
    32 typedef xy<double> Coordinates;
    33 typedef ListGraph Graph;
    34 typedef Graph::NodeMap<Coordinates> CoordinatesMap;
    35 typedef Graph::Node Node;
    36 typedef Graph::EdgeIt EdgeIt;
    37 typedef Graph::NodeIt NodeIt;
    38 
    39 #endif // ALL_INCLUDE_H