( LRG lrg )
| 107 | } |
| 108 | |
| 109 | // Union `this` and `lrg`, keeping the lower numbered _lrg. |
| 110 | // Includes a number of fast-path cutouts. |
| 111 | LRG union( LRG lrg ) { |
| 112 | assert leader(); |
| 113 | if( lrg==null ) return this; |
| 114 | lrg = lrg.find(); |
| 115 | if( lrg==this ) return this; |
| 116 | return _lrg < lrg._lrg ? _union(lrg) : lrg._union(this); |
| 117 | } |
| 118 | // Union `this` and `lrg`, folding together all stats. |