subset [ i ] . parent -- > Holds the parent of node - ' i ' subset [ i ] . rank -- > Holds the rank of node - ' i ' subset [ i ] . ancestor -- > Holds the LCA queries answers subset [ i ] . child -- > Holds one of the child of node - ' i ' if present , else - '0' subset [ i ] . sibling -- > Holds the right - sibling of node - ' i ' if present , else - '0' subset [ i ] . color -- > Holds the colour of node - ' i '
struct subset { int parent , rank , ancestor , child , sibling , color ; } ;