Different from Dijkstra's algorithm, the basic operation of Dijkstra's "expansion" is to find the path in depth, while the "relaxation" operation is to find the path in breadth, which determines that the Bellman-Ford algorithm can be used on negatively weighted edges. Operate without affecting the results.