Add graph deletion functionality