COIN-OR::LEMON - Graph Library

Changeset 1546:3fcb8ae9cea1 in lemon-0.x for lemon


Ignore:
Timestamp:
07/12/05 18:15:37 (19 years ago)
Author:
Alpar Juttner
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2042
Message:

moveSource() -> changeSource()
moveTarget() -> changeTarget()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/list_graph.h

    r1470 r1546  
    276276
    277277  protected:
    278     void _moveTarget(Edge e, Node n)
     278    void _changeTarget(Edge e, Node n)
    279279    {
    280280      if(edges[e.id].next_in != -1)
     
    288288      nodes[n.id].first_in = e.id;
    289289    }
    290     void _moveSource(Edge e, Node n)
     290    void _changeSource(Edge e, Node n)
    291291    {
    292292      if(edges[e.id].next_out != -1)
     
    325325  {
    326326  public:
    327     /// Moves the target of \c e to \c n
    328 
    329     /// Moves the target of \c e to \c n
     327    /// Changes the target of \c e to \c n
     328
     329    /// Changes the target of \c e to \c n
    330330    ///
    331331    ///\note The <tt>Edge</tt>'s and <tt>OutEdge</tt>'s
    332     ///referencing the moved edge remain
     332    ///referencing the changed edge remain
    333333    ///valid. However <tt>InEdge</tt>'s are invalidated.
    334     void moveTarget(Edge e, Node n) { _moveTarget(e,n); }
    335     /// Moves the source of \c e to \c n
    336 
    337     /// Moves the source of \c e to \c n
     334    void changeTarget(Edge e, Node n) { _changeTarget(e,n); }
     335    /// Changes the source of \c e to \c n
     336
     337    /// Changes the source of \c e to \c n
    338338    ///
    339339    ///\note The <tt>Edge</tt>'s and <tt>InEdge</tt>'s
    340     ///referencing the moved edge remain
     340    ///referencing the changed edge remain
    341341    ///valid. However <tt>OutEdge</tt>'s are invalidated.
    342     void moveSource(Edge e, Node n) { _moveSource(e,n); }
     342    void changeSource(Edge e, Node n) { _changeSource(e,n); }
    343343
    344344    /// Invert the direction of an edge.
    345345
    346346    ///\note The <tt>Edge</tt>'s
    347     ///referencing the moved edge remain
     347    ///referencing the changed edge remain
    348348    ///valid. However <tt>OutEdge</tt>'s  and <tt>InEdge</tt>'s are invalidated.
    349349    void reverseEdge(Edge e) {
    350350      Node t=target(e);
    351       _moveTarget(e,source(e));
    352       _moveSource(e,t);
     351      _changeTarget(e,source(e));
     352      _changeSource(e,t);
    353353    }
    354354
     
    378378        ++f;
    379379        if(r && target(e)==a) erase(e);
    380         else moveSource(e,a);
     380        else changeSource(e,a);
    381381        e=f;
    382382      }
     
    385385        ++f;
    386386        if(r && source(e)==a) erase(e);
    387         else moveTarget(e,a);
     387        else changeTarget(e,a);
    388388        e=f;
    389389      }
     
    412412        OutEdgeIt f=e;
    413413        ++f;
    414         moveSource(e,b);
     414        changeSource(e,b);
    415415        e=f;
    416416      }
     
    560560  ///\sa concept::UndirGraph.
    561561  ///
    562   ///\todo SnapShot, reverseEdge(), moveTarget(), moveSource(), contract()
     562  ///\todo SnapShot, reverseEdge(), changeTarget(), changeSource(), contract()
    563563  ///haven't been implemented yet.
    564564  ///
Note: See TracChangeset for help on using the changeset viewer.