Changeset 218:5964f1c64ca1 in lemon-0.x for src/work/johanna/unionfind.h
- Timestamp:
- 03/20/04 18:01:45 (21 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@314
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/work/johanna/unionfind.h
r150 r218 1 1 // -*- c++ -*- // 2 #ifndef UNION_FIND_H3 #define UNION_FIND_H2 #ifndef HUGO_UNION_FIND_H 3 #define HUGO_UNION_FIND_H 4 4 5 5 #include <vector> … … 69 69 } 70 70 71 int componentSize(T a) 72 { 73 int ca = whichComponent(a); 74 return data[ca].second; 75 } 76 71 77 }; 72 78 73 79 } //namespace hugo 74 80 75 #endif // UNION_FIND_H81 #endif //HUGO_UNION_FIND_H
Note: See TracChangeset
for help on using the changeset viewer.