Girvan-Newman algorithm