question: public void resetEdges ( Object [ ] cells ) { if ( cells != null ) { HashSet < Object > set = new HashSet < Object > ( Arrays . asList ( cells ) ) ; model . beginUpdate ( ) ; try { for ( int i = 0 ; i < cells . length ; i ++ ) { Object [ ] edges = mxGraphModel . getEdges ( model , cells [ i ] ) ; if ( edges != null ) { for ( int j = 0 ; j < edges . length ; j ++ ) { Object source = view . getVisibleTerminal ( edges [ j ] , true ) ; Object target = view . getVisibleTerminal ( edges [ j ] , false ) ; if ( ! set . contains ( source ) || ! set . contains ( target ) ) { resetEdge ( edges [ j ] ) ; } } } resetEdges ( mxGraphModel . getChildren ( model , cells [ i ] ) ) ; } } finally { model . endUpdate ( ) ; } } }
target:  Resets the control points of the edges that are connected to the given cells if not both ends of the edge are in the given cells array.