COIN-OR::LEMON - Graph Library

Changes in / [404:59d3aa4f921f:403:940587667b47] in lemon-main


Ignore:
Files:
5 deleted
8 edited

Legend:

Unmodified
Added
Removed
  • .hgignore

    r385 r298  
    3737^objs.*/.*
    3838^test/[a-z_]*$
    39 ^tools/[a-z-_]*$
    4039^demo/.*_demo$
    4140^build/.*
  • doc/groups.dox

    r388 r351  
    483483
    484484/**
    485 @defgroup dimacs_group DIMACS format
    486 @ingroup io_group
    487 \brief Read and write files in DIMACS format
    488 
    489 Tools to read a digraph from or write it to a file in DIMACS format data.
    490 */
    491 
    492 /**
    493485@defgroup nauty_group NAUTY Format
    494486@ingroup io_group
    495487\brief Read \e Nauty format
    496 
    497488Tool to read graphs from \e Nauty format data.
    498489*/
  • lemon/Makefile.am

    r404 r399  
    2929        lemon/dijkstra.h \
    3030        lemon/dim2.h \
    31         lemon/dimacs.h \
    3231        lemon/elevator.h \
    3332        lemon/error.h \
     
    4544        lemon/nauty_reader.h \
    4645        lemon/path.h \
    47         lemon/preflow.h \
    4846        lemon/random.h \
    4947        lemon/smart_graph.h \
  • lemon/dijkstra.h

    r397 r313  
    4848    static Value plus(const Value& left, const Value& right) {
    4949      return left + right;
     50    }
     51    /// \brief Gives back true only if the first value is less than the second.
     52    static bool less(const Value& left, const Value& right) {
     53      return left < right;
     54    }
     55  };
     56
     57  /// \brief Widest path operation traits for the Dijkstra algorithm class.
     58  ///
     59  /// This operation traits class defines all computational operations and
     60  /// constants which are used in the Dijkstra algorithm for widest path
     61  /// computation.
     62  ///
     63  /// \see DijkstraDefaultOperationTraits
     64  template <typename Value>
     65  struct DijkstraWidestPathOperationTraits {
     66    /// \brief Gives back the maximum value of the type.
     67    static Value zero() {
     68      return std::numeric_limits<Value>::max();
     69    }
     70    /// \brief Gives back the minimum of the given two elements.
     71    static Value plus(const Value& left, const Value& right) {
     72      return std::min(left, right);
    5073    }
    5174    /// \brief Gives back true only if the first value is less than the second.
  • scripts/unify-sources.sh

    r396 r341  
    131131    echo $WARNED_FILES out of $TOTAL_FILES files triggered warnings.
    132132
    133     if [ $WARNED_FILES -gt 0 -o $FAILED_FILES -gt 0 ]
     133    if [ $FAILED_FILES -gt 0 ]
     134    then
     135        return 1
     136    elif [ $WARNED_FILES -gt 0 ]
    134137    then
    135138        if [ "$WARNING" == 'INTERACTIVE' ]
    136139        then
    137             echo -n "Are the files with errors/warnings acceptable? (yes/no) "
     140            echo -n "Are the files with warnings acceptable? (yes/no) "
    138141            while read answer
    139142            do
     
    145148                    return 1
    146149                fi
    147                 echo -n "Are the files with errors/warnings acceptable? (yes/no) "
     150                echo -n "Are the files with warnings acceptable? (yes/no) "
    148151            done
    149152        elif [ "$WARNING" == 'WERROR' ]
  • test/Makefile.am

    r404 r400  
    11EXTRA_DIST += \
    22        test/CMakeLists.txt \
    3         test/min_cost_flow_test.lgf \
    4         test/preflow_graph.lgf
     3        test/min_cost_flow_test.lgf
    54
    65noinst_HEADERS += \
     
    2625        test/random_test \
    2726        test/path_test \
    28         test/preflow_test \
    2927        test/suurballe_test \
    3028        test/test_tools_fail \
     
    5250test_max_matching_test_SOURCES = test/max_matching_test.cc
    5351test_path_test_SOURCES = test/path_test.cc
    54 test_preflow_test_SOURCES = test/preflow_test.cc
    5552test_suurballe_test_SOURCES = test/suurballe_test.cc
    5653test_random_test_SOURCES = test/random_test.cc
  • test/dijkstra_test.cc

    r397 r293  
    9090      ::SetProcessedMap<concepts::WriteMap<Node,bool> >
    9191      ::SetStandardProcessedMap
    92       ::SetOperationTraits<DijkstraDefaultOperationTraits<VType> >
     92      ::SetOperationTraits<DijkstraWidestPathOperationTraits<VType> >
    9393      ::SetHeap<BinHeap<VType, concepts::ReadWriteMap<Node,int> > >
    9494      ::SetStandardHeap<BinHeap<VType, concepts::ReadWriteMap<Node,int> > >
  • tools/Makefile.am

    r385 r310  
    11if WANT_TOOLS
    22
    3 bin_PROGRAMS += \
    4         tools/dimacs-to-lgf
    5 
     3bin_PROGRAMS +=
    64dist_bin_SCRIPTS += tools/lemon-0.x-to-1.x.sh
    75
    86endif WANT_TOOLS
    9 
    10 tools_dimacs_to_lgf_SOURCES = tools/dimacs-to-lgf.cc
Note: See TracChangeset for help on using the changeset viewer.