ListIterator li = graph.getVertices()
.listIterator();
while (li.hasNext()) {
SimpleVertex el = (SimpleVertex) li.next();
SimpleGraph sgr = (SimpleGraph) el.getProperty(Constant.LAYER_KEY);
if (sgr != null) {
res.add(el);
sgr.setProperty(FICTIVEADDED_KEY, Boolean.FALSE);
}
}
processVertexListPrep(res);
List lower = new ArrayList();
li = graph.getVertices()
.listIterator();
while (li.hasNext()) {
SimpleVertex el = (SimpleVertex) li.next();
SimpleGraph sgr = (SimpleGraph) el.getProperty(Constant.LAYER_KEY);
if (sgr != null) {
lower.addAll(sgr.getVertices());
List l = (List) sgr.getProperty(LOWERV_KEY);
lower.addAll(l);
}
}
graph.setProperty(LOWERV_KEY, lower);