How does Dijkstra's algorithm update the tentative distances of neighboring nodes?
-
By adding the edge weights to the current node's distance
-
By multiplying the edge weights with the current node's distance
-
By subtracting the edge weights from the current node's distance
-
By ignoring the edge weights