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