private static void inputgraph() throws FileNotFoundException {
			// TODO Auto-generated method stub

			File f = new File("src/clustering1.txt");

			int i;
			int j;
			for (i = 0; i < 505; i++) {
				graph.add(new ArrayList<Integer>());
				
				
				for(j =0 ; j<505;j++){
					edgewieght[i][j] = 15000;
			
				}
				
			}

			Scanner sr = new Scanner(f);

		sr.next();
			int l,m;
			while(sr.hasNext()){
			l = sr.nextInt();
			 m = sr.nextInt(); 
			graph.get(l).add(m);
			edgewieght[l][m] = sr.nextInt();
		
			}
			for(int k = 0;k<500;k++){
			System.out.print(graph.get(k));
				System.out.print("\n");
			}
		}