generalization of acces to vertices