Revert "adding getVertices()"

This reverts commit 4117f72ae55d3037150d64c07908398bcfeb1660.