p[i,j]:＝d[i,j]