Create graph and store in adjacency list form
@ SuppressWarnings ( " unchecked " ) Vector < Integer > [ ] adj = new Vector [ n ] ; for ( int i = 0 ; i < adj . length ; i ++ ) adj [ i ] = new Vector < Integer > ( ) ;