拓扑
代码
# 定义不可达距离
_ = float('inf')
def Floyd(map,start,end):
points=len(map)
A = map
Path=[[_ for i in range(points)] for j in range(points)]
for i in range(points):
for j in range(points):
if i!=j and
拓扑
代码
# 定义不可达距离
_ = float('inf')
def Floyd(map,start,end):
points=len(map)
A = map
Path=[[_ for i in range(points)] for j in range(points)]
for i in range(points):
for j in range(points):
if i!=j and