Generally the shortest path to get to X, the best thing to do is to accumulate of all of the negative weight at the top of the graph, go via vertex C. And it's true you have to pay the cost two to get from C to X. You still wind up with an end length of minus one, which out performs the direct zero 