public static List<Node> createFromString(String str){
			ArrayList<Node> retval = new ArrayList<Node>();
			
			String[] two = str.split(":");
			
			if(two.length!=2){
				System.out.println("bad formatting");
				return null;
			}
			
			String[] nodeNames = two[0].split(",");
			
			for(int i = 0; i < nodeNames.length; i++){
				retval.add(new Node(nodeNames[i],i));
			}
			String[] rel = two[1].split("-");
			
			if(rel.length!=retval.size()){
				System.out.println("bad formatting");
				return null;
			}
			
			for(int i = 0; i < retval.size(); i ++){
				String[] nodes = rel[i].split(",");
				ArrayList<Integer> tempArray = new ArrayList<Integer>();
				for(String number: nodes){
					if(number.equalsIgnoreCase("n")){
						tempArray = new ArrayList<Integer>();
						break;
					}
					tempArray.add(Integer.parseInt(number));
				}
				Node temp = retval.get(i);
				temp.setNeighbors(tempArray);
			}
			return retval;
		}