return new FigureSwitch(choice, children, properties);
case GRAPH:
//if(properties.getStringProperty(Properties.HINT).contains("lattice"))
// return new LatticeGraph(env, properties, (IList) c.get(0), (IList)c.get(1));
if(properties.getStr(Properties.HINT).contains("layered"))
return new LayeredGraph(env, properties, makeList(env, c.get(0), properties, childPropsNext), (IList)c.get(1));
//return new LayerGraphRecompute(env, properties, (IList) c.get(0), (IList)c.get(1));
//if(properties.getStringProperty(Properties.HINT).contains("leveled"))
// return new LeveledGraph(env, properties, (IList) c.get(0), (IList)c.get(1));
// if(properties.getStr(Properties.HINT).contains("spring"))