Driver code
public static void Main ( String [ ] args ) { int N = 3 ; int [ , ] adj = { { 0 , 1 } , { 1 , 2 } } ; graph = new List < List < int > > ( ) ; for ( int i = 0 ; i < MAX ; i ++ ) graph . Add ( new List < int > ( ) ) ; countSubtrees ( N , adj ) ; } }