@@ -104,7 +104,7 @@ |
||
| 104 | 104 | $newCostsToTargetVertex = $totalCostOfCheapestPathTo[$currentVertexId] + $weight; |
| 105 | 105 | |
| 106 | 106 | if ((!isset($predecesEdgeOfCheapestPathTo[$targetVertexId])) |
| 107 | - // is the new path cheaper? |
|
| 107 | + // is the new path cheaper? |
|
| 108 | 108 | || $totalCostOfCheapestPathTo[$targetVertexId] > $newCostsToTargetVertex) { |
| 109 | 109 | |
| 110 | 110 | // Not an update, just a new insert with lower cost |