COIN-OR::LEMON - Graph Library

Changeset 1718:6a958ab38386 in lemon-0.x for lemon/smart_graph.h


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

Extending observer interface
It will be used in the indegmap, outdegmap types

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/smart_graph.h

    r1692 r1718  
    7676
    7777    SmartGraphBase() : nodes(), edges() { }
    78     SmartGraphBase(const SmartGraphBase &_g) : nodes(_g.nodes), edges(_g.edges) { }
     78    SmartGraphBase(const SmartGraphBase &_g)
     79      : nodes(_g.nodes), edges(_g.edges) { }
    7980   
    8081    typedef True NodeNumTag;
     
    315316    Node split(Node n, bool connect = true)
    316317    {
    317       return _split(n,connect);
     318      for (OutEdgeIt it(*this, n); it != INVALID; ++it) {
     319        getNotifier(Edge()).signalChange(it);
     320      }
     321      Node b = _split(n,connect);
     322      for (OutEdgeIt it(*this, b); it != INVALID; ++it) {
     323        getNotifier(Edge()).commitChange(it);
     324      }
     325      return b;
    318326    }
    319327 
Note: See TracChangeset for help on using the changeset viewer.