0
2
0
... | ... |
@@ -25,10 +25,11 @@ |
25 | 25 |
#include <lemon/concepts/digraph.h> |
26 | 26 |
#include <lemon/concepts/maps.h> |
27 | 27 |
#include <lemon/lgf_reader.h> |
28 |
#include <lemon/elevator.h> |
|
28 | 29 |
|
29 | 30 |
using namespace lemon; |
30 | 31 |
|
31 |
void |
|
32 |
void checkPreflowCompile() |
|
32 | 33 |
{ |
33 | 34 |
typedef int VType; |
34 | 35 |
typedef concepts::Digraph Digraph; |
... | ... |
@@ -39,6 +40,9 @@ |
39 | 40 |
typedef concepts::ReadWriteMap<Arc,VType> FlowMap; |
40 | 41 |
typedef concepts::WriteMap<Node,bool> CutMap; |
41 | 42 |
|
43 |
typedef Elevator<Digraph, Digraph::Node> Elev; |
|
44 |
typedef LinkedElevator<Digraph, Digraph::Node> LinkedElev; |
|
45 |
|
|
42 | 46 |
Digraph g; |
43 | 47 |
Node n; |
44 | 48 |
Arc e; |
... | ... |
@@ -46,7 +50,11 @@ |
46 | 50 |
FlowMap flow; |
47 | 51 |
CutMap cut; |
48 | 52 |
|
49 |
Preflow<Digraph, CapMap> |
|
53 |
Preflow<Digraph, CapMap> |
|
54 |
::SetFlowMap<FlowMap> |
|
55 |
::SetElevator<Elev> |
|
56 |
::SetStandardElevator<LinkedElev> |
|
57 |
::Create preflow_test(g,cap,n,n); |
|
50 | 58 |
|
51 | 59 |
preflow_test.capacityMap(cap); |
52 | 60 |
flow = preflow_test.flowMap(); |
0 comments (0 inline)