li = tempg.getEdges()
.listIterator();
// adding other vertices, which lay in G'
while (li.hasNext()) {
SimpleEdge element = (SimpleEdge) li.next();
if (((element.getSource()
.getProperty(this) != null)
&& (element.getTarget()
.getProperty(this) == null))
|| ((element.getTarget()
.getProperty(this) != null)
&& (element.getSource()
.getProperty(this) == null))
|| ((element.getSource()
.getProperty(this) == element.getTarget()
.getProperty(this))
&& (element.getSource()
.getProperty(this) != null))) {
Integer ii =
(Integer) ((element.getSource()
.getProperty(this) == null)
? element.getTarget()
.getProperty(this)
: element.getSource()
.getProperty(this));
if (element.getSource()
.getProperty(this) == null) {
((Segment) currSegments.get(ii.intValue())).addVertex(element
.getSource());
}
if (element.getTarget()
.getProperty(this) == null) {
((Segment) currSegments.get(ii.intValue())).addVertex(element
.getTarget());
}
((Segment) currSegments.get(ii.intValue())).addEdge(element);
}
}
sg.removePropertyAsc(this);
// one edge property
li = tempg.getEdges()
.listIterator();
while (li.hasNext()) {
SimpleEdge element = (SimpleEdge) li.next();
if ((planarg.getVertices()
.indexOf(element.getSource()) != -1)
&& (planarg.getVertices()
.indexOf(element.getTarget()) != -1)
&& (planarg.getEdges()
.indexOf(element) == -1)) {
Segment s = new Segment(planarg);
s.addEdge(element);
s.addVertex(element.getSource());
s.addVertex(element.getTarget());
currSegments.add(s);
}
}
}