摘要: 这里我写了floyd算法以及求图的中点,中心,直径,需要的自取 1.算法: import numpy as np a = float("inf") #无穷大 w0 = [[0,1,a,1],\ [a,0,1,a],\ [a,a,0,1],\ [a,a,a,0]] length = len(w0) r 阅读全文
posted @ 2020-10-29 16:09 落月_YU 阅读(1177) 评论(0) 推荐(0) 编辑