Graph RemoveVertex

Mam for removing vertex from given graph you first remove given vertex from hashmap of elements contained in hashmap of given vertex i.e. for removing A you first remove A from B and C then remove A from vtces hashmap.
Another approach for this is to remove edges of A by going into the hashmap of 2k address and using removeEdge function.
Please tell weather my approach is correct or not.

@mr.excalibur22 yeah your approach is correct