In mapReduceTriplets, walk vertices instead of edges