create networkx graph from adjacency matrix. g = nx.from_numpy_matrix(adj_mat_normed). affinities = {}. for edge in g.edges():.
確定! 回上一頁