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