public void deleteActiveLinks(){
  if (selectedLinkList.isEmpty())   return;
  for (  Link link : selectedLinkList) {
    pairNodeNode p=deleteLink(link);
    diffManager.saveState(diffManager.cloneLink(link),DifferenceManager.type.DELETE,p.node1,p.node2,null,null,null,null,null,null);
    activeLink=null;
  }
  selectedLinkList.clear();
  controls.updateButtons();
  activeLink=null;
  repaint();
}

public void deleteActiveLinks ( ) { if ( selectedLinkList . isEmpty ( ) ) return ; for ( Link link : selectedLinkList ) { pairNodeNode p = deleteLink ( link ) ; diffManager . saveState ( diffManager . cloneLink ( link ) , DifferenceManager . type . DELETE , p . node1 , p . node2 , null , null , null , null , null , null ) ; activeLink = null ; } selectedLinkList . clear ( ) ; controls . updateButtons ( ) ; activeLink = null ; repaint ( ) ; }
deletes the active link of the board from the network .
