Add out - degree of each node
for ( int i = 1 ; i <= size ; i ++ ) calculatedAnswer += adj [ i ] . size ( ) ; if ( actualAnswer == calculatedAnswer ) cout << " Calculated ▁ Answer ▁ is ▁ " << calculatedAnswer << " ▁ and ▁ is ▁ Equal ▁ to ▁ Actual ▁ Answer STRNEWLINE " ; else cout << " Calculated ▁ Answer ▁ is ▁ Incorrect STRNEWLINE " ; }