Given Graph
g [ 0 ] . push ( 1 ) ; g [ 1 ] . push ( 0 ) ; g [ 0 ] . push ( 2 ) ; g [ 2 ] . push ( 0 ) ; g [ 0 ] . push ( 3 ) ; g [ 3 ] . push ( 0 ) ; g [ 1 ] . push ( 2 ) ; g [ 2 ] . push ( 1 ) ; g [ 1 ] . push ( 4 ) ; g [ 4 ] . push ( 1 ) ;