COIN-OR::LEMON - Graph Library

Changeset 1729:06f939455cb1 in lemon-0.x for lemon/list_graph.h


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

Removing signal/commit Change from alteration notifier

It makes slower the change Target/Source? functions
and used only by the In/Out? DegMap?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/list_graph.h

    r1718 r1729  
    339339    ///valid. However <tt>InEdge</tt>'s are invalidated.
    340340    void changeTarget(Edge e, Node n) {
    341       getNotifier(Edge()).signalChange(e);
    342341      _changeTarget(e,n);
    343       getNotifier(Edge()).commitChange(e);
    344342    }
    345343    /// Changes the source of \c e to \c n
     
    351349    ///valid. However <tt>OutEdge</tt>'s are invalidated.
    352350    void changeSource(Edge e, Node n) {
    353       getNotifier(Edge()).signalChange(e);
    354351      _changeSource(e,n);
    355       getNotifier(Edge()).commitChange(e);
    356352    }
    357353
     
    363359    void reverseEdge(Edge e) {
    364360      Node t=target(e);
    365       getNotifier(Edge()).signalChange(e);
    366361      _changeTarget(e,source(e));
    367362      _changeSource(e,t);
    368       getNotifier(Edge()).commitChange(e);
    369363    }
    370364
     
    594588    /// valid. However <tt>InEdge</tt>'s are invalidated.
    595589    void changeTarget(UndirEdge e, Node n) {
    596       getNotifier(UndirEdge()).signalChange(e);
    597       getNotifier(Edge()).signalChange(direct(e, true));
    598       getNotifier(Edge()).signalChange(direct(e, false));
    599590      _changeTarget(e,n);
    600       getNotifier(UndirEdge()).commitChange(e);
    601       getNotifier(Edge()).commitChange(direct(e, true));
    602       getNotifier(Edge()).commitChange(direct(e, false));
    603591    }
    604592    /// Changes the source of \c e to \c n
     
    610598    ///valid. However <tt>OutEdge</tt>'s are invalidated.
    611599    void changeSource(UndirEdge e, Node n) {
    612       getNotifier(UndirEdge()).signalChange(e);
    613       getNotifier(Edge()).signalChange(direct(e, true));
    614       getNotifier(Edge()).signalChange(direct(e, false));
    615600      _changeSource(e,n);
    616       getNotifier(UndirEdge()).commitChange(e);
    617       getNotifier(Edge()).commitChange(direct(e, true));
    618       getNotifier(Edge()).commitChange(direct(e, false));
    619601    }
    620602    /// \brief Contract two nodes.
Note: See TracChangeset for help on using the changeset viewer.