Dijkstra's and Prim's algorithms do not always explore or attach nodes in the same order when starting from the same node s. While both algorithms greedily pick the closest node, they do so using different methods - Dijkstra's uses a priority queue while Prim's does not, so the order is not guaranteed to be the same.