This is basically an inorder traversal and we preprocess the arrays . child [ ] and sibling [ ] in " struct ▁ subset " with the tree structure using this function .
def preprocess ( node , subsets ) : NEW_LINE INDENT if ( node == None ) : NEW_LINE INDENT return NEW_LINE DEDENT DEDENT