public ArrayList<String> compressTokens(HashSet<String> allPaths, String seedName){
		
		ArrayList<String> compress = new ArrayList<String>();

		HashMap<String, String> allPatients = new HashMap<String, String>();
		
		
		for (String network : allPaths){
			String patients = allGeneSamplesMap.get(seedName);
			String[] genes = network.split(":");
			for (int i=0; i<genes.length; i++){
				if (!genes[i].equals(seedName) && !allGeneSamplesMap.get(genes[i]).equals("no_sample")){
					patients = patients + ":" + allGeneSamplesMap.get(genes[i]);
				}
			}

			if (allPatients.get(patients)==null){
				allPatients.put(patients, network);
			}
			else{
				String[] genes2 = allPatients.get(patients).split(":");
				if(genes.length<genes2.length){
					allPatients.put(patients, network);
				}
			}
		}

		for (String list : allPatients.keySet()){
			compress.add(allPatients.get(list));
		}

		return compress;
	}