Number of Shortest Paths code in Giraph