ArrayList nodeList = this.getSuccesors(parent); nodeList.add(index, node);
if (parent.getType() == GEType.PIPELINE) { ArrayList nodeList = this.getSuccesors(parent);  GEStreamNode nextNode =  (GEStreamNode) nodeList.get(index + 1); Iterator nextNodeEdgesIter = nextNode.getTargetEdges().iterator(); DefaultEdge edge = (DefaultEdge) nextNodeEdgesIter.next(); this.cs.disconnect(edge);  if (index > 0 ) { GEStreamNode previousNode = (GEStreamNode) nodeList.get(index -1); this.connectDraw(previousNode, node); } this.connectDraw(node, nextNode); } else if (parent.getType() == GEType.SPLITTER) {} else if (parent.getType() == GEType.FEEDBACK_LOOP) {} else { System.out.println("ERROR : The parent type is invalid"); }
	public void addNode(GEStreamNode node, GEStreamNode parent, int index)	{		ArrayList nodeList = this.getSuccesors(parent); 		nodeList.add(index, node);	}