COIN-OR::LEMON - Graph Library

Changeset 1763:49045f2d28d4 in lemon-0.x for lemon/dfs.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/dfs.h

    r1761 r1763  
    643643        p.clear();
    644644        typename P::Builder b(p);
    645         for(b.setStartNode(t);pred(t)!=INVALID;t=predNode(t))
    646           b.pushFront(pred(t));
     645        for(b.setStartNode(t);predEdge(t)!=INVALID;t=predNode(t))
     646          b.pushFront(predEdge(t));
    647647        b.commit();
    648648        return true;
     
    671671    ///this function.
    672672    ///\todo predEdge could be a better name.
    673     Edge pred(Node v) const { return (*_pred)[v];}
     673    Edge predEdge(Node v) const { return (*_pred)[v];}
    674674
    675675    ///Returns the 'previous node' of the %DFS tree.
     
    682682    ///if \c v itself a root.
    683683    ///The %DFS tree used here is equal to the %DFS
    684     ///tree used in \ref pred().
     684    ///tree used in \ref predEdge().
    685685    ///\pre Either \ref run() or \ref start() must be called before
    686686    ///using this function.
Note: See TracChangeset for help on using the changeset viewer.