COIN-OR::LEMON - Graph Library

Changeset 981:2e34b796d532 in lemon-0.x for src/lemon


Ignore:
Timestamp:
11/11/04 11:17:20 (20 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1369
Message:

maxUndirEdgeId modified to maxId(UndirEdge?)
maxEdgeId modified to maxId(Edge)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/lemon/undir_graph_extender.h

    r978 r981  
    177177
    178178    int id(const Edge &e) const {
    179       return 2*Parent::id(e) + int(e.forward);
     179      return 2 * Parent::id(e) + int(e.forward);
    180180    }
    181181
    182     int maxEdgeId() const {
    183       return 2*Parent::maxEdgeId() + 1;
     182    int maxId(Edge = INVALID) const {
     183      return 2 * Parent::maxId(typename Parent::Edge()) + 1;
    184184    }
    185     int maxUndirEdgeId() const {
    186       return Parent::maxEdgeId();
     185    int maxId(UndirEdge = INVALID) const {
     186      return Parent::maxId(typename Parent::Edge());
    187187    }
    188188
Note: See TracChangeset for help on using the changeset viewer.