added function to remove a keepalive edge