COIN-OR::LEMON - Graph Library

Changes in / [916:70bee017b584:917:4980b05606bd] in lemon-main


Ignore:
Files:
3 added
8 edited

Legend:

Unmodified
Added
Removed
  • CMakeLists.txt

    r902 r912  
    55
    66INCLUDE(FindPythonInterp)
     7INCLUDE(FindWget)
    78
    89IF(EXISTS ${PROJECT_SOURCE_DIR}/cmake/version.cmake)
  • doc/CMakeLists.txt

    r865 r912  
    33SET(abs_top_srcdir ${PROJECT_SOURCE_DIR})
    44SET(abs_top_builddir ${PROJECT_BINARY_DIR})
     5
     6SET(LEMON_DOC_SOURCE_BROWSER "NO" CACHE STRING "Include source into the doc (YES/NO).")
    57
    68CONFIGURE_FILE(
     
    5355
    5456ENDIF()
     57
     58IF(WGET_FOUND)
     59ADD_CUSTOM_TARGET(update-external-tags
     60  COMMAND ${CMAKE_COMMAND} -E make_directory dl
     61  # COMMAND ${CMAKE_COMMAND} -E copy libstdc++.tag dl
     62  COMMAND ${WGET_EXECUTABLE} wget -P dl -N libstdc++.tag.tmp http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/libstdc++.tag
     63  COMMAND ${CMAKE_COMMAND} -E rename dl/libstdc++.tag libstdc++.tag
     64  COMMAND ${CMAKE_COMMAND} -E remove dl/libstdc++.tag
     65  COMMAND ${CMAKE_COMMAND} -E remove_directory dl
     66  WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
     67  )
     68ENDIF()
  • doc/Doxyfile.in

    r756 r912  
    7171SHOW_NAMESPACES        = YES
    7272FILE_VERSION_FILTER    =
    73 LAYOUT_FILE            = DoxygenLayout.xml
     73LAYOUT_FILE            = "@abs_top_srcdir@/doc/DoxygenLayout.xml"
    7474#---------------------------------------------------------------------------
    7575# configuration options related to warning and progress messages
     
    115115# configuration options related to source browsing
    116116#---------------------------------------------------------------------------
    117 SOURCE_BROWSER         = NO
     117SOURCE_BROWSER         = @LEMON_DOC_SOURCE_BROWSER@
    118118INLINE_SOURCES         = NO
    119119STRIP_CODE_COMMENTS    = YES
     
    226226# Options related to the search engine   
    227227#---------------------------------------------------------------------------
    228 TAGFILES               = "@abs_top_srcdir@/doc/libstdc++.tag = http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/  "
     228TAGFILES               = "@abs_top_builddir@/doc/libstdc++.tag = http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/  "
    229229GENERATE_TAGFILE       = html/lemon.tag
    230230ALLEXTERNALS           = NO
  • lemon/CMakeLists.txt

    r679 r908  
    77  ${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake
    88  ${CMAKE_CURRENT_BINARY_DIR}/config.h
     9)
     10
     11CONFIGURE_FILE(
     12  ${CMAKE_CURRENT_SOURCE_DIR}/lemon.pc.cmake
     13  ${CMAKE_CURRENT_BINARY_DIR}/lemon.pc
     14  @ONLY
    915)
    1016
     
    6773  COMPONENT headers
    6874)
     75
     76INSTALL(
     77  FILES ${CMAKE_CURRENT_BINARY_DIR}/lemon.pc
     78  DESTINATION lib/pkgconfig
     79)
     80
  • lemon/Makefile.am

    r916 r917  
    109109        lemon/min_cost_arborescence.h \
    110110        lemon/max_cardinality_search.h \
     111        lemon/nagamochi_ibaraki.h \
    111112        lemon/nauty_reader.h \
    112113        lemon/network_simplex.h \
  • lemon/hao_orlin.h

    r877 r915  
    5454  /// preflow push-relabel algorithm. Our implementation calculates
    5555  /// the minimum cut in \f$ O(n^2\sqrt{m}) \f$ time (we use the
    56   /// highest-label rule), or in \f$O(nm)\f$ for unit capacities. The
    57   /// purpose of such algorithm is e.g. testing network reliability.
     56  /// highest-label rule), or in \f$O(nm)\f$ for unit capacities. A notable
     57  /// use of this algorithm is testing network reliability.
    5858  ///
    5959  /// For an undirected graph you can run just the first phase of the
     
    913913    /// source-side (i.e. a set \f$ X\subsetneq V \f$ with
    914914    /// \f$ source \in X \f$ and minimal outgoing capacity).
     915    /// It updates the stored cut if (and only if) the newly found one
     916    /// is better.
    915917    ///
    916918    /// \pre \ref init() must be called before using this function.
     
    925927    /// sink-side (i.e. a set \f$ X\subsetneq V \f$ with
    926928    /// \f$ source \notin X \f$ and minimal outgoing capacity).
     929    /// It updates the stored cut if (and only if) the newly found one
     930    /// is better.
    927931    ///
    928932    /// \pre \ref init() must be called before using this function.
     
    934938    /// \brief Run the algorithm.
    935939    ///
    936     /// This function runs the algorithm. It finds nodes \c source and
    937     /// \c target arbitrarily and then calls \ref init(), \ref calculateOut()
     940    /// This function runs the algorithm. It chooses source node,
     941    /// then calls \ref init(), \ref calculateOut()
    938942    /// and \ref calculateIn().
    939943    void run() {
     
    945949    /// \brief Run the algorithm.
    946950    ///
    947     /// This function runs the algorithm. It uses the given \c source node,
    948     /// finds a proper \c target node and then calls the \ref init(),
    949     /// \ref calculateOut() and \ref calculateIn().
     951    /// This function runs the algorithm. It calls \ref init(),
     952    /// \ref calculateOut() and \ref calculateIn() with the given
     953    /// source node.
    950954    void run(const Node& s) {
    951955      init(s);
     
    966970    /// \brief Return the value of the minimum cut.
    967971    ///
    968     /// This function returns the value of the minimum cut.
     972    /// This function returns the value of the best cut found by the
     973    /// previously called \ref run(), \ref calculateOut() or \ref
     974    /// calculateIn().
    969975    ///
    970976    /// \pre \ref run(), \ref calculateOut() or \ref calculateIn()
     
    977983    /// \brief Return a minimum cut.
    978984    ///
    979     /// This function sets \c cutMap to the characteristic vector of a
    980     /// minimum value cut: it will give a non-empty set \f$ X\subsetneq V \f$
    981     /// with minimal outgoing capacity (i.e. \c cutMap will be \c true exactly
     985    /// This function gives the best cut found by the
     986    /// previously called \ref run(), \ref calculateOut() or \ref
     987    /// calculateIn().
     988    ///
     989    /// It sets \c cutMap to the characteristic vector of the found
     990    /// minimum value cut - a non-empty set \f$ X\subsetneq V \f$
     991    /// of minimum outgoing capacity (i.e. \c cutMap will be \c true exactly
    982992    /// for the nodes of \f$ X \f$).
    983993    ///
  • test/CMakeLists.txt

    r916 r917  
    3737  min_cost_flow_test
    3838  min_mean_cycle_test
     39  nagamochi_ibaraki_test
    3940  path_test
    4041  planarity_test
     
    4849
    4950IF(LEMON_HAVE_LP)
    50   ADD_EXECUTABLE(lp_test lp_test.cc)
     51  IF(${CMAKE_BUILD_TYPE} STREQUAL "Maintainer")
     52    ADD_EXECUTABLE(lp_test lp_test.cc)
     53  ELSE()
     54    ADD_EXECUTABLE(lp_test EXCLUDE_FROM_ALL lp_test.cc)
     55  ENDIF()
     56
    5157  SET(LP_TEST_LIBS lemon)
    5258
     
    8490
    8591IF(LEMON_HAVE_MIP)
    86   ADD_EXECUTABLE(mip_test mip_test.cc)
     92  IF(${CMAKE_BUILD_TYPE} STREQUAL "Maintainer")
     93    ADD_EXECUTABLE(mip_test mip_test.cc)
     94  ELSE()
     95    ADD_EXECUTABLE(mip_test EXCLUDE_FROM_ALL mip_test.cc)
     96  ENDIF()
     97
    8798  SET(MIP_TEST_LIBS lemon)
    8899
  • test/Makefile.am

    r916 r917  
    3939        test/min_cost_flow_test \
    4040        test/min_mean_cycle_test \
     41        test/nagamochi_ibaraki_test \
    4142        test/path_test \
    4243        test/planarity_test \
     
    9293test_min_cost_flow_test_SOURCES = test/min_cost_flow_test.cc
    9394test_min_mean_cycle_test_SOURCES = test/min_mean_cycle_test.cc
     95test_nagamochi_ibaraki_test_SOURCES = test/nagamochi_ibaraki_test.cc
    9496test_path_test_SOURCES = test/path_test.cc
    9597test_planarity_test_SOURCES = test/planarity_test.cc
Note: See TracChangeset for help on using the changeset viewer.