pub fn new(size: usize) -> Self {
        Self {
            parent: (0..size).collect(),
        }
    }
/// Initializes disjoint sets containing one element each.
Initializes disjoint sets containing one element each.
Initializes disjoint sets containing one element each .
pub fn new(size: usize) -> Self {
        Self {
            parent: (0..size).collect(),
        }
    }
pub fn new ( size : usize ) -> Self { Self { parent : ( 0 .. size ) . collect ( ) , } }
Initializes disjoint sets containing one element each.
Initializes disjoint sets containing one element each .
size
usize