COIN-OR::LEMON - Graph Library

Changeset 2506:216c6bd5c18c in lemon-0.x for lemon/unionfind.h


Ignore:
Timestamp:
10/30/07 21:44:53 (16 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@3352
Message:

Change to new union-find interface

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/unionfind.h

    r2505 r2506  
    475475      }
    476476
    477     }   
     477    }
     478
     479    /// \brief Gives back a representant item of the component.
     480    ///
     481    /// Gives back a representant item of the component.
     482    Item item(int cls) const {
     483      return items[classes[cls].firstItem].item;
     484    }
    478485
    479486    /// \brief Removes the component of the given element from the structure.
     
    733740      return items[index[item]].cls;
    734741    }
     742
     743    /// \brief Gives back a representant item of the component.
     744    ///
     745    /// Gives back a representant item of the component.
     746    Item item(int cls) const {
     747      return items[classes[cls].firstItem].item;
     748    }
    735749   
    736750    /// \brief Removes the given element from the structure.
Note: See TracChangeset for help on using the changeset viewer.