Implemented the ShortestAllPaths for eulerian and semi-eulerian graphs