Module ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareNotEq SubscriptLoad AttributeLoad NameLoad attr Index NameLoad NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad If CompareNotEq NameLoad NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index Call NameLoad NameLoad NameLoad Call NameLoad NameLoad NameLoad AugAssignSub AttributeStore NameLoad attr Num decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad For TupleStore NameStore NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return AttributeLoad NameLoad attr decorator_list decorator_list
N/A UnionFind N/A object N/A __init__ N/A N/A self n N/A N/A N/A N/A self set N/A range n N/A N/A self count n N/A find_set N/A N/A self x N/A N/A N/A N/A N/A N/A self set N/A x x N/A N/A N/A N/A self set N/A x N/A N/A self find_set N/A N/A self set N/A x N/A N/A N/A self set N/A x N/A union_set N/A N/A self x y N/A N/A N/A N/A x_root y_root N/A map N/A self find_set N/A x y N/A N/A x_root y_root N/A N/A N/A N/A self set N/A N/A min x_root y_root N/A max x_root y_root N/A N/A self count 1 N/A N/A Solution N/A object N/A countComponents N/A N/A self n edges N/A N/A N/A 
        :type n: int
        :type edges: List[List[int]]
        :rtype: int
         N/A union_find N/A UnionFind n N/A N/A i j edges N/A N/A N/A N/A union_find union_set i j N/A N/A union_find count N/A N/A