Driver code
if __name__ == ' _ _ main _ _ ' : NEW_LINE INDENT N = 5 ; NEW_LINE edges = [ ] NEW_LINE edges . append ( [ 5 , 1 ] ) ; NEW_LINE edges . append ( [ 5 , 2 ] ) ; NEW_LINE edges . append ( [ 1 , 2 ] ) ; NEW_LINE edges . append ( [ 2 , 3 ] ) ; NEW_LINE edges . append ( [ 2 , 4 ] ) ; NEW_LINE print ( minNodetoRemove ( N , edges ) ) ; NEW_LINE DEDENT