Shortest Paths with Zero or Negative Cycles Graph