COIN-OR::LEMON - Graph Library

Changeset 2222:a24939ee343c in lemon-0.x for lemon/bits/graph_extender.h


Ignore:
Timestamp:
09/29/06 13:23:54 (13 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2962
Message:

findEdge extension also for the BpUGraphs
proper handling of loop edges in the UGraph::findUEdge

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/bits/graph_extender.h

    r2203 r2222  
    15241524    }
    15251525
     1526    Edge findEdge(Node u, Node v, Edge prev = INVALID) const {
     1527      UEdge uedge = Parent::findUEdge(u, v, prev);
     1528      if (uedge != INVALID) {
     1529        return direct(uedge, Parent::aNode(u));
     1530      } else {
     1531        return INVALID;
     1532      }
     1533    }
    15261534
    15271535  };
Note: See TracChangeset for help on using the changeset viewer.