private static HashMap<Integer,Node> loadNode(ArrayList<String> texts,ArrayList<Branch> branches)
	{
		ArrayList<String> strings = new ArrayList<String>();
		int startLine = 0;
		for(int lineNumber = 0;;lineNumber++){
			String aString = texts.get(lineNumber);
			if(aString.equals("nodes:")){
				startLine = lineNumber+1;
				break;
			}
		}
		for(int lineNumber = startLine;;lineNumber++){
			String aString = texts.get(lineNumber);
			if(aString.equals("branches:")){
				break;
			}else{
				strings.add(aString);
			}
		}
		int y=0;
		for(String aString : strings)
		{
			String[] nodeStrings = aString.split(",.");
			Node aNode = new Node(nodeStrings[1],Integer.parseInt(nodeStrings[0]));
			aNode.setLocation(0,y);
			y+=aNode.getSize().height+Constans.HEIGHT_SPACE;
			nodes.put(Integer.parseInt(nodeStrings[0]),aNode);
			
		}
		for(Branch aBranch : branches)
		{
			
			Node aParentNode = nodes.get(aBranch.getParentNumber());
			Node aChildNode = nodes.get(aBranch.getChildNumber());

			aParentNode.addChild(nodes.get(aBranch.getChildNumber()));
			aChildNode.addParent(nodes.get(aBranch.getParentNumber()));


			nodes.put(aBranch.getParentNumber(),aParentNode);
			nodes.put(aBranch.getChildNumber(),aChildNode);

		}

		return nodes;
	}