use backspace and delete to delete graph nodes