-- This will actually return `arg * #vertices + 1` - so it's not an actual
-- count. But it tests the various aspects of mapreduce.
functionmap(vertex)returnarg;endfunctionreduce(first,second)return(firstor1.0)+second;endreturn{map=map,reduce=reduce}