COIN-OR::LEMON - Graph Library

Changeset 1763:49045f2d28d4 in lemon-0.x for lemon/bfs.h


Ignore:
Timestamp:
11/04/05 15:48:10 (14 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2295
Message:

pred => predEdge rename

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/bfs.h

    r1761 r1763  
    621621        p.clear();
    622622        typename P::Builder b(p);
    623         for(b.setStartNode(t);pred(t)!=INVALID;t=predNode(t))
    624           b.pushFront(pred(t));
     623        for(b.setStartNode(t);predEdge(t)!=INVALID;t=predNode(t))
     624          b.pushFront(predEdge(t));
    625625        b.commit();
    626626        return true;
     
    649649    ///this function.
    650650    ///\todo predEdge could be a better name.
    651     Edge pred(Node v) const { return (*_pred)[v];}
     651    Edge predEdge(Node v) const { return (*_pred)[v];}
    652652
    653653    ///Returns the 'previous node' of the shortest path tree.
     
    660660    ///if \c v itself a root.
    661661    ///The shortest path tree used here is equal to the shortest path
    662     ///tree used in \ref pred().
     662    ///tree used in \ref predEdge().
    663663    ///\pre Either \ref run() or \ref start() must be called before
    664664    ///using this function.
Note: See TracChangeset for help on using the changeset viewer.