The general process of SPFA algorithm is to use a queue for maintenance. At the beginning, the source point is added to the queue, one element is taken out of the queue each time, and all points adjacent to it are relaxed. If a point adjacent to it is relaxed successfully, it is added to the queue. Until the end of the empty queue algorithm.<br>
正在翻译中..