prints the largest component
for ( int i = 0 ; i < n ; i ++ ) { for ( int j = 0 ; j < m ; j ++ ) { if ( result [ i ] [ j ] != 0 ) { Console . Write ( result [ i ] [ j ] + " ▁ " ) ; } else { Console . Write ( " . ▁ " ) ; } } Console . WriteLine ( ) ; } }