&& (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);
}
}