Graph algorithms in MapReduce