In a graph, if there are multiple paths to reach a node, how does Dijkstra's algorithm choose the path?
-
It chooses the path with the maximum weight
-
It chooses the path with the minimum weight
-
It chooses the first path it encounters
-
It randomly selects a path