0
7
0
... | ... |
@@ -21,24 +21,25 @@ |
21 | 21 |
|
22 | 22 |
/// \ingroup graph_adaptors |
23 | 23 |
/// \file |
24 | 24 |
/// \brief Adaptor classes for digraphs and graphs |
25 | 25 |
/// |
26 | 26 |
/// This file contains several useful adaptors for digraphs and graphs. |
27 | 27 |
|
28 | 28 |
#include <lemon/core.h> |
29 | 29 |
#include <lemon/maps.h> |
30 | 30 |
#include <lemon/bits/variant.h> |
31 | 31 |
|
32 | 32 |
#include <lemon/bits/graph_adaptor_extender.h> |
33 |
#include <lemon/bits/map_extender.h> |
|
33 | 34 |
#include <lemon/tolerance.h> |
34 | 35 |
|
35 | 36 |
#include <algorithm> |
36 | 37 |
|
37 | 38 |
namespace lemon { |
38 | 39 |
|
39 | 40 |
#ifdef _MSC_VER |
40 | 41 |
#define LEMON_SCOPE_FIX(OUTER, NESTED) OUTER::NESTED |
41 | 42 |
#else |
42 | 43 |
#define LEMON_SCOPE_FIX(OUTER, NESTED) typename OUTER::template NESTED |
43 | 44 |
#endif |
44 | 45 |
... | ... |
@@ -10,26 +10,28 @@ |
10 | 10 |
* provided that this copyright notice appears in all copies. For |
11 | 11 |
* precise terms see the accompanying LICENSE file. |
12 | 12 |
* |
13 | 13 |
* This software is provided "AS IS" with no warranty of any kind, |
14 | 14 |
* express or implied, and with no claim as to its suitability for any |
15 | 15 |
* purpose. |
16 | 16 |
* |
17 | 17 |
*/ |
18 | 18 |
|
19 | 19 |
#ifndef LEMON_BITS_EDGE_SET_EXTENDER_H |
20 | 20 |
#define LEMON_BITS_EDGE_SET_EXTENDER_H |
21 | 21 |
|
22 |
#include <lemon/core.h> |
|
22 | 23 |
#include <lemon/error.h> |
23 | 24 |
#include <lemon/bits/default_map.h> |
25 |
#include <lemon/bits/map_extender.h> |
|
24 | 26 |
|
25 | 27 |
///\ingroup digraphbits |
26 | 28 |
///\file |
27 | 29 |
///\brief Extenders for the arc set types |
28 | 30 |
namespace lemon { |
29 | 31 |
|
30 | 32 |
/// \ingroup digraphbits |
31 | 33 |
/// |
32 | 34 |
/// \brief Extender for the ArcSets |
33 | 35 |
template <typename Base> |
34 | 36 |
class ArcSetExtender : public Base { |
35 | 37 |
public: |
... | ... |
@@ -10,24 +10,27 @@ |
10 | 10 |
* provided that this copyright notice appears in all copies. For |
11 | 11 |
* precise terms see the accompanying LICENSE file. |
12 | 12 |
* |
13 | 13 |
* This software is provided "AS IS" with no warranty of any kind, |
14 | 14 |
* express or implied, and with no claim as to its suitability for any |
15 | 15 |
* purpose. |
16 | 16 |
* |
17 | 17 |
*/ |
18 | 18 |
|
19 | 19 |
#ifndef LEMON_BITS_PRED_MAP_PATH_H |
20 | 20 |
#define LEMON_BITS_PRED_MAP_PATH_H |
21 | 21 |
|
22 |
#include <lemon/core.h> |
|
23 |
#include <lemon/concept_check.h> |
|
24 |
|
|
22 | 25 |
namespace lemon { |
23 | 26 |
|
24 | 27 |
template <typename _Digraph, typename _PredMap> |
25 | 28 |
class PredMapPath { |
26 | 29 |
public: |
27 | 30 |
typedef True RevPathTag; |
28 | 31 |
|
29 | 32 |
typedef _Digraph Digraph; |
30 | 33 |
typedef typename Digraph::Arc Arc; |
31 | 34 |
typedef _PredMap PredMap; |
32 | 35 |
|
33 | 36 |
PredMapPath(const Digraph& _digraph, const PredMap& _predMap, |
... | ... |
@@ -10,24 +10,26 @@ |
10 | 10 |
* provided that this copyright notice appears in all copies. For |
11 | 11 |
* precise terms see the accompanying LICENSE file. |
12 | 12 |
* |
13 | 13 |
* This software is provided "AS IS" with no warranty of any kind, |
14 | 14 |
* express or implied, and with no claim as to its suitability for any |
15 | 15 |
* purpose. |
16 | 16 |
* |
17 | 17 |
*/ |
18 | 18 |
|
19 | 19 |
#ifndef LEMON_BITS_SOLVER_BITS_H |
20 | 20 |
#define LEMON_BITS_SOLVER_BITS_H |
21 | 21 |
|
22 |
#include <vector> |
|
23 |
|
|
22 | 24 |
namespace lemon { |
23 | 25 |
|
24 | 26 |
namespace _solver_bits { |
25 | 27 |
|
26 | 28 |
class VarIndex { |
27 | 29 |
private: |
28 | 30 |
struct ItemT { |
29 | 31 |
int prev, next; |
30 | 32 |
int index; |
31 | 33 |
}; |
32 | 34 |
std::vector<ItemT> items; |
33 | 35 |
int first_item, last_item, first_free_item; |
... | ... |
@@ -15,24 +15,25 @@ |
15 | 15 |
* purpose. |
16 | 16 |
* |
17 | 17 |
*/ |
18 | 18 |
|
19 | 19 |
///\ingroup concept |
20 | 20 |
///\file |
21 | 21 |
///\brief The concept of heaps. |
22 | 22 |
|
23 | 23 |
#ifndef LEMON_CONCEPT_HEAP_H |
24 | 24 |
#define LEMON_CONCEPT_HEAP_H |
25 | 25 |
|
26 | 26 |
#include <lemon/core.h> |
27 |
#include <lemon/concept_check.h> |
|
27 | 28 |
|
28 | 29 |
namespace lemon { |
29 | 30 |
|
30 | 31 |
namespace concepts { |
31 | 32 |
|
32 | 33 |
/// \addtogroup concept |
33 | 34 |
/// @{ |
34 | 35 |
|
35 | 36 |
/// \brief The heap concept. |
36 | 37 |
/// |
37 | 38 |
/// Concept class describing the main interface of heaps. |
38 | 39 |
template <typename Priority, typename ItemIntMap> |
... | ... |
@@ -18,24 +18,25 @@ |
18 | 18 |
|
19 | 19 |
#ifndef LEMON_ELEVATOR_H |
20 | 20 |
#define LEMON_ELEVATOR_H |
21 | 21 |
|
22 | 22 |
///\ingroup auxdat |
23 | 23 |
///\file |
24 | 24 |
///\brief Elevator class |
25 | 25 |
/// |
26 | 26 |
///Elevator class implements an efficient data structure |
27 | 27 |
///for labeling items in push-relabel type algorithms. |
28 | 28 |
/// |
29 | 29 |
|
30 |
#include <lemon/core.h> |
|
30 | 31 |
#include <lemon/bits/traits.h> |
31 | 32 |
|
32 | 33 |
namespace lemon { |
33 | 34 |
|
34 | 35 |
///Class for handling "labels" in push-relabel type algorithms. |
35 | 36 |
|
36 | 37 |
///A class for handling "labels" in push-relabel type algorithms. |
37 | 38 |
/// |
38 | 39 |
///\ingroup auxdat |
39 | 40 |
///Using this class you can assign "labels" (nonnegative integer numbers) |
40 | 41 |
///to the edges or nodes of a graph, manipulate and query them through |
41 | 42 |
///operations typically arising in "push-relabel" type algorithms. |
... | ... |
@@ -18,24 +18,26 @@ |
18 | 18 |
|
19 | 19 |
#ifndef LEMON_SUURBALLE_H |
20 | 20 |
#define LEMON_SUURBALLE_H |
21 | 21 |
|
22 | 22 |
///\ingroup shortest_path |
23 | 23 |
///\file |
24 | 24 |
///\brief An algorithm for finding arc-disjoint paths between two |
25 | 25 |
/// nodes having minimum total length. |
26 | 26 |
|
27 | 27 |
#include <vector> |
28 | 28 |
#include <lemon/bin_heap.h> |
29 | 29 |
#include <lemon/path.h> |
30 |
#include <lemon/list_graph.h> |
|
31 |
#include <lemon/maps.h> |
|
30 | 32 |
|
31 | 33 |
namespace lemon { |
32 | 34 |
|
33 | 35 |
/// \addtogroup shortest_path |
34 | 36 |
/// @{ |
35 | 37 |
|
36 | 38 |
/// \brief Algorithm for finding arc-disjoint paths between two nodes |
37 | 39 |
/// having minimum total length. |
38 | 40 |
/// |
39 | 41 |
/// \ref lemon::Suurballe "Suurballe" implements an algorithm for |
40 | 42 |
/// finding arc-disjoint paths having minimum total length (cost) |
41 | 43 |
/// from a given source node to a given target node in a digraph. |
0 comments (0 inline)