Python3 program to check if there exist an edge whose removal creates two trees of same size utility function to create a new node
class newNode : NEW_LINE INDENT def __init__ ( self , x ) : NEW_LINE INDENT self . data = x NEW_LINE self . left = self . right = None NEW_LINE DEDENT DEDENT