got algorithm set up to determine what edges to delete, doesn't work yet