COIN-OR::LEMON - Graph Library

Changeset 2231:06faf3f06d67 in lemon-0.x for lemon/smart_graph.h


Ignore:
Timestamp:
10/03/06 13:46:39 (13 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2973
Message:

Some rearrangement of concepts and extenders
BpUGraph concepts and concept check test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/smart_graph.h

    r2190 r2231  
    663663      return node.id >> 1;
    664664    }
    665     static Node fromANodeId(int id) {
     665    static Node nodeFromANodeId(int id) {
    666666      return Node(id << 1);
    667667    }
     
    673673      return node.id >> 1;
    674674    }
    675     static Node fromBNodeId(int id) {
     675    static Node nodeFromBNodeId(int id) {
    676676      return Node((id << 1) + 1);
    677677    }
     
    744744
    745745
    746   typedef BpUGraphExtender<SmartBpUGraphBase> ExtendedSmartBpUGraphBase;
     746  typedef BpUGraphExtender<BidirBpUGraphExtender<SmartBpUGraphBase> >
     747  ExtendedSmartBpUGraphBase;
    747748
    748749  /// \ingroup graphs
     
    830831      }
    831832      while(s.anode_num<aNodes.size()) {
    832         Node node = fromANodeId(aNodes.size() - 1);
     833        Node node = nodeFromANodeId(aNodes.size() - 1);
    833834        Parent::getNotifier(ANode()).erase(node);
    834835        Parent::getNotifier(Node()).erase(node);
     
    836837      }
    837838      while(s.bnode_num<bNodes.size()) {
    838         Node node = fromBNodeId(bNodes.size() - 1);
     839        Node node = nodeFromBNodeId(bNodes.size() - 1);
    839840        Parent::getNotifier(BNode()).erase(node);
    840841        Parent::getNotifier(Node()).erase(node);
Note: See TracChangeset for help on using the changeset viewer.