Removed return if hasVertex().