COIN-OR::LEMON - Graph Library

Changeset 1195:8b2b9e61d8ce in lemon for lemon/core.h


Ignore:
Timestamp:
01/11/12 22:43:50 (12 years ago)
Author:
Balazs Dezso <deba@…>
Branch:
default
Phase:
public
Message:

Remove asRedBludeNode() function (#69)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/core.h

    r1194 r1195  
    12101210
    12111211      Value operator[](const Key& key) const {
    1212         std::pair<RedNode, BlueNode> red_blue_pair = _from.asRedBlueNode(key);
    1213         if (red_blue_pair.first != INVALID) {
    1214           return _red_node_ref[red_blue_pair.first];
     1212        if (_from.red(key)) {
     1213          return _red_node_ref[_from.asRedNodeUnsafe(key)];
    12151214        } else {
    1216           return _blue_node_ref[red_blue_pair.second];
     1215          return _blue_node_ref[_from.asBlueNodeUnsafe(key)];
    12171216        }
    12181217      }
Note: See TracChangeset for help on using the changeset viewer.