Driver Code
g [ 0 ] . push ( [ 1 , 0 ] ) ; g [ 0 ] . push ( [ 2 , 1 ] ) ; g [ 1 ] . push ( [ 2 , 2 ] ) ; g [ 1 ] . push ( [ 3 , 3 ] ) ; g [ 2 ] . push ( [ 3 , 4 ] ) ; g [ 3 ] . push ( [ 4 , 5 ] ) ; g [ 4 ] . push ( [ 2 , 6 ] ) ;