[0.3.8] Add a method to delete edges based on a function literal