Quicker getAllVertices operation in graph visualization (iterative call of get vertex neighborhood removed).