COIN-OR::LEMON - Graph Library

Changeset 238:79643f6e8c52 in lemon-1.2 for lemon/smart_graph.h


Ignore:
Timestamp:
07/29/08 13:58:03 (11 years ago)
Author:
Balazs Dezso <deba@…>
Branch:
default
Phase:
public
Message:

Converting INVALID arc to INVALID edge

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/smart_graph.h

    r220 r238  
    466466
    467467    public:
    468       operator Edge() const { return edgeFromId(_id / 2); }
     468      operator Edge() const {
     469        return _id != -1 ? edgeFromId(_id / 2) : INVALID;
     470      }
    469471
    470472      Arc() {}
Note: See TracChangeset for help on using the changeset viewer.