public AdjacencyList(String fileName, int sz)throws IOException, NumberFormatException{
		n=sz;
		vertexCount=(n-1);
		 adj = (List<Integer>[])new List[n];
		 for (int i = 1; i < n; i++)
		 adj[i] = new ArrayList<Integer>();
		 readFile(fileName);
		 
		 for(int p=1;p<n;p++){
//			 System.out.println(outEdges(p));
//			 System.out.println(inEdges(p));
		 }
		 
		 while(vertexCount > 2){
			 a = 1 + generator.nextInt(n-1);
			 b = 1 + generator.nextInt(n-1);
			 
			 if(a!=b){
//				 System.out.printf("%d %d \n",a,b);	 
				 contractEdge(a, b);
			 }
			 
//			 System.out.println(vertexCount);
		 }//end while
		 
		 while(k<n){
			 if(adj[k]!=null){
				 System.out.println(k);
				 System.out.println(adj[k]);
				 System.out.printf("size=%d \n",adj[k].size());
			 }
			 k++;
		 }		 
		 

//		 minCutEdgeCount= countEgde(k);
//		 System.out.println("Edges in min cut:" + minCutEdgeCount);
	}// end constructor