added function to validation nhd of vertex