Iteration through (vertex,label) pairs