Driver code
static void Main ( ) { for ( int i = 0 ; i < N + 1 ; i ++ ) { adj . Add ( new List < int > ( ) ) ; } int [ , ] Edges = { { 1 , 2 } , { 1 , 3 } } ; bool [ ] initial = { true , true , false } ; bool [ ] finall = { false , true , true } ; countOperations ( N , initial , finall , Edges ) ; } }