how to convert any arbitrary list to an adjaceny matrix in python?
问题 I have 684 nodes and its corresponding temperature data.I calculated the correlation between all nodes and then reshape correlation list in adjacency matrix for further calculation. But after introducing lag in correlation I am not able to reshape the list in adjacency matrix. I am able to reshape the list to adjacency matrix without lag but having problem when introducing the lag. I tried corr_k= [] for k in range(4): for i in range(len(lat)): for j in range(len(lon)): for m in range(len(lat