Add delete edge function and make add edge and delete edge functions private.