reading vertices with a visitor