Driver Code
static void Main ( string [ ] args ) { int n = 6 ; for ( int i = 0 ; i < 10001 ; i ++ ) { Graph [ i ] = new List < int > ( ) ; } int [ ] x = { 1 , 1 , 4 , 4 , 0 , 0 , 0 , 0 } ; int [ ] y = { 2 , 3 , 5 , 6 , 0 , 0 , 0 , 0 } ;