COIN-OR::LEMON - Graph Library

Changeset 531:ba7bafdc458d in lemon-main


Ignore:
Timestamp:
02/23/09 14:53:45 (16 years ago)
Author:
Peter Kovacs <kpeter@…>
Branch:
default
Phase:
public
Message:

Avoid warnings in test/euler_test.h (#65)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/euler_test.cc

    r522 r531  
    2626void checkDiEulerIt(const Digraph& g)
    2727{
    28   typename Digraph::template ArcMap<int> visitationNumber(g);
     28  typename Digraph::template ArcMap<int> visitationNumber(g, 0);
    2929
    3030  DiEulerIt<Digraph> e(g);
    3131  typename Digraph::Node firstNode = g.source(e);
    32   typename Digraph::Node lastNode;
     32  typename Digraph::Node lastNode = g.target(e);
    3333
    3434  for (; e != INVALID; ++e)
     
    5454void checkEulerIt(const Graph& g)
    5555{
    56   typename Graph::template EdgeMap<int> visitationNumber(g);
     56  typename Graph::template EdgeMap<int> visitationNumber(g, 0);
    5757
    5858  EulerIt<Graph> e(g);
    5959  typename Graph::Node firstNode = g.u(e);
    60   typename Graph::Node lastNode;
     60  typename Graph::Node lastNode = g.v(e);
    6161
    6262  for (; e != INVALID; ++e)
Note: See TracChangeset for help on using the changeset viewer.