Adding capability of storing the shortest path tree.