// toconnect will be from sg vertices
List toconnect = new ArrayList();
while (liv.hasNext()) {
SimpleVertex vertex = (SimpleVertex) liv.next();
if (vertex.getEdges()
.size() == 1) {
toconnect.add(vertex.getVertexProperty(CORRESP_KEY));
}
}
// biconnecting
ListIterator li2c = toconnect.listIterator();
SimpleVertex vprev = (SimpleVertex) li2c.next();
while (li2c.hasNext()) {
SimpleVertex vnext = (SimpleVertex) li2c.next();
SimpleEdge e = new SimpleEdge(vprev, vnext);
e.setProperty(FICTIVEEDGEBICONN_KEY, FICTIVEVALUE);
sg.addEdge(e);