Refactored addVertex to simply add due to generic types may have nothing to do with vertices in the end and would just confuse the end user.