Could not understand numEdges function?

when we do Vertex vtx=this.vtces.get(key);
after this we have address for hashMap nbrs, then why we need to do
vtx.nbrs.size , instead why can’t we do vtx.size();

Hey @javadsalgo123
Vertex vtx=this.vtces.get(key); // isse vertex enter kiya hu.
but ,I need to get corresponding hashmap
vtx.nbrs.size // got size of corresponding HashMap.