Changed Graph constructor with size to protected, since it is accoplated 
with the HashMap implementation