function to calculate the largest connected component
def computeLargestConnectedGrid ( input ) : NEW_LINE INDENT global COUNT NEW_LINE current_max = - 10000000000 NEW_LINE for i in range ( n ) : NEW_LINE INDENT for j in range ( m ) : NEW_LINE INDENT reset_visited ( ) ; NEW_LINE COUNT = 0 ; NEW_LINE DEDENT DEDENT DEDENT