Made changes to uses vertex if instead of id that was part of the vertex data. Removed the map reduce operator overload error by adding combine function which is passed as parameter.