@SuppressWarnings("unchecked")
	private ArrayList<String>[] partFile(String fichier, int nbNodes) {
		try {
			BufferedReader br = new BufferedReader(new FileReader(new File(fichier)));
			String line = null;
			ArrayList<String> parts[] = new ArrayList[nbNodes];
			for(int i=0; i<nbNodes; i++)
				parts[i] = new ArrayList<>();

				int i=0;

				if(mode==0){
					System.out.println("mode "+mode);
					while((line=br.readLine())!=null){
						String[] tmp = line.split(" ");
						for(String s: tmp){
							parts[i].add(s);
							i = (i+1)%nbNodes;
						}
					}
				} else {
					System.out.println("mode "+mode);
					while((line=br.readLine())!=null){
						String[] tmp = line.split(" ");
						for(String s: tmp){
							parts[i].add(s);
						}
					}
					while(++i<nbNodes)
						parts[i].addAll(parts[0]);
				}

				br.close();
				return parts;


		} catch (IOException e) {
			e.printStackTrace();
			return null;
		}

	}