Driver code
public static void main ( String [ ] args ) { for ( int i = 0 ; i < N + 1 ; i ++ ) { adj . add ( new Vector < Integer > ( ) ) ; } int [ ] [ ] Edges = { { 1 , 2 } , { 1 , 3 } } ; boolean [ ] initial = { true , true , false } ; boolean [ ] finall = { false , true , true } ; countOperations ( N , initial , finall , Edges ) ; } }