COIN-OR::LEMON - Graph Library

Changeset 409:e7707b3069f1 in lemon for test/preflow_test.cc


Ignore:
Timestamp:
11/30/08 00:51:20 (11 years ago)
Author:
Peter Kovacs <kpeter@…>
Branch:
default
Phase:
public
Message:

Better test files for Preflow (#176)

  • Slightly improve preflow_test.cc.
  • Change preflow_test.lgf to meet the new LGF format and remove trailing tabs.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/preflow_test.cc

    r407 r409  
    2626#include <lemon/concepts/maps.h>
    2727#include <lemon/lgf_reader.h>
     28#include <lemon/elevator.h>
    2829
    2930using namespace lemon;
    3031
    31 void checkPreflow()
     32void checkPreflowCompile()
    3233{
    3334  typedef int VType;
     
    3940  typedef concepts::ReadWriteMap<Arc,VType> FlowMap;
    4041  typedef concepts::WriteMap<Node,bool> CutMap;
     42
     43  typedef Elevator<Digraph, Digraph::Node> Elev;
     44  typedef LinkedElevator<Digraph, Digraph::Node> LinkedElev;
    4145
    4246  Digraph g;
     
    4751  CutMap cut;
    4852
    49   Preflow<Digraph, CapMap>::SetFlowMap<FlowMap>::Create preflow_test(g,cap,n,n);
     53  Preflow<Digraph, CapMap>
     54    ::SetFlowMap<FlowMap>
     55    ::SetElevator<Elev>
     56    ::SetStandardElevator<LinkedElev>
     57    ::Create preflow_test(g,cap,n,n);
    5058
    5159  preflow_test.capacityMap(cap);
Note: See TracChangeset for help on using the changeset viewer.