90919293949596979899100
if(edge.isSelfLoop()) { graph.removeEdge(edge); removed++; } } graph.writeUnlock(); //Notification message NotifyDescriptor d = new NotifyDescriptor.Message(removed + " self-loop have been removed", NotifyDescriptor.INFORMATION_MESSAGE); DialogDisplayer.getDefault().notify(d); } else {