public Object resetEdge(Object edge){
  mxGeometry geo=model.getGeometry(edge);
  if (geo != null) {
    List<mxPoint> points=geo.getPoints();
    if (points != null && !points.isEmpty()) {
      geo=(mxGeometry)geo.clone();
      geo.setPoints(null);
      model.setGeometry(edge,geo);
    }
  }
  return edge;
}

public Object resetEdge ( Object edge ) { mxGeometry geo = model . getGeometry ( edge ) ; if ( geo != null ) { List < mxPoint > points = geo . getPoints ( ) ; if ( points != null && ! points . isEmpty ( ) ) { geo = ( mxGeometry ) geo . clone ( ) ; geo . setPoints ( null ) ; model . setGeometry ( edge , geo ) ; } } return edge ; }
resets the control points of the given edge .
