}
Iterator iter = ((IDecisionState) getModel()).getIfs().iterator();
int j = 0;
while (iter.hasNext()) {
IIf theIf = (IIf) iter.next();
if (theIf.getThenTransition() != null
&& theIf.getThenTransition().getToState() != null) {
// insert dummy edges for layouting
Edge e1 = new Edge((Node) map.get(this), getNode(theIf
.getThenTransition().getToState(), map));
// e1.weight = 5;
graph.edges.add(e1);
map.put(this.toString() + (j++), e1);
}
if (theIf.getElseTransition() != null
&& theIf.getElseTransition().getToState() != null) {
Edge e2 = new Edge((Node) map.get(this), getNode(theIf
.getElseTransition().getToState(), map));
// e2.weight = 5;
graph.edges.add(e2);
map.put(this.toString() + (j++), e2);
}