伪代码
//u是源节点
Initialization:
N' = {
u}
for all nodes v
if v is a neighbor of u
then D(v) = c(u,v)
e1se D(v)