Apply dfs and add nodes belonging to this component
for ( let it in adj [ u ] ) { if ( vis [ it ] == 0 ) { componentSize += dfs ( it , adj , vis ) ; } } return componentSize ; } function maximumComponentSize ( a , n ) {