COIN-OR::LEMON - Graph Library

Changeset 857:abb95d48e89e in lemon-1.2 for test/suurballe_test.cc


Ignore:
Timestamp:
10/16/09 09:35:46 (10 years ago)
Author:
Peter Kovacs <kpeter@…>
Branch:
default
Phase:
public
Message:

Add traits class + named parameters to Suurballe (#323)

The following types can be modified using named parameters:

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/suurballe_test.cc

    r854 r857  
    2424#include <lemon/suurballe.h>
    2525#include <lemon/concepts/digraph.h>
     26#include <lemon/concepts/heap.h>
    2627
    2728#include "test_tools.h"
     
    8283  typedef concepts::ReadMap<Arc, VType> LengthMap;
    8384 
    84   typedef Suurballe<Digraph, LengthMap> SuurballeType;
     85  typedef Suurballe<Digraph, LengthMap> ST;
     86  typedef Suurballe<Digraph, LengthMap>
     87    ::SetFlowMap<ST::FlowMap>
     88    ::SetPotentialMap<ST::PotentialMap>
     89    ::SetPath<SimplePath<Digraph> >
     90    ::SetHeap<concepts::Heap<VType, Digraph::NodeMap<int> > >
     91    ::Create SuurballeType;
    8592
    8693  Digraph g;
Note: See TracChangeset for help on using the changeset viewer.