Update SPFA.cpp

This commit is contained in:
Kirigaya Kazuto 2016-08-22 14:35:18 +08:00 committed by GitHub
parent d308527b16
commit 1c048e4ab2

View File

@ -5,7 +5,7 @@ const int MAXN = 1005;
int d[MAXN];/// distance [ From S to ... ]
int v[MAXN];/// visit
int q[MAXN];/// 基于数组的队列(也可用queue等...)
int mp[MAXN][MAXN]; /// mp[i][j] ???<--> j ?? ?1??
int mp[MAXN][MAXN]; /// mp[i][j] i<--> j is connected.
int n;/// n is the number of max Point .
void spfa(int StartPoint) /// d[i] is the min distance from StartPoint to i ( Both >=1 )