demo/CMakeLists.txt
author Peter Kovacs <kpeter@inf.elte.hu>
Thu, 12 Nov 2009 23:26:13 +0100
changeset 806 fa6f37d7a25b
parent 627 20dac2104519
permissions -rw-r--r--
Entirely rework CapacityScaling (#180)

- Use the new interface similarly to NetworkSimplex.
- Rework the implementation using an efficient internal structure
for handling the residual network. This improvement made the
code much faster (up to 2-5 times faster on large graphs).
- Handle GEQ supply type (LEQ is not supported).
- Handle negative costs for arcs of finite capacity.
(Note that this algorithm cannot handle arcs of negative cost
and infinite upper bound, thus it returns UNBOUNDED if such
an arc exists.)
- Extend the documentation.
ladanyi@499
     1
INCLUDE_DIRECTORIES(
ladanyi@549
     2
  ${PROJECT_SOURCE_DIR}
ladanyi@499
     3
  ${PROJECT_BINARY_DIR}
ladanyi@499
     4
)
ladanyi@141
     5
ladanyi@679
     6
LINK_DIRECTORIES(
ladanyi@679
     7
  ${PROJECT_BINARY_DIR}/lemon
ladanyi@679
     8
)
ladanyi@141
     9
alpar@225
    10
SET(DEMOS
ladanyi@141
    11
  arg_parser_demo
ladanyi@141
    12
  graph_to_eps_demo
ladanyi@679
    13
  lgf_demo
ladanyi@679
    14
)
ladanyi@141
    15
alpar@225
    16
FOREACH(DEMO_NAME ${DEMOS})
alpar@225
    17
  ADD_EXECUTABLE(${DEMO_NAME} ${DEMO_NAME}.cc)
alpar@225
    18
  TARGET_LINK_LIBRARIES(${DEMO_NAME} lemon)
ladanyi@679
    19
ENDFOREACH()