Pointer to an array containing adjacency lists
Vector < Integer > [ ] adj ; @ SuppressWarnings ( " unchecked " ) Graph ( int V ) { this . V = V ; this . adj = new Vector [ V ] ; for ( int i = 0 ; i < V ; i ++ ) adj [ i ] = new Vector < > ( ) ; }