COIN-OR::LEMON - Graph Library

Ignore:
Files:
1 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • doc/lgf.dox

    r1069 r463  
    6464\endcode
    6565
    66 The \c \@arcs section is very similar to the \c \@nodes section, it
    67 again starts with a header line describing the names of the maps, but
    68 the \c "label" map is not obligatory here. The following lines
    69 describe the arcs. The first two tokens of each line are the source
    70 and the target node of the arc, respectively, then come the map
     66The \c \@arcs section is very similar to the \c \@nodes section,
     67it again starts with a header line describing the names of the maps,
     68but the \c "label" map is not obligatory here. The following lines
     69describe the arcs. The first two tokens of each line are
     70the source and the target node of the arc, respectively, then come the map
    7171values. The source and target tokens must be node labels.
    7272
     
    7979\endcode
    8080
    81 If there is no map in the \c \@arcs section at all, then it must be
    82 indicated by a sole '-' sign in the first line.
    83 
    84 \code
    85  @arcs
    86          -
    87  1   2
    88  1   3
    89  2   3
    90 \endcode
    91 
    9281The \c \@edges is just a synonym of \c \@arcs. The \@arcs section can
    9382also store the edge set of an undirected graph. In such case there is
    9483a conventional method for store arc maps in the file, if two columns
    95 have the same caption with \c '+' and \c '-' prefix, then these columns
     84has the same caption with \c '+' and \c '-' prefix, then these columns
    9685can be regarded as the values of an arc map.
    9786
  • lemon/lgf_reader.h

    r1070 r956  
    33 * This file is a part of LEMON, a generic C++ optimization library.
    44 *
    5  * Copyright (C) 2003-2011
     5 * Copyright (C) 2003-2010
    66 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport
    77 * (Egervary Research Group on Combinatorial Optimization, EGRES).
     
    965965        int index = 0;
    966966        while (_reader_bits::readToken(line, map)) {
    967           if(map == "-") {
    968               if(index!=0)
    969                 throw FormatError("'-' is not allowed as a map name");
    970               else if (line >> std::ws >> c)
    971                 throw FormatError("Extra character at the end of line");
    972               else break;
    973             }
    974967          if (maps.find(map) != maps.end()) {
    975968            std::ostringstream msg;
     
    18421835        int index = 0;
    18431836        while (_reader_bits::readToken(line, map)) {
    1844           if(map == "-") {
    1845               if(index!=0)
    1846                 throw FormatError("'-' is not allowed as a map name");
    1847               else if (line >> std::ws >> c)
    1848                 throw FormatError("Extra character at the end of line");
    1849               else break;
    1850             }
    18511837          if (maps.find(map) != maps.end()) {
    18521838            std::ostringstream msg;
  • test/CMakeLists.txt

    r1071 r1066  
    3434  heap_test
    3535  kruskal_test
    36   lgf_test
    3736  maps_test
    3837  matching_test
  • test/Makefile.am

    r1071 r1021  
    3232        test/heap_test \
    3333        test/kruskal_test \
    34         test/lgf_test \
    3534        test/maps_test \
    3635        test/matching_test \
     
    8281test_graph_test_SOURCES = test/graph_test.cc
    8382test_graph_utils_test_SOURCES = test/graph_utils_test.cc
    84 test_hao_orlin_test_SOURCES = test/hao_orlin_test.cc
    8583test_heap_test_SOURCES = test/heap_test.cc
    8684test_kruskal_test_SOURCES = test/kruskal_test.cc
    87 test_lgf_test_SOURCES = test/lgf_test.cc
     85test_hao_orlin_test_SOURCES = test/hao_orlin_test.cc
    8886test_lp_test_SOURCES = test/lp_test.cc
    8987test_maps_test_SOURCES = test/maps_test.cc
Note: See TracChangeset for help on using the changeset viewer.