Graph applications using MapReduce/Pregel