apply dfs and add nodes belonging to this component
for x in adj [ u ] : NEW_LINE INDENT if ( vis [ x ] == 0 ) : NEW_LINE INDENT componentSize += dfs ( x , adj , vis ) NEW_LINE DEDENT DEDENT return componentSize NEW_LINE def maximumComponentSize ( a , n ) : NEW_LINE